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_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 | 61 |
62 // testing::Test: | 62 // testing::Test: |
63 void SetUp() override; | 63 void SetUp() override; |
64 | 64 |
65 // WindowServerServiceTestBase: | 65 // WindowServerServiceTestBase: |
66 bool OnConnect(shell::Connection* connection) override; | 66 bool OnConnect(shell::Connection* connection) override; |
67 | 67 |
68 // WindowTreeClientDelegate: | 68 // WindowTreeClientDelegate: |
69 void OnEmbed(Window* root) override; | 69 void OnEmbed(Window* root) override; |
70 void OnDidDestroyClient(WindowTreeClient* client) override; | 70 void OnDidDestroyClient(WindowTreeClient* client) override; |
71 void OnEventObserved(const ui::Event& event, Window* target) override; | 71 void OnPointerEventObserved(const ui::PointerEvent& event, |
| 72 Window* target) override; |
72 | 73 |
73 // WindowManagerDelegate: | 74 // WindowManagerDelegate: |
74 void SetWindowManagerClient(WindowManagerClient* client) override; | 75 void SetWindowManagerClient(WindowManagerClient* client) override; |
75 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; | 76 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; |
76 bool OnWmSetProperty( | 77 bool OnWmSetProperty( |
77 Window* window, | 78 Window* window, |
78 const std::string& name, | 79 const std::string& name, |
79 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 80 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
80 Window* OnWmCreateTopLevelWindow( | 81 Window* OnWmCreateTopLevelWindow( |
81 std::map<std::string, std::vector<uint8_t>>* properties) override; | 82 std::map<std::string, std::vector<uint8_t>>* properties) override; |
(...skipping 30 matching lines...) Expand all Loading... |
112 WindowManagerClient* window_manager_client_; | 113 WindowManagerClient* window_manager_client_; |
113 | 114 |
114 bool window_tree_client_destroyed_; | 115 bool window_tree_client_destroyed_; |
115 | 116 |
116 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); | 117 DISALLOW_COPY_AND_ASSIGN(WindowServerTestBase); |
117 }; | 118 }; |
118 | 119 |
119 } // namespace ui | 120 } // namespace ui |
120 | 121 |
121 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ | 122 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_TEST_BASE_H_ |
OLD | NEW |