| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_MONITOR_MANAGER_H_ |
| 6 #define UI_AURA_MONITOR_MANAGER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <vector> |
| 10 |
| 11 #include "base/basictypes.h" |
| 12 #include "ui/aura/aura_export.h" |
| 13 #include "ui/gfx/insets.h" |
| 14 namespace gfx { |
| 15 class Point; |
| 16 } |
| 17 |
| 18 namespace aura { |
| 19 class Monitor; |
| 20 class RootWindow; |
| 21 class Window; |
| 22 |
| 23 class AURA_EXPORT MonitorManager { |
| 24 public: |
| 25 MonitorManager(); |
| 26 virtual ~MonitorManager(); |
| 27 |
| 28 virtual const Monitor* GetMonitorNearestWindow( |
| 29 const Window* window) const = 0; |
| 30 virtual const Monitor* GetMonitorNearestPoint( |
| 31 const gfx::Point& point) const = 0; |
| 32 virtual const Monitor* GetPrimaryMonitor() const = 0; |
| 33 |
| 34 virtual size_t GetNumMonitors() const = 0; |
| 35 |
| 36 protected: |
| 37 friend class RootWindow; |
| 38 friend class ScreenAura; |
| 39 |
| 40 virtual Monitor* GetMonitorNearestWindow(const Window* window) = 0; |
| 41 |
| 42 private: |
| 43 DISALLOW_COPY_AND_ASSIGN(MonitorManager); |
| 44 }; |
| 45 |
| 46 AURA_EXPORT MonitorManager* CreateSingleMonitorManager(RootWindow* root_window); |
| 47 |
| 48 } // namespace aura |
| 49 |
| 50 #endif // UI_AURA_MONITOR_MANAGER_H_ |
| OLD | NEW |