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

Unified Diff: ui/aura/root_window.h

Issue 9315015: Adds two new observer methods to allow code to be notified when a Window is added/removed from a ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 | « no previous file | ui/aura/root_window.cc » ('j') | ui/aura/window.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.h
===================================================================
--- ui/aura/root_window.h (revision 119955)
+++ ui/aura/root_window.h (working copy)
@@ -192,13 +192,9 @@
// Overridden from ui::CompositorDelegate:
virtual void ScheduleDraw() OVERRIDE;
- // Overridden from Window:
- virtual void OnWindowAttachedToRootWindow(
- Window* window) OVERRIDE;
- virtual void OnWindowDetachingFromRootWindow(
- Window* window) OVERRIDE;
+ private:
+ friend class Window;
- private:
RootWindow();
virtual ~RootWindow();
@@ -212,6 +208,10 @@
ui::GestureStatus ProcessGestureEvent(Window* target, GestureEvent* event);
bool ProcessGestures(GestureRecognizer::Gestures* gestures);
+ // Called when a Window is attached or detached from the RootWindow.
+ void OnWindowAddedToRootWindow(Window* window);
+ void OnWindowRemovedFromRootWindow(Window* window);
+
// Overridden from Window:
virtual bool CanFocus() const OVERRIDE;
virtual bool CanReceiveEvents() const OVERRIDE;
« no previous file with comments | « no previous file | ui/aura/root_window.cc » ('j') | ui/aura/window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698