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_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/display/display_controller.h" | 10 #include "ash/display/display_controller.h" |
11 #include "chrome/browser/ui/webui/options/options_ui.h" | 11 #include "chrome/browser/ui/webui/options/options_ui.h" |
12 | 12 |
13 namespace base { | 13 namespace base { |
14 class DictionaryValue; | 14 class DictionaryValue; |
15 class ListValue; | 15 class ListValue; |
16 } | 16 } |
17 | 17 |
18 namespace chromeos { | 18 namespace chromeos { |
19 namespace options { | 19 namespace options { |
20 | 20 |
21 // Display options overlay page UI handler. | 21 // Display options overlay page UI handler. |
22 class DisplayOptionsHandler : public ::options::OptionsPageUIHandler, | 22 class DisplayOptionsHandler : public ::options::OptionsPageUIHandler, |
23 public ash::DisplayController::Observer { | 23 public ash::DisplayController::Observer { |
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 InitializePage() 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 // ash::DisplayController::Observer implementation. | 36 // ash::DisplayController::Observer implementation. |
37 virtual void OnDisplayConfigurationChanging() OVERRIDE; | 37 virtual void OnDisplayConfigurationChanging() override; |
38 virtual void OnDisplayConfigurationChanged() OVERRIDE; | 38 virtual void OnDisplayConfigurationChanged() override; |
39 | 39 |
40 private: | 40 private: |
41 // Sends all of the current display information to the web_ui of options page. | 41 // Sends all of the current display information to the web_ui of options page. |
42 void SendAllDisplayInfo(); | 42 void SendAllDisplayInfo(); |
43 | 43 |
44 // Sends the specified display information to the web_ui of options page. | 44 // Sends the specified display information to the web_ui of options page. |
45 void SendDisplayInfo(const std::vector<gfx::Display>& displays); | 45 void SendDisplayInfo(const std::vector<gfx::Display>& displays); |
46 | 46 |
47 // Called when the fade-out animation for mirroring status change is finished. | 47 // Called when the fade-out animation for mirroring status change is finished. |
48 void OnFadeOutForMirroringFinished(bool is_mirroring); | 48 void OnFadeOutForMirroringFinished(bool is_mirroring); |
(...skipping 13 matching lines...) Expand all Loading... |
62 void HandleSetOrientation(const base::ListValue* args); | 62 void HandleSetOrientation(const base::ListValue* args); |
63 void HandleSetColorProfile(const base::ListValue* args); | 63 void HandleSetColorProfile(const base::ListValue* args); |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 65 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
66 }; | 66 }; |
67 | 67 |
68 } // namespace options | 68 } // namespace options |
69 } // namespace chromeos | 69 } // namespace chromeos |
70 | 70 |
71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 71 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
OLD | NEW |