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/window_tree_host_manager.h" | 10 #include "ash/display/window_tree_host_manager.h" |
(...skipping 29 matching lines...) Expand all Loading... |
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 // Enables or disables the display settings UI. | 47 // Enables or disables the display settings UI. |
48 void UpdateDisplaySettingsEnabled(); | 48 void UpdateDisplaySettingsEnabled(); |
49 | 49 |
50 // Called when the fade-out animation for mirroring status change is finished. | |
51 void OnFadeOutForMirroringFinished(bool is_mirroring); | |
52 | |
53 // Called when the fade-out animation for secondary display layout change is | |
54 // finished. |layout| specifies the four positions of the secondary display | |
55 // (left/right/top/bottom), and |offset| is the offset length from the | |
56 // left/top edge of the primary display. | |
57 void OnFadeOutForDisplayLayoutFinished(int layout, int offset); | |
58 | |
59 // Handlers of JS messages. | 50 // Handlers of JS messages. |
60 void HandleDisplayInfo(const base::ListValue* unused_args); | 51 void HandleDisplayInfo(const base::ListValue* unused_args); |
61 void HandleMirroring(const base::ListValue* args); | 52 void HandleMirroring(const base::ListValue* args); |
62 void HandleSetPrimary(const base::ListValue* args); | 53 void HandleSetPrimary(const base::ListValue* args); |
63 void HandleDisplayLayout(const base::ListValue* args); | 54 void HandleSetDisplayLayout(const base::ListValue* args); |
64 void HandleSetDisplayMode(const base::ListValue* args); | 55 void HandleSetDisplayMode(const base::ListValue* args); |
65 void HandleSetOrientation(const base::ListValue* args); | 56 void HandleSetOrientation(const base::ListValue* args); |
66 void HandleSetColorProfile(const base::ListValue* args); | 57 void HandleSetColorProfile(const base::ListValue* args); |
67 void HandleSetUnifiedDesktopEnabled(const base::ListValue* args); | 58 void HandleSetUnifiedDesktopEnabled(const base::ListValue* args); |
68 | 59 |
69 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 60 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
70 }; | 61 }; |
71 | 62 |
72 } // namespace options | 63 } // namespace options |
73 } // namespace chromeos | 64 } // namespace chromeos |
74 | 65 |
75 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 66 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
OLD | NEW |