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

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

Issue 9701098: MultiMonitor support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clang fix 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
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/single_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_SINGLE_MONITOR_MANAGER_H_ 5 #ifndef UI_AURA_SINGLE_MONITOR_MANAGER_H_
6 #define UI_AURA_SINGLE_MONITOR_MANAGER_H_ 6 #define UI_AURA_SINGLE_MONITOR_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 10 matching lines...) Expand all
21 // A monitor manager assuming there is one monitor. 21 // A monitor manager assuming there is one monitor.
22 class SingleMonitorManager : public MonitorManager, 22 class SingleMonitorManager : public MonitorManager,
23 public WindowObserver { 23 public WindowObserver {
24 public: 24 public:
25 SingleMonitorManager(); 25 SingleMonitorManager();
26 virtual ~SingleMonitorManager(); 26 virtual ~SingleMonitorManager();
27 27
28 // MonitorManager overrides: 28 // MonitorManager overrides:
29 virtual void OnNativeMonitorResized(const gfx::Size& size) OVERRIDE; 29 virtual void OnNativeMonitorResized(const gfx::Size& size) OVERRIDE;
30 virtual RootWindow* CreateRootWindowForMonitor( 30 virtual RootWindow* CreateRootWindowForMonitor(
31 const Monitor* monitor) OVERRIDE; 31 Monitor* monitor) OVERRIDE;
32 virtual const Monitor* GetMonitorNearestWindow( 32 virtual const Monitor* GetMonitorNearestWindow(
33 const Window* window) const OVERRIDE; 33 const Window* window) const OVERRIDE;
34 virtual const Monitor* GetMonitorNearestPoint( 34 virtual const Monitor* GetMonitorNearestPoint(
35 const gfx::Point& point) const OVERRIDE; 35 const gfx::Point& point) const OVERRIDE;
36 virtual const Monitor* GetPrimaryMonitor() const OVERRIDE; 36 virtual Monitor* GetMonitorAt(size_t index) OVERRIDE;
37 virtual size_t GetNumMonitors() const OVERRIDE; 37 virtual size_t GetNumMonitors() const OVERRIDE;
38 virtual Monitor* GetMonitorNearestWindow(const Window* window) OVERRIDE; 38 virtual Monitor* GetMonitorNearestWindow(const Window* window) OVERRIDE;
39 39
40 // WindowObserver overrides: 40 // WindowObserver overrides:
41 virtual void OnWindowBoundsChanged(Window* window, 41 virtual void OnWindowBoundsChanged(Window* window,
42 const gfx::Rect& bounds) OVERRIDE; 42 const gfx::Rect& bounds) OVERRIDE;
43 virtual void OnWindowDestroying(Window* window) OVERRIDE; 43 virtual void OnWindowDestroying(Window* window) OVERRIDE;
44 44
45 private: 45 private:
46 void Init(); 46 void Init();
47 void Update(const gfx::Size size); 47 void Update(const gfx::Size size);
48 48
49 RootWindow* root_window_; 49 RootWindow* root_window_;
50 scoped_ptr<Monitor> monitor_; 50 scoped_ptr<Monitor> monitor_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(SingleMonitorManager); 52 DISALLOW_COPY_AND_ASSIGN(SingleMonitorManager);
53 }; 53 };
54 54
55 } // namespace internal 55 } // namespace internal
56 } // namespace aura 56 } // namespace aura
57 57
58 #endif // UI_AURA_SINGLE_MONITOR_MANAGER_H_ 58 #endif // UI_AURA_SINGLE_MONITOR_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/aura/single_monitor_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698