| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool OwnsWindow(Window* window) const; | 80 bool OwnsWindow(Window* window) const; |
| 81 | 81 |
| 82 void SetBounds(Window* window, | 82 void SetBounds(Window* window, |
| 83 const gfx::Rect& old_bounds, | 83 const gfx::Rect& old_bounds, |
| 84 const gfx::Rect& bounds); | 84 const gfx::Rect& bounds); |
| 85 void SetCapture(Window* window); | 85 void SetCapture(Window* window); |
| 86 void ReleaseCapture(Window* window); | 86 void ReleaseCapture(Window* window); |
| 87 void SetClientArea(Id window_id, | 87 void SetClientArea(Id window_id, |
| 88 const gfx::Insets& client_area, | 88 const gfx::Insets& client_area, |
| 89 const std::vector<gfx::Rect>& additional_client_areas); | 89 const std::vector<gfx::Rect>& additional_client_areas); |
| 90 void SetHitTestMask(Id window_id, const gfx::Rect& mask); |
| 91 void ClearHitTestMask(Id window_id); |
| 90 void SetFocus(Window* window); | 92 void SetFocus(Window* window); |
| 91 void SetCanFocus(Id window_id, bool can_focus); | 93 void SetCanFocus(Id window_id, bool can_focus); |
| 92 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); | 94 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); |
| 93 void SetVisible(Window* window, bool visible); | 95 void SetVisible(Window* window, bool visible); |
| 94 void SetOpacity(Window* window, float opacity); | 96 void SetOpacity(Window* window, float opacity); |
| 95 void SetProperty(Window* window, | 97 void SetProperty(Window* window, |
| 96 const std::string& name, | 98 const std::string& name, |
| 97 mojo::Array<uint8_t> data); | 99 mojo::Array<uint8_t> data); |
| 98 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); | 100 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); |
| 99 void SetImeVisibility(Id window_id, | 101 void SetImeVisibility(Id window_id, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 uint32_t event_observer_id_ = 0u; | 324 uint32_t event_observer_id_ = 0u; |
| 323 | 325 |
| 324 base::WeakPtrFactory<WindowTreeClientImpl> weak_factory_; | 326 base::WeakPtrFactory<WindowTreeClientImpl> weak_factory_; |
| 325 | 327 |
| 326 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 328 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
| 327 }; | 329 }; |
| 328 | 330 |
| 329 } // namespace mus | 331 } // namespace mus |
| 330 | 332 |
| 331 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 333 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| OLD | NEW |