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

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

Issue 1540753002: Switch to standard integer types in ash/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: arraysize Created 5 years 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
« no previous file with comments | « ash/display/display_layout_store.cc ('k') | ash/display/display_manager.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_MANAGER_H_ 5 #ifndef ASH_DISPLAY_DISPLAY_MANAGER_H_
6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_ 6 #define ASH_DISPLAY_DISPLAY_MANAGER_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <string> 11 #include <string>
9 #include <vector> 12 #include <vector>
10 13
11 #include "ash/ash_export.h" 14 #include "ash/ash_export.h"
12 #include "ash/display/display_info.h" 15 #include "ash/display/display_info.h"
13 #include "ash/display/display_layout.h" 16 #include "ash/display/display_layout.h"
14 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
15 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/macros.h"
16 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 21 #include "base/memory/weak_ptr.h"
18 #include "ui/gfx/display.h" 22 #include "ui/gfx/display.h"
19 23
20 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
21 #include "ui/display/chromeos/display_configurator.h" 25 #include "ui/display/chromeos/display_configurator.h"
22 #endif 26 #endif
23 27
24 namespace aura { 28 namespace aura {
25 class Window; 29 class Window;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 // 2) MIRRORING mode copies the content of the primary display to 89 // 2) MIRRORING mode copies the content of the primary display to
86 // the 2nd display. (Software Mirroring). 90 // the 2nd display. (Software Mirroring).
87 // 3) UNIFIED mode creates single desktop across multiple displays. 91 // 3) UNIFIED mode creates single desktop across multiple displays.
88 enum MultiDisplayMode { 92 enum MultiDisplayMode {
89 EXTENDED = 0, 93 EXTENDED = 0,
90 MIRRORING, 94 MIRRORING,
91 UNIFIED, 95 UNIFIED,
92 }; 96 };
93 97
94 // The display ID for a virtual display assigned to a unified desktop. 98 // The display ID for a virtual display assigned to a unified desktop.
95 static int64 kUnifiedDisplayId; 99 static int64_t kUnifiedDisplayId;
96 100
97 DisplayManager(); 101 DisplayManager();
98 #if defined(OS_CHROMEOS) 102 #if defined(OS_CHROMEOS)
99 ~DisplayManager() override; 103 ~DisplayManager() override;
100 #else 104 #else
101 virtual ~DisplayManager(); 105 virtual ~DisplayManager();
102 #endif 106 #endif
103 107
104 DisplayLayoutStore* layout_store() { 108 DisplayLayoutStore* layout_store() {
105 return layout_store_.get(); 109 return layout_store_.get();
106 } 110 }
107 111
108 void set_delegate(Delegate* delegate) { delegate_ = delegate; } 112 void set_delegate(Delegate* delegate) { delegate_ = delegate; }
109 113
110 // When set to true, the DisplayManager calls OnDisplayMetricsChanged 114 // When set to true, the DisplayManager calls OnDisplayMetricsChanged
111 // even if the display's bounds didn't change. Used to swap primary 115 // even if the display's bounds didn't change. Used to swap primary
112 // display. 116 // display.
113 void set_force_bounds_changed(bool force_bounds_changed) { 117 void set_force_bounds_changed(bool force_bounds_changed) {
114 force_bounds_changed_ = force_bounds_changed; 118 force_bounds_changed_ = force_bounds_changed;
115 } 119 }
116 120
117 // Returns the display id of the first display in the outupt list. 121 // Returns the display id of the first display in the outupt list.
118 int64 first_display_id() const { return first_display_id_; } 122 int64_t first_display_id() const { return first_display_id_; }
119 123
120 // Initializes displays using command line flag. Returns false 124 // Initializes displays using command line flag. Returns false
121 // if no command line flag was provided. 125 // if no command line flag was provided.
122 bool InitFromCommandLine(); 126 bool InitFromCommandLine();
123 127
124 // Initialize default display. 128 // Initialize default display.
125 void InitDefaultDisplay(); 129 void InitDefaultDisplay();
126 130
127 // Initializes font related params that depends on display 131 // Initializes font related params that depends on display
128 // configuration. 132 // configuration.
129 void RefreshFontParams(); 133 void RefreshFontParams();
130 134
131 // Returns the display layout used for current displays. 135 // Returns the display layout used for current displays.
132 DisplayLayout GetCurrentDisplayLayout(); 136 DisplayLayout GetCurrentDisplayLayout();
133 137
134 // Returns the current display pair. 138 // Returns the current display pair.
135 DisplayIdPair GetCurrentDisplayIdPair() const; 139 DisplayIdPair GetCurrentDisplayIdPair() const;
136 140
137 // Sets the layout for the current display pair. The |layout| specifies 141 // Sets the layout for the current display pair. The |layout| specifies
138 // the locaion of the secondary display relative to the primary. 142 // the locaion of the secondary display relative to the primary.
139 void SetLayoutForCurrentDisplays( 143 void SetLayoutForCurrentDisplays(
140 const DisplayLayout& layout_relative_to_primary); 144 const DisplayLayout& layout_relative_to_primary);
141 145
142 // Returns display for given |id|; 146 // Returns display for given |id|;
143 const gfx::Display& GetDisplayForId(int64 id) const; 147 const gfx::Display& GetDisplayForId(int64_t id) const;
144 148
145 // Finds the display that contains |point| in screeen coordinates. 149 // Finds the display that contains |point| in screeen coordinates.
146 // Returns invalid display if there is no display that can satisfy 150 // Returns invalid display if there is no display that can satisfy
147 // the condition. 151 // the condition.
148 const gfx::Display& FindDisplayContainingPoint( 152 const gfx::Display& FindDisplayContainingPoint(
149 const gfx::Point& point_in_screen) const; 153 const gfx::Point& point_in_screen) const;
150 154
151 // Sets the work area's |insets| to the display given by |display_id|. 155 // Sets the work area's |insets| to the display given by |display_id|.
152 bool UpdateWorkAreaOfDisplay(int64 display_id, const gfx::Insets& insets); 156 bool UpdateWorkAreaOfDisplay(int64_t display_id, const gfx::Insets& insets);
153 157
154 // Registers the overscan insets for the display of the specified ID. Note 158 // Registers the overscan insets for the display of the specified ID. Note
155 // that the insets size should be specified in DIP size. It also triggers the 159 // that the insets size should be specified in DIP size. It also triggers the
156 // display's bounds change. 160 // display's bounds change.
157 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); 161 void SetOverscanInsets(int64_t display_id, const gfx::Insets& insets_in_dip);
158 162
159 // Sets the display's rotation for the given |source|. The new |rotation| will 163 // Sets the display's rotation for the given |source|. The new |rotation| will
160 // also become active. 164 // also become active.
161 void SetDisplayRotation(int64 display_id, 165 void SetDisplayRotation(int64_t display_id,
162 gfx::Display::Rotation rotation, 166 gfx::Display::Rotation rotation,
163 gfx::Display::RotationSource source); 167 gfx::Display::RotationSource source);
164 168
165 // Sets the external display's configuration, including resolution change, 169 // Sets the external display's configuration, including resolution change,
166 // ui-scale change, and device scale factor change. Returns true if it changes 170 // ui-scale change, and device scale factor change. Returns true if it changes
167 // the display resolution so that the caller needs to show a notification in 171 // the display resolution so that the caller needs to show a notification in
168 // case the new resolution actually doesn't work. 172 // case the new resolution actually doesn't work.
169 bool SetDisplayMode(int64 display_id, const DisplayMode& display_mode); 173 bool SetDisplayMode(int64_t display_id, const DisplayMode& display_mode);
170 174
171 // Register per display properties. |overscan_insets| is NULL if 175 // Register per display properties. |overscan_insets| is NULL if
172 // the display has no custom overscan insets. 176 // the display has no custom overscan insets.
173 void RegisterDisplayProperty(int64 display_id, 177 void RegisterDisplayProperty(int64_t display_id,
174 gfx::Display::Rotation rotation, 178 gfx::Display::Rotation rotation,
175 float ui_scale, 179 float ui_scale,
176 const gfx::Insets* overscan_insets, 180 const gfx::Insets* overscan_insets,
177 const gfx::Size& resolution_in_pixels, 181 const gfx::Size& resolution_in_pixels,
178 float device_scale_factor, 182 float device_scale_factor,
179 ui::ColorCalibrationProfile color_profile); 183 ui::ColorCalibrationProfile color_profile);
180 184
181 // Register stored rotation properties for the internal display. 185 // Register stored rotation properties for the internal display.
182 void RegisterDisplayRotationProperties(bool rotation_lock, 186 void RegisterDisplayRotationProperties(bool rotation_lock,
183 gfx::Display::Rotation rotation); 187 gfx::Display::Rotation rotation);
184 188
185 // Returns the stored rotation lock preference if it has been loaded, 189 // Returns the stored rotation lock preference if it has been loaded,
186 // otherwise false. 190 // otherwise false.
187 bool registered_internal_display_rotation_lock() const { 191 bool registered_internal_display_rotation_lock() const {
188 return registered_internal_display_rotation_lock_; 192 return registered_internal_display_rotation_lock_;
189 } 193 }
190 194
191 // Returns the stored rotation preference for the internal display if it has 195 // Returns the stored rotation preference for the internal display if it has
192 // been loaded, otherwise |gfx::Display::Rotate_0|. 196 // been loaded, otherwise |gfx::Display::Rotate_0|.
193 gfx::Display::Rotation registered_internal_display_rotation() const { 197 gfx::Display::Rotation registered_internal_display_rotation() const {
194 return registered_internal_display_rotation_; 198 return registered_internal_display_rotation_;
195 } 199 }
196 200
197 // Returns the display mode of |display_id| which is currently used. 201 // Returns the display mode of |display_id| which is currently used.
198 DisplayMode GetActiveModeForDisplayId(int64 display_id) const; 202 DisplayMode GetActiveModeForDisplayId(int64_t display_id) const;
199 203
200 // Returns the display's selected mode. This returns false and doesn't 204 // Returns the display's selected mode. This returns false and doesn't
201 // set |mode_out| if the display mode is in default. 205 // set |mode_out| if the display mode is in default.
202 bool GetSelectedModeForDisplayId(int64 display_id, 206 bool GetSelectedModeForDisplayId(int64_t display_id,
203 DisplayMode* mode_out) const; 207 DisplayMode* mode_out) const;
204 208
205 // Tells if the virtual resolution feature is enabled. 209 // Tells if the virtual resolution feature is enabled.
206 bool IsDisplayUIScalingEnabled() const; 210 bool IsDisplayUIScalingEnabled() const;
207 211
208 // Returns the current overscan insets for the specified |display_id|. 212 // Returns the current overscan insets for the specified |display_id|.
209 // Returns an empty insets (0, 0, 0, 0) if no insets are specified for 213 // Returns an empty insets (0, 0, 0, 0) if no insets are specified for
210 // the display. 214 // the display.
211 gfx::Insets GetOverscanInsets(int64 display_id) const; 215 gfx::Insets GetOverscanInsets(int64_t display_id) const;
212 216
213 // Sets the color calibration of the display to |profile|. 217 // Sets the color calibration of the display to |profile|.
214 void SetColorCalibrationProfile(int64 display_id, 218 void SetColorCalibrationProfile(int64_t display_id,
215 ui::ColorCalibrationProfile profile); 219 ui::ColorCalibrationProfile profile);
216 220
217 // Called when display configuration has changed. The new display 221 // Called when display configuration has changed. The new display
218 // configurations is passed as a vector of Display object, which 222 // configurations is passed as a vector of Display object, which
219 // contains each display's new infomration. 223 // contains each display's new infomration.
220 void OnNativeDisplaysChanged( 224 void OnNativeDisplaysChanged(
221 const std::vector<DisplayInfo>& display_info_list); 225 const std::vector<DisplayInfo>& display_info_list);
222 226
223 // Updates the internal display data and notifies observers about the changes. 227 // Updates the internal display data and notifies observers about the changes.
224 void UpdateDisplays(const std::vector<DisplayInfo>& display_info_list); 228 void UpdateDisplays(const std::vector<DisplayInfo>& display_info_list);
(...skipping 10 matching lines...) Expand all
235 // Returns the logical number of displays. This returns 1 239 // Returns the logical number of displays. This returns 1
236 // when displays are mirrored. 240 // when displays are mirrored.
237 size_t GetNumDisplays() const; 241 size_t GetNumDisplays() const;
238 242
239 const DisplayList& active_display_list() const { 243 const DisplayList& active_display_list() const {
240 return active_display_list_; 244 return active_display_list_;
241 } 245 }
242 246
243 // Returns true if the display specified by |display_id| is currently 247 // Returns true if the display specified by |display_id| is currently
244 // connected and active. (mirroring display isn't active, for example). 248 // connected and active. (mirroring display isn't active, for example).
245 bool IsActiveDisplayId(int64 display_id) const; 249 bool IsActiveDisplayId(int64_t display_id) const;
246 250
247 // Returns the number of connected displays. This returns 2 251 // Returns the number of connected displays. This returns 2
248 // when displays are mirrored. 252 // when displays are mirrored.
249 size_t num_connected_displays() const { return num_connected_displays_; } 253 size_t num_connected_displays() const { return num_connected_displays_; }
250 254
251 // Returns the mirroring status. 255 // Returns the mirroring status.
252 bool IsInMirrorMode() const; 256 bool IsInMirrorMode() const;
253 int64 mirroring_display_id() const { return mirroring_display_id_; } 257 int64_t mirroring_display_id() const { return mirroring_display_id_; }
254 const DisplayList& software_mirroring_display_list() const { 258 const DisplayList& software_mirroring_display_list() const {
255 return software_mirroring_display_list_; 259 return software_mirroring_display_list_;
256 } 260 }
257 261
258 // Sets/gets if the unified desktop feature is enabled. 262 // Sets/gets if the unified desktop feature is enabled.
259 void SetUnifiedDesktopEnabled(bool enabled); 263 void SetUnifiedDesktopEnabled(bool enabled);
260 bool unified_desktop_enabled() const { return unified_desktop_enabled_; } 264 bool unified_desktop_enabled() const { return unified_desktop_enabled_; }
261 265
262 // Returns true if it's in unified desktop mode. 266 // Returns true if it's in unified desktop mode.
263 bool IsInUnifiedMode() const; 267 bool IsInUnifiedMode() const;
264 268
265 // Returns the display used for software mirrroring. Returns invalid 269 // Returns the display used for software mirrroring. Returns invalid
266 // display if not found. 270 // display if not found.
267 const gfx::Display GetMirroringDisplayById(int64 id) const; 271 const gfx::Display GetMirroringDisplayById(int64_t id) const;
268 272
269 // Retuns the display info associated with |display_id|. 273 // Retuns the display info associated with |display_id|.
270 const DisplayInfo& GetDisplayInfo(int64 display_id) const; 274 const DisplayInfo& GetDisplayInfo(int64_t display_id) const;
271 275
272 // Returns the human-readable name for the display |id|. 276 // Returns the human-readable name for the display |id|.
273 std::string GetDisplayNameForId(int64 id); 277 std::string GetDisplayNameForId(int64_t id);
274 278
275 // Returns the display id that is capable of UI scaling. On device, 279 // Returns the display id that is capable of UI scaling. On device,
276 // this returns internal display's ID if its device scale factor is 2, 280 // this returns internal display's ID if its device scale factor is 2,
277 // or invalid ID if such internal display doesn't exist. On linux 281 // or invalid ID if such internal display doesn't exist. On linux
278 // desktop, this returns the first display ID. 282 // desktop, this returns the first display ID.
279 int64 GetDisplayIdForUIScaling() const; 283 int64_t GetDisplayIdForUIScaling() const;
280 284
281 // Change the mirror mode. 285 // Change the mirror mode.
282 void SetMirrorMode(bool mirrored); 286 void SetMirrorMode(bool mirrored);
283 287
284 // Used to emulate display change when run in a desktop environment instead 288 // Used to emulate display change when run in a desktop environment instead
285 // of on a device. 289 // of on a device.
286 void AddRemoveDisplay(); 290 void AddRemoveDisplay();
287 void ToggleDisplayScaleFactor(); 291 void ToggleDisplayScaleFactor();
288 292
289 // SoftwareMirroringController override: 293 // SoftwareMirroringController override:
(...skipping 10 matching lines...) Expand all
300 304
301 // Sets multi display mode. 305 // Sets multi display mode.
302 void SetMultiDisplayMode(MultiDisplayMode mode); 306 void SetMultiDisplayMode(MultiDisplayMode mode);
303 307
304 // Reconfigure display configuration using the same 308 // Reconfigure display configuration using the same
305 // physical display. TODO(oshima): Refactor and move this 309 // physical display. TODO(oshima): Refactor and move this
306 // impl to |SetDefaultMultiDisplayMode|. 310 // impl to |SetDefaultMultiDisplayMode|.
307 void ReconfigureDisplays(); 311 void ReconfigureDisplays();
308 312
309 // Update the bounds of the display given by |display_id|. 313 // Update the bounds of the display given by |display_id|.
310 bool UpdateDisplayBounds(int64 display_id, 314 bool UpdateDisplayBounds(int64_t display_id, const gfx::Rect& new_bounds);
311 const gfx::Rect& new_bounds);
312 315
313 // Creates mirror window asynchronously if the software mirror mode 316 // Creates mirror window asynchronously if the software mirror mode
314 // is enabled. 317 // is enabled.
315 void CreateMirrorWindowAsyncIfAny(); 318 void CreateMirrorWindowAsyncIfAny();
316 319
317 // Creates a MouseWarpController for the current display 320 // Creates a MouseWarpController for the current display
318 // configuration. |drag_source| is the window where dragging 321 // configuration. |drag_source| is the window where dragging
319 // started, or nullptr otherwise. 322 // started, or nullptr otherwise.
320 scoped_ptr<MouseWarpController> CreateMouseWarpController( 323 scoped_ptr<MouseWarpController> CreateMouseWarpController(
321 aura::Window* drag_source) const; 324 aura::Window* drag_source) const;
(...skipping 27 matching lines...) Expand all
349 }; 352 };
350 353
351 void set_change_display_upon_host_resize(bool value) { 354 void set_change_display_upon_host_resize(bool value) {
352 change_display_upon_host_resize_ = value; 355 change_display_upon_host_resize_ = value;
353 } 356 }
354 357
355 // Creates software mirroring display related information. The display 358 // Creates software mirroring display related information. The display
356 // used to mirror the content is removed from the |display_info_list|. 359 // used to mirror the content is removed from the |display_info_list|.
357 void CreateSoftwareMirroringDisplayInfo(DisplayInfoList* display_info_list); 360 void CreateSoftwareMirroringDisplayInfo(DisplayInfoList* display_info_list);
358 361
359 gfx::Display* FindDisplayForId(int64 id); 362 gfx::Display* FindDisplayForId(int64_t id);
360 363
361 // Add the mirror display's display info if the software based 364 // Add the mirror display's display info if the software based
362 // mirroring is in use. 365 // mirroring is in use.
363 void AddMirrorDisplayInfoIfAny(DisplayInfoList* display_info_list); 366 void AddMirrorDisplayInfoIfAny(DisplayInfoList* display_info_list);
364 367
365 // Inserts and update the DisplayInfo according to the overscan 368 // Inserts and update the DisplayInfo according to the overscan
366 // state. Note that The DisplayInfo stored in the |internal_display_info_| 369 // state. Note that The DisplayInfo stored in the |internal_display_info_|
367 // can be different from |new_info| (due to overscan state), so 370 // can be different from |new_info| (due to overscan state), so
368 // you must use |GetDisplayInfo| to get the correct DisplayInfo for 371 // you must use |GetDisplayInfo| to get the correct DisplayInfo for
369 // a display. 372 // a display.
370 void InsertAndUpdateDisplayInfo(const DisplayInfo& new_info); 373 void InsertAndUpdateDisplayInfo(const DisplayInfo& new_info);
371 374
372 // Called when the display info is updated through InsertAndUpdateDisplayInfo. 375 // Called when the display info is updated through InsertAndUpdateDisplayInfo.
373 void OnDisplayInfoUpdated(const DisplayInfo& display_info); 376 void OnDisplayInfoUpdated(const DisplayInfo& display_info);
374 377
375 // Creates a display object from the DisplayInfo for |display_id|. 378 // Creates a display object from the DisplayInfo for |display_id|.
376 gfx::Display CreateDisplayFromDisplayInfoById(int64 display_id); 379 gfx::Display CreateDisplayFromDisplayInfoById(int64_t display_id);
377 380
378 // Creates a display object from the DisplayInfo for |display_id| for 381 // Creates a display object from the DisplayInfo for |display_id| for
379 // mirroring. The size of the display will be scaled using |scale| 382 // mirroring. The size of the display will be scaled using |scale|
380 // with the offset using |origin|. 383 // with the offset using |origin|.
381 gfx::Display CreateMirroringDisplayFromDisplayInfoById( 384 gfx::Display CreateMirroringDisplayFromDisplayInfoById(
382 int64 display_id, 385 int64_t display_id,
383 const gfx::Point& origin, 386 const gfx::Point& origin,
384 float scale); 387 float scale);
385 388
386 // Updates the bounds of all non-primary displays in |display_list| and 389 // Updates the bounds of all non-primary displays in |display_list| and
387 // append the indices of displays updated to |updated_indices|. 390 // append the indices of displays updated to |updated_indices|.
388 // When the size of |display_list| equals 2, the bounds are updated using 391 // When the size of |display_list| equals 2, the bounds are updated using
389 // the layout registered for the display pair. For more than 2 displays, 392 // the layout registered for the display pair. For more than 2 displays,
390 // the bounds are updated using horizontal layout. 393 // the bounds are updated using horizontal layout.
391 // Returns true if any of the non-primary display's bounds has been changed 394 // Returns true if any of the non-primary display's bounds has been changed
392 // from current value, or false otherwise. 395 // from current value, or false otherwise.
393 bool UpdateNonPrimaryDisplayBoundsForLayout( 396 bool UpdateNonPrimaryDisplayBoundsForLayout(
394 DisplayList* display_list, std::vector<size_t>* updated_indices) const; 397 DisplayList* display_list, std::vector<size_t>* updated_indices) const;
395 398
396 void CreateMirrorWindowIfAny(); 399 void CreateMirrorWindowIfAny();
397 400
398 void RunPendingTasksForTest(); 401 void RunPendingTasksForTest();
399 402
400 static void UpdateDisplayBoundsForLayout( 403 static void UpdateDisplayBoundsForLayout(
401 const DisplayLayout& layout, 404 const DisplayLayout& layout,
402 const gfx::Display& primary_display, 405 const gfx::Display& primary_display,
403 gfx::Display* secondary_display); 406 gfx::Display* secondary_display);
404 407
405 Delegate* delegate_; // not owned. 408 Delegate* delegate_; // not owned.
406 409
407 scoped_ptr<ScreenAsh> screen_; 410 scoped_ptr<ScreenAsh> screen_;
408 411
409 scoped_ptr<DisplayLayoutStore> layout_store_; 412 scoped_ptr<DisplayLayoutStore> layout_store_;
410 413
411 int64 first_display_id_; 414 int64_t first_display_id_;
412 415
413 // List of current active displays. 416 // List of current active displays.
414 DisplayList active_display_list_; 417 DisplayList active_display_list_;
415 418
416 int num_connected_displays_; 419 int num_connected_displays_;
417 420
418 bool force_bounds_changed_; 421 bool force_bounds_changed_;
419 422
420 // The mapping from the display ID to its internal data. 423 // The mapping from the display ID to its internal data.
421 std::map<int64, DisplayInfo> display_info_; 424 std::map<int64_t, DisplayInfo> display_info_;
422 425
423 // Selected display modes for displays. Key is the displays' ID. 426 // Selected display modes for displays. Key is the displays' ID.
424 std::map<int64, DisplayMode> display_modes_; 427 std::map<int64_t, DisplayMode> display_modes_;
425 428
426 // When set to true, the host window's resize event updates 429 // When set to true, the host window's resize event updates
427 // the display's size. This is set to true when running on 430 // the display's size. This is set to true when running on
428 // desktop environment (for debugging) so that resizing the host 431 // desktop environment (for debugging) so that resizing the host
429 // window will update the display properly. This is set to false 432 // window will update the display properly. This is set to false
430 // on device as well as during the unit tests. 433 // on device as well as during the unit tests.
431 bool change_display_upon_host_resize_; 434 bool change_display_upon_host_resize_;
432 435
433 MultiDisplayMode multi_display_mode_; 436 MultiDisplayMode multi_display_mode_;
434 MultiDisplayMode current_default_multi_display_mode_; 437 MultiDisplayMode current_default_multi_display_mode_;
435 438
436 int64 mirroring_display_id_; 439 int64_t mirroring_display_id_;
437 DisplayList software_mirroring_display_list_; 440 DisplayList software_mirroring_display_list_;
438 441
439 // User preference for rotation lock of the internal display. 442 // User preference for rotation lock of the internal display.
440 bool registered_internal_display_rotation_lock_; 443 bool registered_internal_display_rotation_lock_;
441 444
442 // User preference for the rotation of the internal display. 445 // User preference for the rotation of the internal display.
443 gfx::Display::Rotation registered_internal_display_rotation_; 446 gfx::Display::Rotation registered_internal_display_rotation_;
444 447
445 bool unified_desktop_enabled_; 448 bool unified_desktop_enabled_;
446 449
447 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; 450 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_;
448 451
449 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 452 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
450 }; 453 };
451 454
452 } // namespace ash 455 } // namespace ash
453 456
454 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ 457 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/display/display_layout_store.cc ('k') | ash/display/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698