| 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 // See TransientWindowClientObserver::OnWillRestackTransientChildAbove() for |
| 104 // details on this and OnTransientRestackDone(). |
| 105 virtual void PrepareForTransientRestack(WindowMus* window) = 0; |
| 106 virtual void OnTransientRestackDone(WindowMus* window) = 0; |
| 107 |
| 103 virtual void NotifyEmbeddedAppDisconnected() = 0; | 108 virtual void NotifyEmbeddedAppDisconnected() = 0; |
| 104 | 109 |
| 105 private: | 110 private: |
| 106 // Just for set_server_id(), which other places should not call. | 111 // Just for set_server_id(), which other places should not call. |
| 107 friend class WindowTreeClient; | 112 friend class WindowTreeClient; |
| 108 | 113 |
| 109 void set_server_id(Id id) { server_id_ = id; } | 114 void set_server_id(Id id) { server_id_ = id; } |
| 110 | 115 |
| 111 Id server_id_ = kInvalidServerId; | 116 Id server_id_ = kInvalidServerId; |
| 112 const WindowMusType window_mus_type_; | 117 const WindowMusType window_mus_type_; |
| 113 }; | 118 }; |
| 114 | 119 |
| 115 } // namespace aura | 120 } // namespace aura |
| 116 | 121 |
| 117 #endif // UI_AURA_MUS_WINDOW_MUS_H_ | 122 #endif // UI_AURA_MUS_WINDOW_MUS_H_ |
| OLD | NEW |