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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 // configurations. | 43 // configurations. |
44 void UpdateDisplaySectionVisibility(); | 44 void UpdateDisplaySectionVisibility(); |
45 | 45 |
46 // Sends the current display information to the web_ui of options page. | 46 // Sends the current display information to the web_ui of options page. |
47 void SendDisplayInfo(); | 47 void SendDisplayInfo(); |
48 | 48 |
49 // Called when the fade-out animation for mirroring status change is finished. | 49 // Called when the fade-out animation for mirroring status change is finished. |
50 void FadeOutForMirroringFinished(bool is_mirroring); | 50 void FadeOutForMirroringFinished(bool is_mirroring); |
51 | 51 |
52 // Called when the fade-out animation for secondary display layout change is | 52 // Called when the fade-out animation for secondary display layout change is |
53 // finished. | 53 // finished. |layout| specifies the four positions of the secondary display |
54 void FadeOutForDisplayLayoutFinished(int layout); | 54 // (left/right/top/bottom), and |offset| is the offset length from the |
| 55 // left/top edge of the primary display. |
| 56 void FadeOutForDisplayLayoutFinished(int layout, int offset); |
55 | 57 |
56 // Handlers of JS messages. | 58 // Handlers of JS messages. |
57 void HandleDisplayInfo(const base::ListValue* unused_args); | 59 void HandleDisplayInfo(const base::ListValue* unused_args); |
58 void HandleMirroring(const base::ListValue* args); | 60 void HandleMirroring(const base::ListValue* args); |
59 void HandleDisplayLayout(const base::ListValue* args); | 61 void HandleDisplayLayout(const base::ListValue* args); |
60 | 62 |
61 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 63 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
62 }; | 64 }; |
63 | 65 |
64 } // namespace options2 | 66 } // namespace options2 |
65 } // namespace chromeos | 67 } // namespace chromeos |
66 | 68 |
67 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 69 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
OLD | NEW |