Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h

Issue 854063002: Update {virtual,override,final} to follow C++11 style chrome/browser/ui/webui/chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/chromeos/slow_ui.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // An interface for ash::MaximizeModeController. 13 // An interface for ash::MaximizeModeController.
14 class TouchViewControllerDelegate : public ash::ShellObserver { 14 class TouchViewControllerDelegate : public ash::ShellObserver {
15 public: 15 public:
16 // Observer that reports changes to the state of MaximizeModeController's 16 // Observer that reports changes to the state of MaximizeModeController's
17 // rotation lock. 17 // rotation lock.
18 class Observer { 18 class Observer {
19 public: 19 public:
20 // Invoked when maximize mode started/ended. 20 // Invoked when maximize mode started/ended.
21 virtual void OnMaximizeModeStarted() {} 21 virtual void OnMaximizeModeStarted() {}
22 virtual void OnMaximizeModeEnded() {} 22 virtual void OnMaximizeModeEnded() {}
23 23
24 protected: 24 protected:
25 virtual ~Observer() {} 25 virtual ~Observer() {}
26 }; 26 };
27 27
28 TouchViewControllerDelegate(); 28 TouchViewControllerDelegate();
29 virtual ~TouchViewControllerDelegate(); 29 ~TouchViewControllerDelegate() override;
30 30
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 void OnMaximizeModeStarted() override;
42 virtual void OnMaximizeModeEnded() override; 42 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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/slow_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698