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

Side by Side Diff: ui/display/manager/display_manager.h

Issue 2519993002: Move kInvalidDisplayID to display_constants.h. (Closed)
Patch Set: Address comments. Created 4 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 | « ui/display/manager/display_layout_store.cc ('k') | ui/display/manager/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 UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ 5 #ifndef UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_
6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ 6 #define UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/ref_counted.h" 18 #include "base/memory/ref_counted.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/observer_list.h" 20 #include "base/observer_list.h"
21 #include "ui/display/display.h" 21 #include "ui/display/display.h"
22 #include "ui/display/display_export.h" 22 #include "ui/display/display_export.h"
23 #include "ui/display/display_observer.h" 23 #include "ui/display/display_observer.h"
24 #include "ui/display/manager/display_layout.h" 24 #include "ui/display/manager/display_layout.h"
25 #include "ui/display/manager/managed_display_info.h" 25 #include "ui/display/manager/managed_display_info.h"
26 #include "ui/display/types/display_constants.h"
26 27
27 #if defined(OS_CHROMEOS) 28 #if defined(OS_CHROMEOS)
28 #include "ui/display/chromeos/display_configurator.h" 29 #include "ui/display/chromeos/display_configurator.h"
29 #endif 30 #endif
30 31
31 namespace gfx { 32 namespace gfx {
32 class Insets; 33 class Insets;
33 class Rect; 34 class Rect;
34 } 35 }
35 36
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 void ApplyDisplayLayout(const display::DisplayLayout& layout, 419 void ApplyDisplayLayout(const display::DisplayLayout& layout,
419 display::Displays* display_list, 420 display::Displays* display_list,
420 std::vector<int64_t>* updated_ids); 421 std::vector<int64_t>* updated_ids);
421 422
422 Delegate* delegate_ = nullptr; // not owned. 423 Delegate* delegate_ = nullptr; // not owned.
423 424
424 std::unique_ptr<Screen> screen_; 425 std::unique_ptr<Screen> screen_;
425 426
426 std::unique_ptr<DisplayLayoutStore> layout_store_; 427 std::unique_ptr<DisplayLayoutStore> layout_store_;
427 428
428 int64_t first_display_id_ = Display::kInvalidDisplayID; 429 int64_t first_display_id_ = kInvalidDisplayId;
429 430
430 // List of current active displays. 431 // List of current active displays.
431 Displays active_display_list_; 432 Displays active_display_list_;
432 // This list does not include the displays that will be removed if 433 // This list does not include the displays that will be removed if
433 // |UpdateDisplaysWith| is under execution. 434 // |UpdateDisplaysWith| is under execution.
434 // See https://crbug.com/632755 435 // See https://crbug.com/632755
435 Displays active_only_display_list_; 436 Displays active_only_display_list_;
436 437
437 // True if active_display_list is being modified and has displays that are not 438 // True if active_display_list is being modified and has displays that are not
438 // presently active. 439 // presently active.
(...skipping 13 matching lines...) Expand all
452 // When set to true, the host window's resize event updates 453 // When set to true, the host window's resize event updates
453 // the display's size. This is set to true when running on 454 // the display's size. This is set to true when running on
454 // desktop environment (for debugging) so that resizing the host 455 // desktop environment (for debugging) so that resizing the host
455 // window will update the display properly. This is set to false 456 // window will update the display properly. This is set to false
456 // on device as well as during the unit tests. 457 // on device as well as during the unit tests.
457 bool change_display_upon_host_resize_ = false; 458 bool change_display_upon_host_resize_ = false;
458 459
459 MultiDisplayMode multi_display_mode_ = EXTENDED; 460 MultiDisplayMode multi_display_mode_ = EXTENDED;
460 MultiDisplayMode current_default_multi_display_mode_ = EXTENDED; 461 MultiDisplayMode current_default_multi_display_mode_ = EXTENDED;
461 462
462 int64_t mirroring_display_id_ = Display::kInvalidDisplayID; 463 int64_t mirroring_display_id_ = kInvalidDisplayId;
463 Displays software_mirroring_display_list_; 464 Displays software_mirroring_display_list_;
464 465
465 // User preference for rotation lock of the internal display. 466 // User preference for rotation lock of the internal display.
466 bool registered_internal_display_rotation_lock_ = false; 467 bool registered_internal_display_rotation_lock_ = false;
467 468
468 // User preference for the rotation of the internal display. 469 // User preference for the rotation of the internal display.
469 Display::Rotation registered_internal_display_rotation_ = Display::ROTATE_0; 470 Display::Rotation registered_internal_display_rotation_ = Display::ROTATE_0;
470 471
471 bool unified_desktop_enabled_ = false; 472 bool unified_desktop_enabled_ = false;
472 473
473 base::ObserverList<DisplayObserver> observers_; 474 base::ObserverList<DisplayObserver> observers_;
474 475
475 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; 476 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_;
476 477
477 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 478 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
478 }; 479 };
479 480
480 } // namespace display 481 } // namespace display
481 482
482 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_ 483 #endif // UI_DISPLAY_MANAGER_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/display/manager/display_layout_store.cc ('k') | ui/display/manager/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698