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

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

Issue 9699013: MonitorManager to manage multiple monitors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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
OLDNEW
(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 // Returns the monitor object nearest given |window|.
29 virtual const Monitor* GetMonitorNearestWindow(
30 const Window* window) const = 0;
31 virtual Monitor* GetMonitorNearestWindow(const Window* window) = 0;
32 // Returns the monitor object nearest given |pint|.
33 virtual const Monitor* GetMonitorNearestPoint(
34 const gfx::Point& point) const = 0;
35 // Returns the monitor that is consiered "primary".
36 virtual const Monitor* GetPrimaryMonitor() const = 0;
37 virtual size_t GetNumMonitors() const = 0;
38
39 protected:
40 friend class RootWindow;
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698