OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |