Chromium Code Reviews| 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_WS_WINDOW_TREE_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_TREE_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_TREE_H_ | 6 #define SERVICES_UI_WS_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 160 bool AddWindow(const ClientWindowId& parent_id, | 160 bool AddWindow(const ClientWindowId& parent_id, |
| 161 const ClientWindowId& child_id); | 161 const ClientWindowId& child_id); |
| 162 bool AddTransientWindow(const ClientWindowId& window_id, | 162 bool AddTransientWindow(const ClientWindowId& window_id, |
| 163 const ClientWindowId& transient_window_id); | 163 const ClientWindowId& transient_window_id); |
| 164 bool SetModal(const ClientWindowId& window_id); | 164 bool SetModal(const ClientWindowId& window_id); |
| 165 std::vector<const ServerWindow*> GetWindowTree( | 165 std::vector<const ServerWindow*> GetWindowTree( |
| 166 const ClientWindowId& window_id) const; | 166 const ClientWindowId& window_id) const; |
| 167 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); | 167 bool SetWindowVisibility(const ClientWindowId& window_id, bool visible); |
| 168 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity); | 168 bool SetWindowOpacity(const ClientWindowId& window_id, float opacity); |
| 169 bool SetFocus(const ClientWindowId& window_id); | 169 bool SetFocus(const ClientWindowId& window_id); |
| 170 void SetCanAcceptEvents(Id transport_window_id, | |
|
msw
2016/07/12 22:07:23
nit: reorder to match decl and keep overrides toge
riajiang
2016/07/13 00:01:46
Moved to after SetCanFocus and added a function in
| |
| 171 bool can_accept_events) override; | |
| 170 bool Embed(const ClientWindowId& window_id, | 172 bool Embed(const ClientWindowId& window_id, |
| 171 mojom::WindowTreeClientPtr client, | 173 mojom::WindowTreeClientPtr client, |
| 172 uint32_t flags); | 174 uint32_t flags); |
| 173 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); | 175 void DispatchInputEvent(ServerWindow* target, const ui::Event& event); |
| 174 | 176 |
| 175 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); | 177 bool IsWaitingForNewTopLevelWindow(uint32_t wm_change_id); |
| 176 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, | 178 void OnWindowManagerCreatedTopLevelWindow(uint32_t wm_change_id, |
| 177 uint32_t client_change_id, | 179 uint32_t client_change_id, |
| 178 const ServerWindow* window); | 180 const ServerWindow* window); |
| 179 void AddActivationParent(const ClientWindowId& window_id); | 181 void AddActivationParent(const ClientWindowId& window_id); |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 503 waiting_for_top_level_window_info_; | 505 waiting_for_top_level_window_info_; |
| 504 bool embedder_intercepts_events_ = false; | 506 bool embedder_intercepts_events_ = false; |
| 505 | 507 |
| 506 DISALLOW_COPY_AND_ASSIGN(WindowTree); | 508 DISALLOW_COPY_AND_ASSIGN(WindowTree); |
| 507 }; | 509 }; |
| 508 | 510 |
| 509 } // namespace ws | 511 } // namespace ws |
| 510 } // namespace ui | 512 } // namespace ui |
| 511 | 513 |
| 512 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ | 514 #endif // SERVICES_UI_WS_WINDOW_TREE_H_ |
| OLD | NEW |