| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_AURA_MUS_WINDOW_MUS_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_MUS_H_ |
| 6 #define UI_AURA_MUS_WINDOW_MUS_H_ | 6 #define UI_AURA_MUS_WINDOW_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 // Called in the rare case when WindowTreeClient needs to change state and | 93 // Called in the rare case when WindowTreeClient needs to change state and |
| 94 // can't go through one of the SetFooFromServer() functions above. Generally | 94 // can't go through one of the SetFooFromServer() functions above. Generally |
| 95 // because it needs to call another function that as a side effect changes the | 95 // because it needs to call another function that as a side effect changes the |
| 96 // window. Once the call to the underlying window has completed the returned | 96 // window. Once the call to the underlying window has completed the returned |
| 97 // object should be destroyed. | 97 // object should be destroyed. |
| 98 virtual std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( | 98 virtual std::unique_ptr<WindowMusChangeData> PrepareForServerBoundsChange( |
| 99 const gfx::Rect& bounds) = 0; | 99 const gfx::Rect& bounds) = 0; |
| 100 virtual std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( | 100 virtual std::unique_ptr<WindowMusChangeData> PrepareForServerVisibilityChange( |
| 101 bool value) = 0; | 101 bool value) = 0; |
| 102 | 102 |
| 103 // Called when the window on the server has been destroyed and the client code |
| 104 // is going to delete the window. The client may not immediately delete the |
| 105 // window (as compared to DestroyFromServer()). |
| 106 virtual void PrepareForDestroy() = 0; |
| 107 |
| 103 // See TransientWindowClientObserver::OnWillRestackTransientChildAbove() for | 108 // See TransientWindowClientObserver::OnWillRestackTransientChildAbove() for |
| 104 // details on this and OnTransientRestackDone(). | 109 // details on this and OnTransientRestackDone(). |
| 105 virtual void PrepareForTransientRestack(WindowMus* window) = 0; | 110 virtual void PrepareForTransientRestack(WindowMus* window) = 0; |
| 106 virtual void OnTransientRestackDone(WindowMus* window) = 0; | 111 virtual void OnTransientRestackDone(WindowMus* window) = 0; |
| 107 | 112 |
| 108 virtual void NotifyEmbeddedAppDisconnected() = 0; | 113 virtual void NotifyEmbeddedAppDisconnected() = 0; |
| 109 | 114 |
| 110 private: | 115 private: |
| 111 // Just for set_server_id(), which other places should not call. | 116 // Just for set_server_id(), which other places should not call. |
| 112 friend class WindowTreeClient; | 117 friend class WindowTreeClient; |
| 113 | 118 |
| 114 void set_server_id(Id id) { server_id_ = id; } | 119 void set_server_id(Id id) { server_id_ = id; } |
| 115 | 120 |
| 116 Id server_id_ = kInvalidServerId; | 121 Id server_id_ = kInvalidServerId; |
| 117 const WindowMusType window_mus_type_; | 122 const WindowMusType window_mus_type_; |
| 118 }; | 123 }; |
| 119 | 124 |
| 120 } // namespace aura | 125 } // namespace aura |
| 121 | 126 |
| 122 #endif // UI_AURA_MUS_WINDOW_MUS_H_ | 127 #endif // UI_AURA_MUS_WINDOW_MUS_H_ |
| OLD | NEW |