OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ | 5 #ifndef SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ |
6 #define SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ | 6 #define SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int32_t cursor_id) {} | 71 int32_t cursor_id) {} |
72 | 72 |
73 virtual void OnWindowTextInputStateChanged(ServerWindow* window, | 73 virtual void OnWindowTextInputStateChanged(ServerWindow* window, |
74 const ui::TextInputState& state) {} | 74 const ui::TextInputState& state) {} |
75 | 75 |
76 virtual void OnWindowSharedPropertyChanged( | 76 virtual void OnWindowSharedPropertyChanged( |
77 ServerWindow* window, | 77 ServerWindow* window, |
78 const std::string& name, | 78 const std::string& name, |
79 const std::vector<uint8_t>* new_data) {} | 79 const std::vector<uint8_t>* new_data) {} |
80 | 80 |
| 81 // Called when the window is no longer an embed root. |
| 82 virtual void OnWindowEmbeddedAppDisconnected(ServerWindow* window) {} |
| 83 |
81 // Called when a transient child is added to |window|. | 84 // Called when a transient child is added to |window|. |
82 virtual void OnTransientWindowAdded(ServerWindow* window, | 85 virtual void OnTransientWindowAdded(ServerWindow* window, |
83 ServerWindow* transient_child) {} | 86 ServerWindow* transient_child) {} |
84 | 87 |
85 // Called when a transient child is removed from |window|. | 88 // Called when a transient child is removed from |window|. |
86 virtual void OnTransientWindowRemoved(ServerWindow* window, | 89 virtual void OnTransientWindowRemoved(ServerWindow* window, |
87 ServerWindow* transient_child) {} | 90 ServerWindow* transient_child) {} |
88 | 91 |
89 protected: | 92 protected: |
90 virtual ~ServerWindowObserver() {} | 93 virtual ~ServerWindowObserver() {} |
91 }; | 94 }; |
92 | 95 |
93 } // namespace ws | 96 } // namespace ws |
94 | 97 |
95 } // namespace ui | 98 } // namespace ui |
96 | 99 |
97 #endif // SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ | 100 #endif // SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ |
OLD | NEW |