Chromium Code Reviews| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 71 // Returns invalid display if there is no display that can satisfy | 71 // Returns invalid display if there is no display that can satisfy |
| 72 // the condition. | 72 // the condition. |
| 73 const gfx::Display& FindDisplayContainingPoint( | 73 const gfx::Display& FindDisplayContainingPoint( |
| 74 const gfx::Point& point_in_screen) const; | 74 const gfx::Point& point_in_screen) const; |
| 75 | 75 |
| 76 // Registers the overscan insets for the display of the specified ID. Note | 76 // Registers the overscan insets for the display of the specified ID. Note |
| 77 // that the insets size should be specified in DIP size. It also triggers the | 77 // that the insets size should be specified in DIP size. It also triggers the |
| 78 // display's bounds change. | 78 // display's bounds change. |
| 79 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); | 79 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); |
| 80 | 80 |
| 81 // Returns the current overscan insets for the specified |display_id|. | |
| 82 // Returns an empty insets (0, 0, 0, 0) if no insets are specified for | |
| 83 // the display. | |
| 84 gfx::Insets GetOverscanInsets(int64 display_id); | |
|
oshima
2012/10/19 23:05:33
const; (same for displaycontroller)
Jun Mukai
2012/10/19 23:08:36
Done.
| |
| 85 | |
| 81 // DisplayManager overrides: | 86 // DisplayManager overrides: |
| 82 virtual void OnNativeDisplaysChanged( | 87 virtual void OnNativeDisplaysChanged( |
| 83 const std::vector<gfx::Display>& displays) OVERRIDE; | 88 const std::vector<gfx::Display>& displays) OVERRIDE; |
| 84 virtual aura::RootWindow* CreateRootWindowForDisplay( | 89 virtual aura::RootWindow* CreateRootWindowForDisplay( |
| 85 const gfx::Display& display) OVERRIDE; | 90 const gfx::Display& display) OVERRIDE; |
| 86 virtual gfx::Display* GetDisplayAt(size_t index) OVERRIDE; | 91 virtual gfx::Display* GetDisplayAt(size_t index) OVERRIDE; |
| 87 | 92 |
| 88 virtual size_t GetNumDisplays() const OVERRIDE; | 93 virtual size_t GetNumDisplays() const OVERRIDE; |
| 89 virtual const gfx::Display& GetDisplayNearestPoint( | 94 virtual const gfx::Display& GetDisplayNearestPoint( |
| 90 const gfx::Point& point) const OVERRIDE; | 95 const gfx::Point& point) const OVERRIDE; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 143 | 148 |
| 144 DISALLOW_COPY_AND_ASSIGN(MultiDisplayManager); | 149 DISALLOW_COPY_AND_ASSIGN(MultiDisplayManager); |
| 145 }; | 150 }; |
| 146 | 151 |
| 147 extern const aura::WindowProperty<int64>* const kDisplayIdKey; | 152 extern const aura::WindowProperty<int64>* const kDisplayIdKey; |
| 148 | 153 |
| 149 } // namespace internal | 154 } // namespace internal |
| 150 } // namespace ash | 155 } // namespace ash |
| 151 | 156 |
| 152 #endif // ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_ | 157 #endif // ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_ |
| OLD | NEW |