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

Side by Side Diff: ui/v2/public/view_observer.h

Issue 25757007: V2: Implement reparenting, bounds and visibility change notifications, and write more tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 2 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_V2_PUBLIC_VIEW_OBSERVER_H_ 5 #ifndef UI_V2_PUBLIC_VIEW_OBSERVER_H_
6 #define UI_V2_PUBLIC_VIEW_OBSERVER_H_ 6 #define UI_V2_PUBLIC_VIEW_OBSERVER_H_
7 7
8 #include "ui/v2/public/v2_export.h" 8 #include "ui/v2/public/v2_export.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // 3. |target|'s parent hierarchy in its |new_parent|. 45 // 3. |target|'s parent hierarchy in its |new_parent|.
46 // (only for Changed notifications). 46 // (only for Changed notifications).
47 // This sequence is performed via the OnTreeChange notification below before 47 // This sequence is performed via the OnTreeChange notification below before
48 // and after the change is committed. 48 // and after the change is committed.
49 virtual void OnViewTreeChange(const TreeChangeParams& params) {} 49 virtual void OnViewTreeChange(const TreeChangeParams& params) {}
50 50
51 // TODO(beng): stacking change notification? 51 // TODO(beng): stacking change notification?
52 52
53 // Disposition. 53 // Disposition.
54 54
55 virtual void OnViewDestroying() {} 55 virtual void OnViewDestroy(View* view, DispositionChangePhase phase) {}
56 virtual void OnViewDestroyed() {}
57 56
58 virtual void OnViewBoundsChanged(const gfx::Rect& old_bounds, 57 virtual void OnViewBoundsChanged(View* view,
58 const gfx::Rect& old_bounds,
59 const gfx::Rect& new_bounds) {} 59 const gfx::Rect& new_bounds) {}
60 60
61 virtual void OnViewVisibilityChanging() {} 61 virtual void OnViewVisibilityChange(View* view,
62 virtual void OnViewVisibilityChanged() {} 62 DispositionChangePhase phase) {}
63 63
64 protected: 64 protected:
65 virtual ~ViewObserver() {} 65 virtual ~ViewObserver() {}
66 }; 66 };
67 67
68 } // namespace v2 68 } // namespace v2
69 69
70 #endif // UI_V2_PUBLIC_VIEW_OBSERVER_H_ 70 #endif // UI_V2_PUBLIC_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/v2/public/view.h ('k') | ui/v2/src/layout.cc » ('j') | ui/v2/src/view_private.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698