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

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

Issue 10826198: Use persistent ID/names for displays. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: kInvalidID -> kInvalidDisplayID since Mac #define "kInvalidID"... Created 8 years, 4 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 | « no previous file | 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE; 93 virtual void OnDisplayRemoved(const gfx::Display& display) OVERRIDE;
94 94
95 // Is extended desktop enabled? 95 // Is extended desktop enabled?
96 static bool IsExtendedDesktopEnabled(); 96 static bool IsExtendedDesktopEnabled();
97 97
98 private: 98 private:
99 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, WarpMousePointer); 99 FRIEND_TEST_ALL_PREFIXES(WorkspaceWindowResizerTest, WarpMousePointer);
100 100
101 // Creates a root window for |display| and stores it in the |root_windows_| 101 // Creates a root window for |display| and stores it in the |root_windows_|
102 // map. 102 // map.
103 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display); 103 // TODO(oshima): remove |is_primary| when non extended desktop mode is
104 // removed.
105 aura::RootWindow* AddRootWindowForDisplay(const gfx::Display& display,
106 bool is_primary);
104 107
105 void UpdateDisplayBoundsForLayout(); 108 void UpdateDisplayBoundsForLayout();
106 109
107 std::map<int, aura::RootWindow*> root_windows_; 110 // The mapping from display ID to its root window.
111 std::map<int64, aura::RootWindow*> root_windows_;
108 112
109 SecondaryDisplayLayout secondary_display_layout_; 113 SecondaryDisplayLayout secondary_display_layout_;
110 114
111 // The offset of the position of the secondary display. The offset is 115 // The offset of the position of the secondary display. The offset is
112 // based on the top/left edge of the primary display. 116 // based on the top/left edge of the primary display.
113 int secondary_display_offset_; 117 int secondary_display_offset_;
114 118
115 // If true, the mouse pointer can't move from one display to another. 119 // If true, the mouse pointer can't move from one display to another.
116 bool dont_warp_mouse_; 120 bool dont_warp_mouse_;
117 121
118 DISALLOW_COPY_AND_ASSIGN(DisplayController); 122 DISALLOW_COPY_AND_ASSIGN(DisplayController);
119 }; 123 };
120 124
121 } // namespace internal 125 } // namespace internal
122 } // namespace ash 126 } // namespace ash
123 127
124 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ 128 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/display/display_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698