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

Side by Side Diff: ui/aura/window_observer.h

Issue 132013004: Moves transient window observer methods out of WindowObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments and update gyp Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_AURA_WINDOW_OBSERVER_H_ 5 #ifndef UI_AURA_WINDOW_OBSERVER_H_
6 #define UI_AURA_WINDOW_OBSERVER_H_ 6 #define UI_AURA_WINDOW_OBSERVER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // window->RemoveObserver(this); 96 // window->RemoveObserver(this);
97 // } 97 // }
98 virtual void OnWindowDestroyed(Window* window) {} 98 virtual void OnWindowDestroyed(Window* window) {}
99 99
100 // Called when a Window has been added to a RootWindow. 100 // Called when a Window has been added to a RootWindow.
101 virtual void OnWindowAddedToRootWindow(Window* window) {} 101 virtual void OnWindowAddedToRootWindow(Window* window) {}
102 102
103 // Called when a Window is about to be removed from a RootWindow. 103 // Called when a Window is about to be removed from a RootWindow.
104 virtual void OnWindowRemovingFromRootWindow(Window* window) {} 104 virtual void OnWindowRemovingFromRootWindow(Window* window) {}
105 105
106 // Called when a transient child is added to |window|.
107 virtual void OnAddTransientChild(Window* window, Window* transient) {}
108
109 // Called when a transient child is removed from |window|.
110 virtual void OnRemoveTransientChild(Window* window, Window* transient) {}
111
112 protected: 106 protected:
113 virtual ~WindowObserver() {} 107 virtual ~WindowObserver() {}
114 }; 108 };
115 109
116 } // namespace aura 110 } // namespace aura
117 111
118 #endif // UI_AURA_WINDOW_OBSERVER_H_ 112 #endif // UI_AURA_WINDOW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698