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

Side by Side Diff: services/view_manager/server_view_observer.h

Issue 1531403003: Delete the ViewManager and WindowManager services. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-3
Patch Set: rebase Created 4 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_VIEW_MANAGER_SERVER_VIEW_OBSERVER_H_
6 #define SERVICES_VIEW_MANAGER_SERVER_VIEW_OBSERVER_H_
7
8 #include "mojo/services/view_manager/interfaces/view_manager_constants.mojom.h"
9
10 namespace gfx {
11 class Rect;
12 }
13
14 namespace mojo {
15 class ViewportMetrics;
16 }
17
18 namespace view_manager {
19
20 class ServerView;
21
22 // TODO(sky): rename to OnDid and OnWill everywhere.
23 class ServerViewObserver {
24 public:
25 // Invoked when a view is about to be destroyed; before any of the children
26 // have been removed and before the view has been removed from its parent.
27 virtual void OnWillDestroyView(ServerView* view) {}
28
29 // Invoked at the end of the View's destructor (after it has been removed from
30 // the hierarchy).
31 virtual void OnViewDestroyed(ServerView* view) {}
32
33 virtual void OnWillChangeViewHierarchy(ServerView* view,
34 ServerView* new_parent,
35 ServerView* old_parent) {}
36
37 virtual void OnViewHierarchyChanged(ServerView* view,
38 ServerView* new_parent,
39 ServerView* old_parent) {}
40
41 virtual void OnViewBoundsChanged(ServerView* view,
42 const gfx::Rect& old_bounds,
43 const gfx::Rect& new_bounds) {}
44
45 virtual void OnViewReordered(ServerView* view,
46 ServerView* relative,
47 mojo::OrderDirection direction) {}
48
49 virtual void OnWillChangeViewVisibility(ServerView* view) {}
50 virtual void OnViewVisibilityChanged(ServerView* view) {}
51
52 virtual void OnViewSharedPropertyChanged(
53 ServerView* view,
54 const std::string& name,
55 const std::vector<uint8_t>* new_data) {}
56
57 protected:
58 virtual ~ServerViewObserver() {}
59 };
60
61 } // namespace view_manager
62
63 #endif // SERVICES_VIEW_MANAGER_SERVER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « services/view_manager/server_view_drawn_tracker_unittest.cc ('k') | services/view_manager/test_change_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698