| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_SERVER_TEST_BASE_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_TEST_BASE_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_SERVER_TEST_BASE_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 const ui::Event& event) override; | 110 const ui::Event& event) override; |
| 111 void OnWmPerformMoveLoop(aura::Window* window, | 111 void OnWmPerformMoveLoop(aura::Window* window, |
| 112 mojom::MoveLoopSource source, | 112 mojom::MoveLoopSource source, |
| 113 const gfx::Point& cursor_location, | 113 const gfx::Point& cursor_location, |
| 114 const base::Callback<void(bool)>& on_done) override; | 114 const base::Callback<void(bool)>& on_done) override; |
| 115 void OnWmCancelMoveLoop(aura::Window* window) override; | 115 void OnWmCancelMoveLoop(aura::Window* window) override; |
| 116 void OnWmSetClientArea( | 116 void OnWmSetClientArea( |
| 117 aura::Window* window, | 117 aura::Window* window, |
| 118 const gfx::Insets& insets, | 118 const gfx::Insets& insets, |
| 119 const std::vector<gfx::Rect>& additional_client_areas) override; | 119 const std::vector<gfx::Rect>& additional_client_areas) override; |
| 120 bool IsWindowActive(aura::Window* window) override; |
| 121 void OnWmDeactivateWindow(aura::Window* window) override; |
| 120 | 122 |
| 121 // InterfaceFactory<WindowTreeClient>: | 123 // InterfaceFactory<WindowTreeClient>: |
| 122 void Create(const service_manager::Identity& remote_identity, | 124 void Create(const service_manager::Identity& remote_identity, |
| 123 mojo::InterfaceRequest<mojom::WindowTreeClient> request) override; | 125 mojo::InterfaceRequest<mojom::WindowTreeClient> request) override; |
| 124 | 126 |
| 125 private: | 127 private: |
| 126 // Removes |window_tree_host| from |window_tree_hosts_| and deletes it. | 128 // Removes |window_tree_host| from |window_tree_hosts_| and deletes it. |
| 127 // Returns true on success, and false if not found, in which case | 129 // Returns true on success, and false if not found, in which case |
| 128 // |window_tree_host| is not deleted. | 130 // |window_tree_host| is not deleted. |
| 129 bool DeleteWindowTreeHost(aura::WindowTreeHostMus* window_tree_host); | 131 bool DeleteWindowTreeHost(aura::WindowTreeHostMus* window_tree_host); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 151 aura::WindowManagerClient* window_manager_client_ = nullptr; | 153 aura::WindowManagerClient* window_manager_client_ = nullptr; |
| 152 | 154 |
| 153 bool window_tree_client_lost_connection_ = false; | 155 bool window_tree_client_lost_connection_ = false; |
| 154 | 156 |
| 155 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); | 157 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); |
| 156 }; | 158 }; |
| 157 | 159 |
| 158 } // namespace ui | 160 } // namespace ui |
| 159 | 161 |
| 160 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_BASE_H_ | 162 #endif // SERVICES_UI_WS_WINDOW_SERVER_TEST_BASE_H_ |
| OLD | NEW |