| 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 "chrome/browser/ui/webui/options/options_ui.h" | 10 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 11 #include "ui/aura/display_observer.h" | 11 #include "ui/gfx/display_observer.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 class OverscanCalibrator; | 19 class OverscanCalibrator; |
| 20 | 20 |
| 21 namespace options { | 21 namespace options { |
| 22 | 22 |
| 23 // Display options overlay page UI handler. | 23 // Display options overlay page UI handler. |
| 24 class DisplayOptionsHandler : public ::options::OptionsPageUIHandler, | 24 class DisplayOptionsHandler : public ::options::OptionsPageUIHandler, |
| 25 public aura::DisplayObserver { | 25 public gfx::DisplayObserver { |
| 26 public: | 26 public: |
| 27 DisplayOptionsHandler(); | 27 DisplayOptionsHandler(); |
| 28 virtual ~DisplayOptionsHandler(); | 28 virtual ~DisplayOptionsHandler(); |
| 29 | 29 |
| 30 // OptionsPageUIHandler implementation. | 30 // OptionsPageUIHandler implementation. |
| 31 virtual void GetLocalizedValues( | 31 virtual void GetLocalizedValues( |
| 32 base::DictionaryValue* localized_strings) OVERRIDE; | 32 base::DictionaryValue* localized_strings) OVERRIDE; |
| 33 virtual void InitializePage() OVERRIDE; | 33 virtual void InitializePage() OVERRIDE; |
| 34 | 34 |
| 35 // WebUIMessageHandler implementation. | 35 // WebUIMessageHandler implementation. |
| 36 virtual void RegisterMessages() OVERRIDE; | 36 virtual void RegisterMessages() OVERRIDE; |
| 37 | 37 |
| 38 // aura::DisplayObserver implementation. | 38 // gfx::DisplayObserver implementation. |
| 39 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; | 39 virtual void OnDisplayBoundsChanged(const gfx::Display& display) OVERRIDE; |
| 40 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; | 40 virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE; |
| 41 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; | 41 virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE; |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Updates the display section visibility based on the current display | 44 // Updates the display section visibility based on the current display |
| 45 // configurations. | 45 // configurations. |
| 46 void UpdateDisplaySectionVisibility(); | 46 void UpdateDisplaySectionVisibility(); |
| 47 | 47 |
| 48 // Sends the current display information to the web_ui of options page. | 48 // Sends the current display information to the web_ui of options page. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 69 | 69 |
| 70 scoped_ptr<OverscanCalibrator> overscan_calibrator_; | 70 scoped_ptr<OverscanCalibrator> overscan_calibrator_; |
| 71 | 71 |
| 72 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 72 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace options | 75 } // namespace options |
| 76 } // namespace chromeos | 76 } // namespace chromeos |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 78 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
| OLD | NEW |