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

Side by Side Diff: ash/monitor/multi_monitor_manager.h

Issue 10696002: ASH: Use virtual screen coordinates in Display::bounds() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 static void ToggleMonitorScale(); 42 static void ToggleMonitorScale();
43 43
44 bool UpdateWorkAreaOfMonitorNearestWindow(const aura::Window* window, 44 bool UpdateWorkAreaOfMonitorNearestWindow(const aura::Window* window,
45 const gfx::Insets& insets); 45 const gfx::Insets& insets);
46 46
47 // MonitorManager overrides: 47 // MonitorManager overrides:
48 virtual void OnNativeMonitorsChanged( 48 virtual void OnNativeMonitorsChanged(
49 const std::vector<gfx::Display>& displays) OVERRIDE; 49 const std::vector<gfx::Display>& displays) OVERRIDE;
50 virtual aura::RootWindow* CreateRootWindowForMonitor( 50 virtual aura::RootWindow* CreateRootWindowForMonitor(
51 const gfx::Display& display) OVERRIDE; 51 const gfx::Display& display) OVERRIDE;
52 virtual const gfx::Display& GetDisplayAt(size_t index) OVERRIDE; 52 virtual gfx::Display* GetDisplayAt(size_t index) OVERRIDE;
53 53
54 virtual size_t GetNumDisplays() const OVERRIDE; 54 virtual size_t GetNumDisplays() const OVERRIDE;
55 virtual const gfx::Display& GetDisplayNearestPoint( 55 virtual const gfx::Display& GetDisplayNearestPoint(
56 const gfx::Point& point) const OVERRIDE; 56 const gfx::Point& point) const OVERRIDE;
57 virtual const gfx::Display& GetDisplayNearestWindow( 57 virtual const gfx::Display& GetDisplayNearestWindow(
58 const aura::Window* window) const OVERRIDE; 58 const aura::Window* window) const OVERRIDE;
59 59
60 // RootWindowObserver overrides: 60 // RootWindowObserver overrides:
61 virtual void OnRootWindowResized(const aura::RootWindow* root, 61 virtual void OnRootWindowResized(const aura::RootWindow* root,
62 const gfx::Size& new_size) OVERRIDE; 62 const gfx::Size& new_size) OVERRIDE;
(...skipping 12 matching lines...) Expand all
75 75
76 DISALLOW_COPY_AND_ASSIGN(MultiMonitorManager); 76 DISALLOW_COPY_AND_ASSIGN(MultiMonitorManager);
77 }; 77 };
78 78
79 extern const aura::WindowProperty<int>* const kMonitorIdKey; 79 extern const aura::WindowProperty<int>* const kMonitorIdKey;
80 80
81 } // namespace internal 81 } // namespace internal
82 } // namespace ash 82 } // namespace ash
83 83
84 #endif // ASH_MONITOR_MULTI_MONITOR_MANAGER_H_ 84 #endif // ASH_MONITOR_MULTI_MONITOR_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698