OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "chrome/browser/ui/webui/options2/options_ui.h" | 10 #include "chrome/browser/ui/webui/options2/options_ui.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 // Display options overlay page UI handler. | 21 // Display options overlay page UI handler. |
22 class DisplayOptionsHandler : public ::options2::OptionsPageUIHandler, | 22 class DisplayOptionsHandler : public ::options2::OptionsPageUIHandler, |
23 public aura::DisplayObserver { | 23 public aura::DisplayObserver { |
24 public: | 24 public: |
25 DisplayOptionsHandler(); | 25 DisplayOptionsHandler(); |
26 virtual ~DisplayOptionsHandler(); | 26 virtual ~DisplayOptionsHandler(); |
27 | 27 |
28 // OptionsPageUIHandler implementation. | 28 // OptionsPageUIHandler implementation. |
29 virtual void GetLocalizedValues( | 29 virtual void GetLocalizedValues( |
30 base::DictionaryValue* localized_strings) OVERRIDE; | 30 base::DictionaryValue* localized_strings) OVERRIDE; |
31 virtual void InitializeHandler() OVERRIDE; | 31 virtual void InitializePage() OVERRIDE; |
32 | 32 |
33 // WebUIMessageHandler implementation. | 33 // WebUIMessageHandler implementation. |
34 virtual void RegisterMessages() OVERRIDE; | 34 virtual void RegisterMessages() OVERRIDE; |
35 | 35 |
36 // aura::DisplayObserver implementation. | 36 // aura::DisplayObserver implementation. |
37 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | 37 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; |
38 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; | 38 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; |
39 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; | 39 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; |
40 | 40 |
41 private: | 41 private: |
(...skipping 16 matching lines...) Expand all Loading... |
58 void HandleMirroring(const base::ListValue* args); | 58 void HandleMirroring(const base::ListValue* args); |
59 void HandleDisplayLayout(const base::ListValue* args); | 59 void HandleDisplayLayout(const base::ListValue* args); |
60 | 60 |
61 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 61 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
62 }; | 62 }; |
63 | 63 |
64 } // namespace options2 | 64 } // namespace options2 |
65 } // namespace chromeos | 65 } // namespace chromeos |
66 | 66 |
67 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 67 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
OLD | NEW |