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

Side by Side Diff: ui/aura/monitor_manager.h

Issue 10540123: Rename gfx::Screen::GetMonitorXXXX to gfx::Screen::GetDisplayXXX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | « ui/aura/desktop/desktop_screen_x11.cc ('k') | ui/aura/monitor_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_AURA_MONITOR_MANAGER_H_ 5 #ifndef UI_AURA_MONITOR_MANAGER_H_
6 #define UI_AURA_MONITOR_MANAGER_H_ 6 #define UI_AURA_MONITOR_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // configurations is passed as a vector of Monitor object, which 61 // configurations is passed as a vector of Monitor object, which
62 // contains each monitor's new infomration. 62 // contains each monitor's new infomration.
63 virtual void OnNativeMonitorsChanged( 63 virtual void OnNativeMonitorsChanged(
64 const std::vector<gfx::Display>& display) = 0; 64 const std::vector<gfx::Display>& display) = 0;
65 65
66 // Create a root window for given |monitor|. 66 // Create a root window for given |monitor|.
67 virtual RootWindow* CreateRootWindowForMonitor( 67 virtual RootWindow* CreateRootWindowForMonitor(
68 const gfx::Display& display) = 0; 68 const gfx::Display& display) = 0;
69 69
70 // Returns the display at |index|. The display at 0 is considered "primary". 70 // Returns the display at |index|. The display at 0 is considered "primary".
71 virtual const gfx::Display& GetMonitorAt(size_t index) = 0; 71 virtual const gfx::Display& GetDisplayAt(size_t index) = 0;
72 72
73 virtual size_t GetNumMonitors() const = 0; 73 virtual size_t GetNumDisplays() const = 0;
74 74
75 // Returns the display object nearest given |window|. 75 // Returns the display object nearest given |window|.
76 virtual const gfx::Display& GetMonitorNearestWindow( 76 virtual const gfx::Display& GetDisplayNearestWindow(
77 const Window* window) const = 0; 77 const Window* window) const = 0;
78 78
79 // Returns the monitor object nearest given |pint|. 79 // Returns the monitor object nearest given |pint|.
80 virtual const gfx::Display& GetMonitorNearestPoint( 80 virtual const gfx::Display& GetDisplayNearestPoint(
81 const gfx::Point& point) const = 0; 81 const gfx::Point& point) const = 0;
82 82
83 protected: 83 protected:
84 // Calls observers' OnDisplayBoundsChanged methods. 84 // Calls observers' OnDisplayBoundsChanged methods.
85 void NotifyBoundsChanged(const gfx::Display& display); 85 void NotifyBoundsChanged(const gfx::Display& display);
86 void NotifyDisplayAdded(const gfx::Display& display); 86 void NotifyDisplayAdded(const gfx::Display& display);
87 void NotifyDisplayRemoved(const gfx::Display& display); 87 void NotifyDisplayRemoved(const gfx::Display& display);
88 88
89 private: 89 private:
90 // If set before the RootWindow is created, the host window will cover the 90 // If set before the RootWindow is created, the host window will cover the
91 // entire monitor. Note that this can still be overridden via the 91 // entire monitor. Note that this can still be overridden via the
92 // switches::kAuraHostWindowSize flag. 92 // switches::kAuraHostWindowSize flag.
93 static bool use_fullscreen_host_window_; 93 static bool use_fullscreen_host_window_;
94 94
95 ObserverList<DisplayObserver> observers_; 95 ObserverList<DisplayObserver> observers_;
96 DISALLOW_COPY_AND_ASSIGN(MonitorManager); 96 DISALLOW_COPY_AND_ASSIGN(MonitorManager);
97 }; 97 };
98 98
99 } // namespace aura 99 } // namespace aura
100 100
101 #endif // UI_AURA_MONITOR_MANAGER_H_ 101 #endif // UI_AURA_MONITOR_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/aura/desktop/desktop_screen_x11.cc ('k') | ui/aura/monitor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698