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

Unified Diff: ui/aura/display_manager.h

Issue 10905288: Switch primary display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: ui/aura/display_manager.h
diff --git a/ui/aura/display_manager.h b/ui/aura/display_manager.h
index 41a5e0435e0db5f5fd9fc00186675f5e09df7fab..796c6cf16303f3babfe38e8033a9117c2c1926bf 100644
--- a/ui/aura/display_manager.h
+++ b/ui/aura/display_manager.h
@@ -67,7 +67,9 @@ class AURA_EXPORT DisplayManager {
virtual RootWindow* CreateRootWindowForDisplay(
const gfx::Display& display) = 0;
- // Returns the display at |index|. The display at 0 is considered "primary".
+ // Obsoleted: Do not use in new code.
+ // Returns the display at |index|. The display at 0 is
+ // no longer considered "primary".
virtual gfx::Display* GetDisplayAt(size_t index) = 0;
virtual size_t GetNumDisplays() const = 0;
@@ -84,8 +86,8 @@ class AURA_EXPORT DisplayManager {
virtual const gfx::Display& GetDisplayMatching(
const gfx::Rect& match_rect) const = 0;
- // Returns the human-readable name for the display specified by |index|.
- virtual std::string GetDisplayNameAt(size_t index) = 0;
+ // Returns the human-readable name for the display specified by |display|.
+ virtual std::string GetDisplayNameFor(const gfx::Display& display) = 0;
protected:
// Calls observers' OnDisplayBoundsChanged methods.
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/display_options_handler.cc ('k') | ui/aura/root_window_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698