| OLD | NEW |
| 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 Loading... |
| 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& GetDisplayAt(size_t index) = 0; | 71 virtual gfx::Display* GetDisplayAt(size_t index) = 0; |
| 72 | 72 |
| 73 virtual size_t GetNumDisplays() 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& GetDisplayNearestWindow( | 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& GetDisplayNearestPoint( | 80 virtual const gfx::Display& GetDisplayNearestPoint( |
| 81 const gfx::Point& point) const = 0; | 81 const gfx::Point& point) const = 0; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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_ |
| OLD | NEW |