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 SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 const gfx::Rect& bounds); | 105 const gfx::Rect& bounds); |
106 void SetCapture(Window* window); | 106 void SetCapture(Window* window); |
107 void ReleaseCapture(Window* window); | 107 void ReleaseCapture(Window* window); |
108 void SetClientArea(Id window_id, | 108 void SetClientArea(Id window_id, |
109 const gfx::Insets& client_area, | 109 const gfx::Insets& client_area, |
110 const std::vector<gfx::Rect>& additional_client_areas); | 110 const std::vector<gfx::Rect>& additional_client_areas); |
111 void SetHitTestMask(Id window_id, const gfx::Rect& mask); | 111 void SetHitTestMask(Id window_id, const gfx::Rect& mask); |
112 void ClearHitTestMask(Id window_id); | 112 void ClearHitTestMask(Id window_id); |
113 void SetFocus(Window* window); | 113 void SetFocus(Window* window); |
114 void SetCanFocus(Id window_id, bool can_focus); | 114 void SetCanFocus(Id window_id, bool can_focus); |
| 115 void SetCanAcceptEvents(Id window_id, bool can_accept_events); |
115 void SetPredefinedCursor(Id window_id, ui::mojom::Cursor cursor_id); | 116 void SetPredefinedCursor(Id window_id, ui::mojom::Cursor cursor_id); |
116 void SetVisible(Window* window, bool visible); | 117 void SetVisible(Window* window, bool visible); |
117 void SetOpacity(Window* window, float opacity); | 118 void SetOpacity(Window* window, float opacity); |
118 void SetProperty(Window* window, | 119 void SetProperty(Window* window, |
119 const std::string& name, | 120 const std::string& name, |
120 mojo::Array<uint8_t> data); | 121 mojo::Array<uint8_t> data); |
121 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); | 122 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); |
122 void SetImeVisibility(Id window_id, | 123 void SetImeVisibility(Id window_id, |
123 bool visible, | 124 bool visible, |
124 mojo::TextInputStatePtr state); | 125 mojo::TextInputStatePtr state); |
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 base::Callback<void(bool)> on_current_move_finished_; | 430 base::Callback<void(bool)> on_current_move_finished_; |
430 | 431 |
431 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 432 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
432 | 433 |
433 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 434 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
434 }; | 435 }; |
435 | 436 |
436 } // namespace ui | 437 } // namespace ui |
437 | 438 |
438 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 439 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
OLD | NEW |