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

Side by Side Diff: ui/aura/window_observer.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, 10 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
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #pragma once 7 #pragma once
8 8
9 #include "ui/aura/aura_export.h" 9 #include "ui/aura/aura_export.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const gfx::Rect& region) {} 51 const gfx::Rect& region) {}
52 52
53 // Invoked when the Window is being destroyed (i.e. from the start of its 53 // Invoked when the Window is being destroyed (i.e. from the start of its
54 // destructor). This is called before the window is removed from its parent. 54 // destructor). This is called before the window is removed from its parent.
55 virtual void OnWindowDestroying(Window* window) {} 55 virtual void OnWindowDestroying(Window* window) {}
56 56
57 // Invoked when the Window has been destroyed (i.e. at the end of its 57 // Invoked when the Window has been destroyed (i.e. at the end of its
58 // destructor). This is called after the window is removed from its parent. 58 // destructor). This is called after the window is removed from its parent.
59 virtual void OnWindowDestroyed(Window* window) {} 59 virtual void OnWindowDestroyed(Window* window) {}
60 60
61 // Called when a Window has been added to a RootWindow.
62 virtual void OnWindowAddedToRootWindow(Window* window) {}
63
64 // Called when a Window is about to be removed from a RootWindow.
65 virtual void OnWindowRemovingFromRootWindow(Window* window) {}
66
61 protected: 67 protected:
62 virtual ~WindowObserver() {} 68 virtual ~WindowObserver() {}
63 }; 69 };
64 70
65 } // namespace aura 71 } // namespace aura
66 72
67 #endif // UI_AURA_WINDOW_OBSERVER_H_ 73 #endif // UI_AURA_WINDOW_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698