Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Side by Side Diff: ash/display/display_controller.h

Issue 15730006: Use the source display's pixel size as a mirror window's size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/ash_root_window_transformer_unittest.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/ash_root_window_transformer_unittest.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698