| OLD | NEW |
| (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_ | |
| OLD | NEW |