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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 11 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
12 #include "ui/aura/display_observer.h" | 12 #include "ui/aura/display_observer.h" |
13 | 13 |
14 namespace base { | 14 namespace base { |
| 15 class DictionaryValue; |
15 class ListValue; | 16 class ListValue; |
16 } | 17 } |
17 | 18 |
18 namespace chromeos { | 19 namespace chromeos { |
19 namespace options2 { | 20 namespace options2 { |
20 | 21 |
21 // Display options overlay page UI handler. | 22 // Display options overlay page UI handler. |
22 class DisplayOptionsHandler : public ::options2::OptionsPageUIHandler, | 23 class DisplayOptionsHandler : public ::options2::OptionsPageUIHandler, |
23 public aura::DisplayObserver { | 24 public aura::DisplayObserver { |
24 public: | 25 public: |
25 DisplayOptionsHandler(); | 26 DisplayOptionsHandler(); |
26 virtual ~DisplayOptionsHandler(); | 27 virtual ~DisplayOptionsHandler(); |
27 | 28 |
28 // OptionsPageUIHandler implementation. | 29 // OptionsPageUIHandler implementation. |
29 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; | 30 virtual void GetLocalizedValues( |
| 31 base::DictionaryValue* localized_strings) OVERRIDE; |
30 virtual void InitializeHandler() OVERRIDE; | 32 virtual void InitializeHandler() OVERRIDE; |
31 | 33 |
32 // WebUIMessageHandler implementation. | 34 // WebUIMessageHandler implementation. |
33 virtual void RegisterMessages() OVERRIDE; | 35 virtual void RegisterMessages() OVERRIDE; |
34 | 36 |
35 // aura::DisplayObserver implementation. | 37 // aura::DisplayObserver implementation. |
36 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | 38 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; |
37 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; | 39 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; |
38 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; | 40 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; |
39 | 41 |
(...skipping 10 matching lines...) Expand all Loading... |
50 void HandleMirroring(const base::ListValue* args); | 52 void HandleMirroring(const base::ListValue* args); |
51 void HandleDisplayLayout(const base::ListValue* args); | 53 void HandleDisplayLayout(const base::ListValue* args); |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 55 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
54 }; | 56 }; |
55 | 57 |
56 } // namespace options2 | 58 } // namespace options2 |
57 } // namespace chromeos | 59 } // namespace chromeos |
58 | 60 |
59 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 61 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
OLD | NEW |