| 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" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 virtual void RegisterMessages() OVERRIDE; | 36 virtual void RegisterMessages() OVERRIDE; |
| 37 | 37 |
| 38 // gfx::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. Specify the number of display. | 45 // configurations. Specify the number of display. |
| 46 void UpdateDisplaySectionVisibility(size_t num_displays); | 46 void UpdateDisplaySectionVisibility( |
| 47 const std::vector<const gfx::Display*>& displays); |
| 47 | 48 |
| 48 // Sends all of the current display information to the web_ui of options page. | 49 // Sends all of the current display information to the web_ui of options page. |
| 49 void SendAllDisplayInfo(); | 50 void SendAllDisplayInfo(); |
| 50 | 51 |
| 51 // Sends the specified display information to the web_ui of options page. | 52 // Sends the specified display information to the web_ui of options page. |
| 52 void SendDisplayInfo(const std::vector<const gfx::Display*> displays); | 53 void SendDisplayInfo(const std::vector<const gfx::Display*> displays); |
| 53 | 54 |
| 54 // Called when the fade-out animation for mirroring status change is finished. | 55 // Called when the fade-out animation for mirroring status change is finished. |
| 55 void OnFadeOutForMirroringFinished(bool is_mirroring); | 56 void OnFadeOutForMirroringFinished(bool is_mirroring); |
| 56 | 57 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 72 | 73 |
| 73 scoped_ptr<OverscanCalibrator> overscan_calibrator_; | 74 scoped_ptr<OverscanCalibrator> overscan_calibrator_; |
| 74 | 75 |
| 75 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); | 76 DISALLOW_COPY_AND_ASSIGN(DisplayOptionsHandler); |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 } // namespace options | 79 } // namespace options |
| 79 } // namespace chromeos | 80 } // namespace chromeos |
| 80 | 81 |
| 81 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ | 82 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_DISPLAY_OPTIONS_HANDLER_H_ |
| OLD | NEW |