• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UI_VIEWS_LINUX_UI_WINDOW_BUTTON_ORDER_OBSERVER_H_
6 #define UI_VIEWS_LINUX_UI_WINDOW_BUTTON_ORDER_OBSERVER_H_
7 
8 #include <vector>
9 
10 #include "ui/views/window/frame_buttons.h"
11 
12 namespace views {
13 
14 // Observer interface to receive the ordering of the min,max,close buttons.
15 class WindowButtonOrderObserver {
16  public:
17   // Called when first added to the LinuxUI class, or on a system-wide
18   // configuration event.
19   virtual void OnWindowButtonOrderingChange(
20       const std::vector<views::FrameButton>& leading_buttons,
21       const std::vector<views::FrameButton>& trailing_buttons) = 0;
22 
23  protected:
~WindowButtonOrderObserver()24   virtual ~WindowButtonOrderObserver() {}
25 };
26 
27 }  // namespace views
28 
29 #endif  // UI_VIEWS_LINUX_UI_WINDOW_BUTTON_ORDER_OBSERVER_H_
30