| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "services/ui/public/interfaces/cursor.mojom.h" |
| 13 #include "services/ui/public/interfaces/mus_constants.mojom.h" | 14 #include "services/ui/public/interfaces/mus_constants.mojom.h" |
| 14 | 15 |
| 15 namespace gfx { | 16 namespace gfx { |
| 16 class Insets; | 17 class Insets; |
| 17 class Rect; | 18 class Rect; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace ui { | 21 namespace ui { |
| 21 struct TextInputState; | 22 struct TextInputState; |
| 22 } | 23 } |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 ServerWindow* relative, | 60 ServerWindow* relative, |
| 60 mojom::OrderDirection direction) {} | 61 mojom::OrderDirection direction) {} |
| 61 | 62 |
| 62 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {} | 63 virtual void OnWillChangeWindowVisibility(ServerWindow* window) {} |
| 63 virtual void OnWindowVisibilityChanged(ServerWindow* window) {} | 64 virtual void OnWindowVisibilityChanged(ServerWindow* window) {} |
| 64 virtual void OnWindowOpacityChanged(ServerWindow* window, | 65 virtual void OnWindowOpacityChanged(ServerWindow* window, |
| 65 float old_opacity, | 66 float old_opacity, |
| 66 float new_opacity) {} | 67 float new_opacity) {} |
| 67 | 68 |
| 68 virtual void OnWindowPredefinedCursorChanged(ServerWindow* window, | 69 virtual void OnWindowPredefinedCursorChanged(ServerWindow* window, |
| 69 int32_t cursor_id) {} | 70 mojom::Cursor cursor_id) {} |
| 70 virtual void OnWindowNonClientCursorChanged(ServerWindow* window, | 71 virtual void OnWindowNonClientCursorChanged(ServerWindow* window, |
| 71 int32_t cursor_id) {} | 72 mojom::Cursor cursor_id) {} |
| 72 | 73 |
| 73 virtual void OnWindowTextInputStateChanged(ServerWindow* window, | 74 virtual void OnWindowTextInputStateChanged(ServerWindow* window, |
| 74 const ui::TextInputState& state) {} | 75 const ui::TextInputState& state) {} |
| 75 | 76 |
| 76 virtual void OnWindowSharedPropertyChanged( | 77 virtual void OnWindowSharedPropertyChanged( |
| 77 ServerWindow* window, | 78 ServerWindow* window, |
| 78 const std::string& name, | 79 const std::string& name, |
| 79 const std::vector<uint8_t>* new_data) {} | 80 const std::vector<uint8_t>* new_data) {} |
| 80 | 81 |
| 81 // Called when the window is no longer an embed root. | 82 // Called when the window is no longer an embed root. |
| 82 virtual void OnWindowEmbeddedAppDisconnected(ServerWindow* window) {} | 83 virtual void OnWindowEmbeddedAppDisconnected(ServerWindow* window) {} |
| 83 | 84 |
| 84 // Called when a transient child is added to |window|. | 85 // Called when a transient child is added to |window|. |
| 85 virtual void OnTransientWindowAdded(ServerWindow* window, | 86 virtual void OnTransientWindowAdded(ServerWindow* window, |
| 86 ServerWindow* transient_child) {} | 87 ServerWindow* transient_child) {} |
| 87 | 88 |
| 88 // Called when a transient child is removed from |window|. | 89 // Called when a transient child is removed from |window|. |
| 89 virtual void OnTransientWindowRemoved(ServerWindow* window, | 90 virtual void OnTransientWindowRemoved(ServerWindow* window, |
| 90 ServerWindow* transient_child) {} | 91 ServerWindow* transient_child) {} |
| 91 | 92 |
| 92 protected: | 93 protected: |
| 93 virtual ~ServerWindowObserver() {} | 94 virtual ~ServerWindowObserver() {} |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace ws | 97 } // namespace ws |
| 97 | 98 |
| 98 } // namespace ui | 99 } // namespace ui |
| 99 | 100 |
| 100 #endif // SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ | 101 #endif // SERVICES_UI_WS_SERVER_WINDOW_OBSERVER_H_ |
| OLD | NEW |