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

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

Issue 11195036: Overscan calibration UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_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
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 the display is not registered.
oshima 2012/10/19 19:36:11 if no insets are specified for the display.
Jun Mukai 2012/10/19 21:39:34 Done.
83 gfx::Insets GetOverscanInsets(int64 display_id);
84
81 // DisplayManager overrides: 85 // DisplayManager overrides:
82 virtual void OnNativeDisplaysChanged( 86 virtual void OnNativeDisplaysChanged(
83 const std::vector<gfx::Display>& displays) OVERRIDE; 87 const std::vector<gfx::Display>& displays) OVERRIDE;
84 virtual aura::RootWindow* CreateRootWindowForDisplay( 88 virtual aura::RootWindow* CreateRootWindowForDisplay(
85 const gfx::Display& display) OVERRIDE; 89 const gfx::Display& display) OVERRIDE;
86 virtual gfx::Display* GetDisplayAt(size_t index) OVERRIDE; 90 virtual gfx::Display* GetDisplayAt(size_t index) OVERRIDE;
87 91
88 virtual size_t GetNumDisplays() const OVERRIDE; 92 virtual size_t GetNumDisplays() const OVERRIDE;
89 virtual const gfx::Display& GetDisplayNearestPoint( 93 virtual const gfx::Display& GetDisplayNearestPoint(
90 const gfx::Point& point) const OVERRIDE; 94 const gfx::Point& point) const OVERRIDE;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 147
144 DISALLOW_COPY_AND_ASSIGN(MultiDisplayManager); 148 DISALLOW_COPY_AND_ASSIGN(MultiDisplayManager);
145 }; 149 };
146 150
147 extern const aura::WindowProperty<int64>* const kDisplayIdKey; 151 extern const aura::WindowProperty<int64>* const kDisplayIdKey;
148 152
149 } // namespace internal 153 } // namespace internal
150 } // namespace ash 154 } // namespace ash
151 155
152 #endif // ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_ 156 #endif // ASH_DISPLAY_MULTI_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/display/multi_display_manager.cc » ('j') | ash/display/multi_display_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698