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

Side by Side Diff: mojo/services/public/cpp/view_manager/view_observer.h

Issue 621903004: Adds View::visible() and IsDrawn (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 6 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
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ 5 #ifndef MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_
6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ 6 #define MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 const gfx::Rect& old_bounds, 57 const gfx::Rect& old_bounds,
58 const gfx::Rect& new_bounds) {} 58 const gfx::Rect& new_bounds) {}
59 virtual void OnViewBoundsChanged(View* view, 59 virtual void OnViewBoundsChanged(View* view,
60 const gfx::Rect& old_bounds, 60 const gfx::Rect& old_bounds,
61 const gfx::Rect& new_bounds) {} 61 const gfx::Rect& new_bounds) {}
62 62
63 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {} 63 virtual void OnViewFocusChanged(View* gained_focus, View* lost_focus) {}
64 64
65 virtual void OnViewInputEvent(View* view, const EventPtr& event) {} 65 virtual void OnViewInputEvent(View* view, const EventPtr& event) {}
66 66
67 virtual void OnViewVisibilityChanging(View* view) {}
68 virtual void OnViewVisibilityChanged(View* view) {}
69
70 // Sent when the drawn state changes. This is only sent for the root nodes
71 // when embedded.
72 virtual void OnViewDrawnChanging(View* view) {}
73 virtual void OnViewDrawnChanged(View* view) {}
74
67 protected: 75 protected:
68 virtual ~ViewObserver() {} 76 virtual ~ViewObserver() {}
69 }; 77 };
70 78
71 } // namespace mojo 79 } // namespace mojo
72 80
73 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_ 81 #endif // MOJO_SERVICES_PUBLIC_CPP_VIEW_MANAGER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « mojo/services/public/cpp/view_manager/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698