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

Unified Diff: ui/aura/window.cc

Issue 2929903002: aura: Remove NotifyAncestorWindowTransformed in window observer. (Closed)
Patch Set: Fix aura_unittests. Created 3 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 | « ui/aura/window.h ('k') | ui/aura/window_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 7c1d01aba74af07bb344cf84a59676c50d5d3b3c..2712b0660894b2dd27d3702e0033be7a70f078a0 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -266,7 +266,6 @@ void Window::SetTransform(const gfx::Transform& transform) {
port_->OnDidChangeTransform(old_transform, transform);
for (WindowObserver& observer : observers_)
observer.OnWindowTransformed(this);
- NotifyAncestorWindowTransformed(this);
}
void Window::SetLayoutManager(LayoutManager* layout_manager) {
@@ -971,15 +970,6 @@ void Window::NotifyWindowVisibilityChangedUp(aura::Window* target,
}
}
-void Window::NotifyAncestorWindowTransformed(Window* source) {
- for (WindowObserver& observer : observers_)
- observer.OnAncestorWindowTransformed(source, this);
- for (Window::Windows::const_iterator it = children_.begin();
- it != children_.end(); ++it) {
- (*it)->NotifyAncestorWindowTransformed(source);
- }
-}
-
bool Window::CleanupGestureState() {
bool state_modified = false;
state_modified |= ui::GestureRecognizer::Get()->CancelActiveTouches(this);
« no previous file with comments | « ui/aura/window.h ('k') | ui/aura/window_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698