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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc

Issue 10696002: ASH: Use virtual screen coordinates in Display::bounds() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 6 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
« no previous file with comments | « ash/shell.cc ('k') | ui/aura/display_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc
index d9bdd8cc122648a34d0964358f8b867c01b38318..36927896057754107038cbd17fa1d9cb994088da 100644
--- a/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options2/chromeos/display_options_handler.cc
@@ -104,10 +104,10 @@ void DisplayOptionsHandler::SendDisplayInfo() {
base::ListValue displays;
for (size_t i = 0; i < display_manager->GetNumDisplays(); ++i) {
- const gfx::Display& display = display_manager->GetDisplayAt(i);
- const gfx::Rect& bounds = display.bounds();
+ const gfx::Display* display = display_manager->GetDisplayAt(i);
+ const gfx::Rect& bounds = display->bounds();
base::DictionaryValue* js_display = new base::DictionaryValue();
- js_display->SetDouble("id", display.id());
+ js_display->SetDouble("id", display->id());
js_display->SetDouble("x", bounds.x());
js_display->SetDouble("y", bounds.y());
js_display->SetDouble("width", bounds.width());
« no previous file with comments | « ash/shell.cc ('k') | ui/aura/display_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698