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_PORT_MUS_H_ | 5 #ifndef UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 6 #define UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 // WindowPort: | 222 // WindowPort: |
223 void OnPreInit(Window* window) override; | 223 void OnPreInit(Window* window) override; |
224 void OnDeviceScaleFactorChanged(float device_scale_factor) override; | 224 void OnDeviceScaleFactorChanged(float device_scale_factor) override; |
225 void OnWillAddChild(Window* child) override; | 225 void OnWillAddChild(Window* child) override; |
226 void OnWillRemoveChild(Window* child) override; | 226 void OnWillRemoveChild(Window* child) override; |
227 void OnWillMoveChild(size_t current_index, size_t dest_index) override; | 227 void OnWillMoveChild(size_t current_index, size_t dest_index) override; |
228 void OnVisibilityChanged(bool visible) override; | 228 void OnVisibilityChanged(bool visible) override; |
229 void OnDidChangeBounds(const gfx::Rect& old_bounds, | 229 void OnDidChangeBounds(const gfx::Rect& old_bounds, |
230 const gfx::Rect& new_bounds) override; | 230 const gfx::Rect& new_bounds) override; |
231 std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty( | 231 std::unique_ptr<ui::PropertyData> OnWillChangeProperty( |
232 const void* key) override; | 232 const void* key) override; |
233 void OnPropertyChanged(const void* key, | 233 void OnPropertyChanged(const void* key, |
234 std::unique_ptr<WindowPortPropertyData> data) override; | 234 std::unique_ptr<ui::PropertyData> data) override; |
235 | 235 |
236 WindowTreeClient* window_tree_client_; | 236 WindowTreeClient* window_tree_client_; |
237 | 237 |
238 Window* window_ = nullptr; | 238 Window* window_ = nullptr; |
239 | 239 |
240 // Used when this window is embedding a client. | 240 // Used when this window is embedding a client. |
241 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder; | 241 std::unique_ptr<ClientSurfaceEmbedder> client_surface_embedder; |
242 | 242 |
243 ServerChangeIdType next_server_change_id_ = 0; | 243 ServerChangeIdType next_server_change_id_ = 0; |
244 ServerChanges server_changes_; | 244 ServerChanges server_changes_; |
245 | 245 |
246 cc::SurfaceInfo surface_info_; | 246 cc::SurfaceInfo surface_info_; |
247 | 247 |
248 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; | 248 ui::mojom::Cursor predefined_cursor_ = ui::mojom::Cursor::CURSOR_NULL; |
249 | 249 |
250 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); | 250 DISALLOW_COPY_AND_ASSIGN(WindowPortMus); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace aura | 253 } // namespace aura |
254 | 254 |
255 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ | 255 #endif // UI_AURA_MUS_WINDOW_PORT_MUS_H_ |
OLD | NEW |