OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TREE_CLIENT_PRIVATE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 17 matching lines...) Expand all Loading... |
28 class Window; | 28 class Window; |
29 class WindowTreeClient; | 29 class WindowTreeClient; |
30 | 30 |
31 // Use to access implementation details of WindowTreeClient. | 31 // Use to access implementation details of WindowTreeClient. |
32 class WindowTreeClientPrivate { | 32 class WindowTreeClientPrivate { |
33 public: | 33 public: |
34 explicit WindowTreeClientPrivate(WindowTreeClient* tree_client_impl); | 34 explicit WindowTreeClientPrivate(WindowTreeClient* tree_client_impl); |
35 explicit WindowTreeClientPrivate(Window* window); | 35 explicit WindowTreeClientPrivate(Window* window); |
36 ~WindowTreeClientPrivate(); | 36 ~WindowTreeClientPrivate(); |
37 | 37 |
38 uint32_t event_observer_id(); | 38 uint32_t pointer_watcher_id(); |
39 | 39 |
40 // Calls OnEmbed() on the WindowTreeClient. | 40 // Calls OnEmbed() on the WindowTreeClient. |
41 void OnEmbed(mojom::WindowTree* window_tree); | 41 void OnEmbed(mojom::WindowTree* window_tree); |
42 | 42 |
43 void CallWmNewDisplayAdded(const display::Display& display); | 43 void CallWmNewDisplayAdded(const display::Display& display); |
44 | 44 |
45 // Pretends that |event| has been received from the window server. | 45 // Pretends that |event| has been received from the window server. |
46 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); | 46 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); |
47 | 47 |
48 // Sets the WindowTree and client id. | 48 // Sets the WindowTree and client id. |
49 void SetTreeAndClientId(mojom::WindowTree* window_tree, | 49 void SetTreeAndClientId(mojom::WindowTree* window_tree, |
50 ClientSpecificId client_id); | 50 ClientSpecificId client_id); |
51 | 51 |
52 private: | 52 private: |
53 WindowTreeClient* tree_client_impl_; | 53 WindowTreeClient* tree_client_impl_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); | 55 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); |
56 }; | 56 }; |
57 | 57 |
58 } // namespace ui | 58 } // namespace ui |
59 | 59 |
60 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ | 60 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_TREE_CLIENT_PRIVATE_H_ |
OLD | NEW |