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

Unified Diff: ui/snapshot/snapshot_aura.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | ui/views/controls/menu/display_change_listener_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_aura.cc
diff --git a/ui/snapshot/snapshot_aura.cc b/ui/snapshot/snapshot_aura.cc
index 29daf9fc54bf69e7cc741de69b6bf798b0f5b75f..ea4cb1bc1022d3c5e99ea6402a2e461a7cfbb50f 100644
--- a/ui/snapshot/snapshot_aura.cc
+++ b/ui/snapshot/snapshot_aura.cc
@@ -40,9 +40,9 @@ bool GrabWindowSnapshot(gfx::NativeWindow window,
// We must take into account the window's position on the desktop.
read_pixels_bounds.Offset(
window->GetBoundsInRootWindow().origin().OffsetFromOrigin());
- aura::RootWindow* root_window = window->GetRootWindow();
- if (root_window)
- root_window->GetRootTransform().TransformRect(&read_pixels_bounds);
+ aura::WindowEventDispatcher* dispatcher = window->GetDispatcher();
+ if (dispatcher)
+ dispatcher->GetRootTransform().TransformRect(&read_pixels_bounds);
gfx::Rect read_pixels_bounds_in_pixel =
gfx::ToEnclosingRect(read_pixels_bounds);
« no previous file with comments | « ui/shell_dialogs/select_file_dialog_win.cc ('k') | ui/views/controls/menu/display_change_listener_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698