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

Side by Side Diff: ash/screen_ash.cc

Issue 10952028: Fix crashers in GetPrimaryDisplay (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return display by value 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/display/display_controller.cc ('k') | chrome/browser/lifetime/application_lifetime_aura.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 #include "ash/screen_ash.h" 5 #include "ash/screen_ash.h"
6 6
7 #include "ash/display/display_controller.h" 7 #include "ash/display/display_controller.h"
8 #include "ash/display/multi_display_manager.h" 8 #include "ash/display/multi_display_manager.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/wm/coordinate_conversion.h" 10 #include "ash/wm/coordinate_conversion.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const { 111 gfx::Display ScreenAsh::GetDisplayNearestPoint(const gfx::Point& point) const {
112 return GetDisplayManager()->GetDisplayNearestPoint(point); 112 return GetDisplayManager()->GetDisplayNearestPoint(point);
113 } 113 }
114 114
115 gfx::Display ScreenAsh::GetDisplayMatching(const gfx::Rect& match_rect) const { 115 gfx::Display ScreenAsh::GetDisplayMatching(const gfx::Rect& match_rect) const {
116 return GetDisplayManager()->GetDisplayMatching(match_rect); 116 return GetDisplayManager()->GetDisplayMatching(match_rect);
117 } 117 }
118 118
119 gfx::Display ScreenAsh::GetPrimaryDisplay() const { 119 gfx::Display ScreenAsh::GetPrimaryDisplay() const {
120 return Shell::GetInstance()->display_controller()->primary_display(); 120 return DisplayController::GetPrimaryDisplay();
121 } 121 }
122 122
123 } // namespace ash 123 } // namespace ash
OLDNEW
« no previous file with comments | « ash/display/display_controller.cc ('k') | chrome/browser/lifetime/application_lifetime_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698