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

Side by Side Diff: ash/monitor/multi_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 | « ash/monitor/monitor_controller.cc ('k') | ash/monitor/multi_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 ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ 5 #ifndef ASH_MONITOR_MULTI_MONITOR_MANAGER_H_
6 #define ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ 6 #define ASH_MONITOR_MULTI_MONITOR_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 30 matching lines...) Expand all
41 static void ToggleMonitorScale(); 41 static void ToggleMonitorScale();
42 42
43 bool UpdateWorkAreaOfMonitorNearestWindow(const aura::Window* window, 43 bool UpdateWorkAreaOfMonitorNearestWindow(const aura::Window* window,
44 const gfx::Insets& insets); 44 const gfx::Insets& insets);
45 45
46 // MonitorManager overrides: 46 // MonitorManager overrides:
47 virtual void OnNativeMonitorsChanged( 47 virtual void OnNativeMonitorsChanged(
48 const std::vector<gfx::Display>& displays) OVERRIDE; 48 const std::vector<gfx::Display>& displays) OVERRIDE;
49 virtual aura::RootWindow* CreateRootWindowForMonitor( 49 virtual aura::RootWindow* CreateRootWindowForMonitor(
50 const gfx::Display& display) OVERRIDE; 50 const gfx::Display& display) OVERRIDE;
51 virtual const gfx::Display& GetMonitorAt(size_t index) OVERRIDE; 51 virtual const gfx::Display& GetDisplayAt(size_t index) OVERRIDE;
52 52
53 virtual size_t GetNumMonitors() const OVERRIDE; 53 virtual size_t GetNumDisplays() const OVERRIDE;
54 virtual const gfx::Display& GetMonitorNearestPoint( 54 virtual const gfx::Display& GetDisplayNearestPoint(
55 const gfx::Point& point) const OVERRIDE; 55 const gfx::Point& point) const OVERRIDE;
56 virtual const gfx::Display& GetMonitorNearestWindow( 56 virtual const gfx::Display& GetDisplayNearestWindow(
57 const aura::Window* window) const OVERRIDE; 57 const aura::Window* window) const OVERRIDE;
58 58
59 // RootWindowObserver overrides: 59 // RootWindowObserver overrides:
60 virtual void OnRootWindowResized(const aura::RootWindow* root, 60 virtual void OnRootWindowResized(const aura::RootWindow* root,
61 const gfx::Size& new_size) OVERRIDE; 61 const gfx::Size& new_size) OVERRIDE;
62 62
63 private: 63 private:
64 typedef std::vector<gfx::Display> Displays; 64 typedef std::vector<gfx::Display> Displays;
65 65
66 void Init(); 66 void Init();
67 void AddRemoveMonitorImpl(); 67 void AddRemoveMonitorImpl();
68 void CycleMonitorImpl(); 68 void CycleMonitorImpl();
69 void ScaleMonitorImpl(); 69 void ScaleMonitorImpl();
70 gfx::Display& FindDisplayById(int id); 70 gfx::Display& FindDisplayById(int id);
71 71
72 Displays displays_; 72 Displays displays_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(MultiMonitorManager); 74 DISALLOW_COPY_AND_ASSIGN(MultiMonitorManager);
75 }; 75 };
76 76
77 extern const aura::WindowProperty<int>* const kMonitorIdKey; 77 extern const aura::WindowProperty<int>* const kMonitorIdKey;
78 78
79 } // namespace internal 79 } // namespace internal
80 } // namespace ash 80 } // namespace ash
81 81
82 #endif // ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ 82 #endif // ASH_MONITOR_MULTI_MONITOR_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/monitor/monitor_controller.cc ('k') | ash/monitor/multi_monitor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698