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

Side by Side Diff: ash/display/multi_display_manager.h

Issue 10696002: ASH: Use virtual screen coordinates in Display::bounds() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/display/multi_display_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 ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_ 5 #ifndef ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_
6 #define ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_ 6 #define ASH_DISPLAY_MULTI_DISPLAY_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 ToggleDisplayScale(); 42 static void ToggleDisplayScale();
43 43
44 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window, 44 bool UpdateWorkAreaOfDisplayNearestWindow(const aura::Window* window,
45 const gfx::Insets& insets); 45 const gfx::Insets& insets);
46 46
47 // DisplayManager overrides: 47 // DisplayManager overrides:
48 virtual void OnNativeDisplaysChanged( 48 virtual void OnNativeDisplaysChanged(
49 const std::vector<gfx::Display>& displays) OVERRIDE; 49 const std::vector<gfx::Display>& displays) OVERRIDE;
50 virtual aura::RootWindow* CreateRootWindowForDisplay( 50 virtual aura::RootWindow* CreateRootWindowForDisplay(
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(MultiDisplayManager); 76 DISALLOW_COPY_AND_ASSIGN(MultiDisplayManager);
77 }; 77 };
78 78
79 extern const aura::WindowProperty<int>* const kDisplayIdKey; 79 extern const aura::WindowProperty<int>* const kDisplayIdKey;
80 80
81 } // namespace internal 81 } // namespace internal
82 } // namespace ash 82 } // namespace ash
83 83
84 #endif // ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_ 84 #endif // ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/display/display_controller_unittest.cc ('k') | ash/display/multi_display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698