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

Side by Side Diff: services/view_manager/server_view_delegate.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
« no previous file with comments | « services/view_manager/server_view.cc ('k') | services/view_manager/server_view_drawn_tracker.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
6 #define SERVICES_VIEW_MANAGER_SERVER_VIEW_DELEGATE_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 // ServerViewDelegate is notified at key points in the lifetime of a
23 // ServerView. Some of the functions are similar to that of
24 // ServerViewObserver. For example, ServerViewDelegate::PrepareToDestroyView()
25 // and ServerViewObserver::OnWillDestroyView(). The key difference between
26 // the two are the ServerViewDelegate ones are always notified first, and
27 // ServerViewDelegate gets non-const arguments.
28 class ServerViewDelegate {
29 public:
30 // Invoked when a view is about to be destroyed; before any of the children
31 // have been removed and before the view has been removed from its parent.
32 virtual void PrepareToDestroyView(ServerView* view) = 0;
33
34 virtual void PrepareToChangeViewHierarchy(ServerView* view,
35 ServerView* new_parent,
36 ServerView* old_parent) = 0;
37
38 virtual void PrepareToChangeViewVisibility(ServerView* view) = 0;
39
40 virtual void OnScheduleViewPaint(const ServerView* view) = 0;
41
42 protected:
43 virtual ~ServerViewDelegate() {}
44 };
45
46 } // namespace view_manager
47
48 #endif // SERVICES_VIEW_MANAGER_SERVER_VIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/view_manager/server_view.cc ('k') | services/view_manager/server_view_drawn_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698