| 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 <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "components/mus/common/types.h" | 10 #include "components/mus/common/types.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 // Returns true if the specified window was created by this connection. | 61 // Returns true if the specified window was created by this connection. |
| 62 bool OwnsWindow(Id id) const; | 62 bool OwnsWindow(Id id) const; |
| 63 | 63 |
| 64 void SetBounds(Window* window, | 64 void SetBounds(Window* window, |
| 65 const gfx::Rect& old_bounds, | 65 const gfx::Rect& old_bounds, |
| 66 const gfx::Rect& bounds); | 66 const gfx::Rect& bounds); |
| 67 void SetClientArea(Id window_id, const gfx::Insets& client_area); | 67 void SetClientArea(Id window_id, const gfx::Insets& client_area); |
| 68 void SetFocus(Id window_id); | 68 void SetFocus(Id window_id); |
| 69 void SetCanFocus(Id window_id, bool can_focus); | 69 void SetCanFocus(Id window_id, bool can_focus); |
| 70 void SetPredefinedCursor(Id window_id, mus::mojom::Cursor cursor_id); |
| 70 void SetVisible(Window* window, bool visible); | 71 void SetVisible(Window* window, bool visible); |
| 71 void SetProperty(Window* window, | 72 void SetProperty(Window* window, |
| 72 const std::string& name, | 73 const std::string& name, |
| 73 mojo::Array<uint8_t> data); | 74 mojo::Array<uint8_t> data); |
| 74 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); | 75 void SetWindowTextInputState(Id window_id, mojo::TextInputStatePtr state); |
| 75 void SetImeVisibility(Id window_id, | 76 void SetImeVisibility(Id window_id, |
| 76 bool visible, | 77 bool visible, |
| 77 mojo::TextInputStatePtr state); | 78 mojo::TextInputStatePtr state); |
| 78 | 79 |
| 79 void Embed(Id window_id, | 80 void Embed(Id window_id, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 void OnWindowDeleted(Id window_id) override; | 168 void OnWindowDeleted(Id window_id) override; |
| 168 void OnWindowVisibilityChanged(Id window_id, bool visible) override; | 169 void OnWindowVisibilityChanged(Id window_id, bool visible) override; |
| 169 void OnWindowDrawnStateChanged(Id window_id, bool drawn) override; | 170 void OnWindowDrawnStateChanged(Id window_id, bool drawn) override; |
| 170 void OnWindowSharedPropertyChanged(Id window_id, | 171 void OnWindowSharedPropertyChanged(Id window_id, |
| 171 const mojo::String& name, | 172 const mojo::String& name, |
| 172 mojo::Array<uint8_t> new_data) override; | 173 mojo::Array<uint8_t> new_data) override; |
| 173 void OnWindowInputEvent(uint32_t event_id, | 174 void OnWindowInputEvent(uint32_t event_id, |
| 174 Id window_id, | 175 Id window_id, |
| 175 mojom::EventPtr event) override; | 176 mojom::EventPtr event) override; |
| 176 void OnWindowFocused(Id focused_window_id) override; | 177 void OnWindowFocused(Id focused_window_id) override; |
| 178 void OnWindowPredefinedCursorChanged(Id window_id, |
| 179 mojom::Cursor cursor) override; |
| 177 void OnChangeCompleted(uint32_t change_id, bool success) override; | 180 void OnChangeCompleted(uint32_t change_id, bool success) override; |
| 178 void WmSetBounds(uint32_t change_id, | 181 void WmSetBounds(uint32_t change_id, |
| 179 Id window_id, | 182 Id window_id, |
| 180 mojo::RectPtr transit_bounds) override; | 183 mojo::RectPtr transit_bounds) override; |
| 181 void WmSetProperty(uint32_t change_id, | 184 void WmSetProperty(uint32_t change_id, |
| 182 Id window_id, | 185 Id window_id, |
| 183 const mojo::String& name, | 186 const mojo::String& name, |
| 184 mojo::Array<uint8_t> transit_data) override; | 187 mojo::Array<uint8_t> transit_data) override; |
| 185 | 188 |
| 186 void OnActionCompleted(bool success); | 189 void OnActionCompleted(bool success); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 bool is_embed_root_; | 222 bool is_embed_root_; |
| 220 | 223 |
| 221 bool in_destructor_; | 224 bool in_destructor_; |
| 222 | 225 |
| 223 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 226 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
| 224 }; | 227 }; |
| 225 | 228 |
| 226 } // namespace mus | 229 } // namespace mus |
| 227 | 230 |
| 228 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 231 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
| OLD | NEW |