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

Side by Side Diff: components/mus/ws/server_window_drawn_tracker_observer.h

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 COMPONENTS_MUS_WS_SERVER_WINDOW_DRAWN_TRACKER_OBSERVER_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_DRAWN_TRACKER_OBSERVER_H_
7
8 namespace mus {
9
10 namespace ws {
11
12 class ServerWindow;
13
14 class ServerWindowDrawnTrackerObserver {
15 public:
16 // Invoked right before the drawn state changes. If |is_drawn| is false,
17 // |ancestor| identifies where the change will occur. In the case of a remove,
18 // |ancestor| is the parent of the window that will be removed (causing the
19 // drawn state to change). In the case of visibility change, |ancestor| is the
20 // parent of the window whose visibility will change.
21 virtual void OnDrawnStateWillChange(ServerWindow* ancestor,
22 ServerWindow* window,
23 bool is_drawn) {}
24
25 // Invoked when the drawn state changes. If |is_drawn| is false |ancestor|
26 // identifies where the change occurred. In the case of a remove |ancestor| is
27 // the parent of the window that was removed. In the case of a visibility
28 // change |ancestor| is the parent of the window whose visibility changed.
29 virtual void OnDrawnStateChanged(ServerWindow* ancestor,
30 ServerWindow* window,
31 bool is_drawn) {}
32
33 protected:
34 virtual ~ServerWindowDrawnTrackerObserver() {}
35 };
36
37 } // namespace ws
38
39 } // namespace mus
40
41 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_DRAWN_TRACKER_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/mus/ws/server_window_drawn_tracker.cc ('k') | components/mus/ws/server_window_drawn_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698