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

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

Issue 2223063003: Move DisplayLayoutStore from ash to ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase/add TODO. Created 4 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
« 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> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 16 matching lines...) Expand all
27 #endif 27 #endif
28 28
29 namespace aura { 29 namespace aura {
30 class Window; 30 class Window;
31 } 31 }
32 32
33 namespace chromeos { 33 namespace chromeos {
34 class DisplayNotificationsTest; 34 class DisplayNotificationsTest;
35 } 35 }
36 36
37 namespace display {
38 class DisplayLayoutStore;
39 }
40
37 namespace gfx { 41 namespace gfx {
38 class Insets; 42 class Insets;
39 class Rect; 43 class Rect;
40 } 44 }
41 45
42 namespace ash { 46 namespace ash {
43 class AcceleratorControllerTest; 47 class AcceleratorControllerTest;
44 class DisplayLayoutStore;
45 class MouseWarpController; 48 class MouseWarpController;
46 class ScreenAsh; 49 class ScreenAsh;
47 50
48 typedef std::vector<DisplayInfo> DisplayInfoList; 51 typedef std::vector<DisplayInfo> DisplayInfoList;
49 52
50 namespace test { 53 namespace test {
51 class AshTestBase; 54 class AshTestBase;
52 class DisplayManagerTestApi; 55 class DisplayManagerTestApi;
53 class SystemGestureEventFilterTest; 56 class SystemGestureEventFilterTest;
54 } 57 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // 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.
96 static int64_t kUnifiedDisplayId; 99 static int64_t kUnifiedDisplayId;
97 100
98 DisplayManager(); 101 DisplayManager();
99 #if defined(OS_CHROMEOS) 102 #if defined(OS_CHROMEOS)
100 ~DisplayManager() override; 103 ~DisplayManager() override;
101 #else 104 #else
102 virtual ~DisplayManager(); 105 virtual ~DisplayManager();
103 #endif 106 #endif
104 107
105 DisplayLayoutStore* layout_store() { return layout_store_.get(); } 108 display::DisplayLayoutStore* layout_store() { return layout_store_.get(); }
106 109
107 void set_delegate(Delegate* delegate) { delegate_ = delegate; } 110 void set_delegate(Delegate* delegate) { delegate_ = delegate; }
108 111
109 // When set to true, the DisplayManager calls OnDisplayMetricsChanged 112 // When set to true, the DisplayManager calls OnDisplayMetricsChanged
110 // even if the display's bounds didn't change. Used to swap primary 113 // even if the display's bounds didn't change. Used to swap primary
111 // display. 114 // display.
112 void set_force_bounds_changed(bool force_bounds_changed) { 115 void set_force_bounds_changed(bool force_bounds_changed) {
113 force_bounds_changed_ = force_bounds_changed; 116 force_bounds_changed_ = force_bounds_changed;
114 } 117 }
115 118
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 // Applies the |layout| and updates the bounds of displays in |display_list|. 411 // Applies the |layout| and updates the bounds of displays in |display_list|.
409 // |updated_ids| contains the ids for displays whose bounds have changed. 412 // |updated_ids| contains the ids for displays whose bounds have changed.
410 void ApplyDisplayLayout(const display::DisplayLayout& layout, 413 void ApplyDisplayLayout(const display::DisplayLayout& layout,
411 display::DisplayList* display_list, 414 display::DisplayList* display_list,
412 std::vector<int64_t>* updated_ids); 415 std::vector<int64_t>* updated_ids);
413 416
414 Delegate* delegate_; // not owned. 417 Delegate* delegate_; // not owned.
415 418
416 std::unique_ptr<ScreenAsh> screen_; 419 std::unique_ptr<ScreenAsh> screen_;
417 420
418 std::unique_ptr<DisplayLayoutStore> layout_store_; 421 std::unique_ptr<display::DisplayLayoutStore> layout_store_;
419 422
420 int64_t first_display_id_; 423 int64_t first_display_id_;
421 424
422 // List of current active displays. 425 // List of current active displays.
423 display::DisplayList active_display_list_; 426 display::DisplayList active_display_list_;
424 // This list does not include the displays that will be removed if 427 // This list does not include the displays that will be removed if
425 // |UpdateDisplaysWith| is under execution. 428 // |UpdateDisplaysWith| is under execution.
426 // See https://crbug.com/632755 429 // See https://crbug.com/632755
427 display::DisplayList active_only_display_list_; 430 display::DisplayList active_only_display_list_;
428 431
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 bool unified_desktop_enabled_; 466 bool unified_desktop_enabled_;
464 467
465 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_; 468 base::WeakPtrFactory<DisplayManager> weak_ptr_factory_;
466 469
467 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 470 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
468 }; 471 };
469 472
470 } // namespace ash 473 } // namespace ash
471 474
472 #endif // ASH_DISPLAY_DISPLAY_MANAGER_H_ 475 #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