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

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

Issue 10790090: Enable Virtual Screen Coordinates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 8 years, 5 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_switches.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void OnDisplayBoundsChanged( 81 virtual void OnDisplayBoundsChanged(
82 const gfx::Display& display) OVERRIDE; 82 const gfx::Display& display) OVERRIDE;
83 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE; 83 virtual void OnDisplayAdded(const gfx::Display& display) OVERRIDE;
84 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; 84 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE;
85 85
86 // Is extended desktop enabled? 86 // Is extended desktop enabled?
87 static bool IsExtendedDesktopEnabled(); 87 static bool IsExtendedDesktopEnabled();
88 // Change the extended desktop mode. Used for testing. 88 // Change the extended desktop mode. Used for testing.
89 static void SetExtendedDesktopEnabled(bool enabled); 89 static void SetExtendedDesktopEnabled(bool enabled);
90 90
91 // Is virtual screen coordinates enabled?
92 static bool IsVirtualScreenCoordinatesEnabled();
93 // Turns on/off the virtual screen coordinates.
94 static void SetVirtualScreenCoordinatesEnabled(bool enabled);
95
96 private: 91 private:
97 // Creates a root window for |display| and stores it in the |root_windows_| 92 // Creates a root window for |display| and stores it in the |root_windows_|
98 // map. 93 // map.
99 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); 94 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display);
100 95
101 void UpdateDisplayBoundsForLayout(); 96 void UpdateDisplayBoundsForLayout();
102 97
103 std::map<int, aura::RootWindow*> root_windows_; 98 std::map<int, aura::RootWindow*> root_windows_;
104 99
105 SecondaryDisplayLayout secondary_display_layout_; 100 SecondaryDisplayLayout secondary_display_layout_;
106 101
107 DISALLOW_COPY_AND_ASSIGN(DisplayController); 102 DISALLOW_COPY_AND_ASSIGN(DisplayController);
108 }; 103 };
109 104
110 } // namespace internal 105 } // namespace internal
111 } // namespace ash 106 } // namespace ash
112 107
113 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ 108 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698