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

Unified Diff: ui/views/widget/native_widget_aura.cc

Issue 15922004: Rename Widget::CalculateOffsetToAncestorWithLayer() to Widget::GetLayer() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_aura.cc
diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
index 754b258eead2f0474b8189a9b147c285c587a58c..37a6e41face01420eb0b9c3e499b5e22b8b83a33 100644
--- a/ui/views/widget/native_widget_aura.cc
+++ b/ui/views/widget/native_widget_aura.cc
@@ -219,11 +219,8 @@ ui::Compositor* NativeWidgetAura::GetCompositor() {
return window_->layer()->GetCompositor();
}
-gfx::Vector2d NativeWidgetAura::CalculateOffsetToAncestorWithLayer(
- ui::Layer** layer_parent) {
- if (layer_parent)
- *layer_parent = window_->layer();
- return gfx::Vector2d();
+ui::Layer* NativeWidgetAura::GetLayer() {
+ return window_->layer();
}
void NativeWidgetAura::ViewRemoved(View* view) {
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698