OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_ |
7 | 7 |
8 #include "ash/shell_observer.h" | 8 #include "ash/shell_observer.h" |
9 #include "base/observer_list.h" | 9 #include "base/observer_list.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 // Add/Remove observers. | 31 // Add/Remove observers. |
32 void AddObserver(Observer* observer); | 32 void AddObserver(Observer* observer); |
33 void RemoveObserver(Observer* observer); | 33 void RemoveObserver(Observer* observer); |
34 | 34 |
35 // Test if the Maximize Mode is enabled or not. | 35 // Test if the Maximize Mode is enabled or not. |
36 bool IsMaximizeModeEnabled() const; | 36 bool IsMaximizeModeEnabled() const; |
37 | 37 |
38 | 38 |
39 private: | 39 private: |
40 // ash::ShellObserver implementation: | 40 // ash::ShellObserver implementation: |
41 virtual void OnMaximizeModeStarted() OVERRIDE; | 41 virtual void OnMaximizeModeStarted() override; |
42 virtual void OnMaximizeModeEnded() OVERRIDE; | 42 virtual void OnMaximizeModeEnded() override; |
43 | 43 |
44 // Mode state change observers. | 44 // Mode state change observers. |
45 ObserverList<Observer> observers_; | 45 ObserverList<Observer> observers_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(TouchViewControllerDelegate); | 47 DISALLOW_COPY_AND_ASSIGN(TouchViewControllerDelegate); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace chromeos | 50 } // namespace chromeos |
51 | 51 |
52 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_ | 52 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_ |
OLD | NEW |