| 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 ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 // DisplayController owns and maintains RootWindows for each attached | 84 // DisplayController owns and maintains RootWindows for each attached |
| 85 // display, keeping them in sync with display configuration changes. | 85 // display, keeping them in sync with display configuration changes. |
| 86 class ASH_EXPORT DisplayController : public gfx::DisplayObserver { | 86 class ASH_EXPORT DisplayController : public gfx::DisplayObserver { |
| 87 public: | 87 public: |
| 88 class ASH_EXPORT Observer { | 88 class ASH_EXPORT Observer { |
| 89 public: | 89 public: |
| 90 // Invoked when the display configuration change is requested, | 90 // Invoked when the display configuration change is requested, |
| 91 // but before the change is applied to aura/ash. | 91 // but before the change is applied to aura/ash. |
| 92 virtual void OnDisplayConfigurationChanging() = 0; | 92 virtual void OnDisplayConfigurationChanging() {} |
| 93 | 93 |
| 94 // Invoked when the all display configuration changes | 94 // Invoked when the all display configuration changes |
| 95 // have been applied. | 95 // have been applied. |
| 96 virtual void OnDisplayConfigurationChanged() {}; | 96 virtual void OnDisplayConfigurationChanged() {}; |
| 97 | 97 |
| 98 protected: | 98 protected: |
| 99 virtual ~Observer() {} | 99 virtual ~Observer() {} |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 DisplayController(); | 102 DisplayController(); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 bool in_bootstrap_; | 271 bool in_bootstrap_; |
| 272 | 272 |
| 273 scoped_ptr<internal::FocusActivationStore> focus_activation_store_; | 273 scoped_ptr<internal::FocusActivationStore> focus_activation_store_; |
| 274 | 274 |
| 275 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 275 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
| 276 }; | 276 }; |
| 277 | 277 |
| 278 } // namespace ash | 278 } // namespace ash |
| 279 | 279 |
| 280 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 280 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |