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

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

Issue 471973002: Single pod autofocus disabled for touch view mode. Delegate class created for ash interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_MAXIMIZE_MODE_CONTROLLER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_MAXIMIZE_MODE_CONTROLLER_DELEGATE_H_
7
8 #include "ash/shell_observer.h"
9 #include "base/observer_list.h"
10
11 namespace chromeos {
12
13 // An interface for ash::MaximizeModeController.
14 class MaximizeModeControllerDelegate : public ash::ShellObserver {
15 public:
16 // Observer that reports changes to the state of MaximizeModeController's
17 // rotation lock.
18 class Observer {
19 public:
20 // Invoked when maximize mode started/ended.
21 virtual void OnMaximizeModeStarted() {}
22 virtual void OnMaximizeModeEnded() {}
23
24 protected:
25 virtual ~Observer() {}
26 };
27
28 MaximizeModeControllerDelegate();
29 virtual ~MaximizeModeControllerDelegate();
30
31 // Add/Remove observers.
32 void AddObserver(Observer* observer);
33 void RemoveObserver(Observer* observer);
34
35 // Test if the Maximize Mode is enabled or not.
36 bool IsMaximizeModeEnabled() const;
37
38
39 private:
40 // ash::ShellObserver implementation:
41 virtual void OnMaximizeModeStarted() OVERRIDE;
42 virtual void OnMaximizeModeEnded() OVERRIDE;
43
44 // Mode state change observers.
45 ObserverList<Observer> observers_;
46
47 DISALLOW_COPY_AND_ASSIGN(MaximizeModeControllerDelegate);
48 };
49
50 } // namespace chromeos
51
52 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_MAXIMIZE_MODE_CONTROLLER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698