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_TEST_WINDOW_TREE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 30 matching lines...) Expand all Loading... |
41 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; | 41 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; |
42 void DeleteWindow(uint32_t change_id, uint32_t window_id) override; | 42 void DeleteWindow(uint32_t change_id, uint32_t window_id) override; |
43 void SetWindowBounds(uint32_t change_id, | 43 void SetWindowBounds(uint32_t change_id, |
44 uint32_t window_id, | 44 uint32_t window_id, |
45 const gfx::Rect& bounds) override; | 45 const gfx::Rect& bounds) override; |
46 void SetClientArea(uint32_t window_id, | 46 void SetClientArea(uint32_t window_id, |
47 const gfx::Insets& insets, | 47 const gfx::Insets& insets, |
48 mojo::Array<gfx::Rect> additional_client_areas) override; | 48 mojo::Array<gfx::Rect> additional_client_areas) override; |
49 void SetHitTestMask(uint32_t window_id, | 49 void SetHitTestMask(uint32_t window_id, |
50 const base::Optional<gfx::Rect>& mask) override; | 50 const base::Optional<gfx::Rect>& mask) override; |
| 51 void SetCanAcceptDrops(uint32_t window_id, bool accepts_drags) override; |
51 void SetWindowVisibility(uint32_t change_id, | 52 void SetWindowVisibility(uint32_t change_id, |
52 uint32_t window_id, | 53 uint32_t window_id, |
53 bool visible) override; | 54 bool visible) override; |
54 void SetWindowProperty(uint32_t change_id, | 55 void SetWindowProperty(uint32_t change_id, |
55 uint32_t window_id, | 56 uint32_t window_id, |
56 const mojo::String& name, | 57 const mojo::String& name, |
57 mojo::Array<uint8_t> value) override; | 58 mojo::Array<uint8_t> value) override; |
58 void SetWindowOpacity(uint32_t change_id, | 59 void SetWindowOpacity(uint32_t change_id, |
59 uint32_t window_id, | 60 uint32_t window_id, |
60 float opacity) override; | 61 float opacity) override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 void SetImeVisibility(uint32_t window_id, | 96 void SetImeVisibility(uint32_t window_id, |
96 bool visible, | 97 bool visible, |
97 mojo::TextInputStatePtr state) override; | 98 mojo::TextInputStatePtr state) override; |
98 void OnWindowInputEventAck(uint32_t event_id, | 99 void OnWindowInputEventAck(uint32_t event_id, |
99 ui::mojom::EventResult result) override; | 100 ui::mojom::EventResult result) override; |
100 void GetWindowManagerClient( | 101 void GetWindowManagerClient( |
101 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) | 102 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) |
102 override; | 103 override; |
103 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) | 104 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) |
104 override; | 105 override; |
| 106 void PerformDragDrop(uint32_t change_id, |
| 107 uint32_t source_window_id, |
| 108 int32_t drag_pointer, |
| 109 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, |
| 110 uint32_t drag_operation) override; |
105 void PerformWindowMove(uint32_t change_id, | 111 void PerformWindowMove(uint32_t change_id, |
106 uint32_t window_id, | 112 uint32_t window_id, |
107 mojom::MoveLoopSource source, | 113 mojom::MoveLoopSource source, |
108 const gfx::Point& cursor_location) override; | 114 const gfx::Point& cursor_location) override; |
109 void CancelWindowMove(uint32_t window_id) override; | 115 void CancelWindowMove(uint32_t window_id) override; |
110 | 116 |
111 bool got_change_; | 117 bool got_change_; |
112 uint32_t change_id_; | 118 uint32_t change_id_; |
113 std::set<uint32_t> acked_events_; | 119 std::set<uint32_t> acked_events_; |
114 uint32_t window_id_; | 120 uint32_t window_id_; |
115 | 121 |
116 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); | 122 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); |
117 }; | 123 }; |
118 | 124 |
119 } // namespace ui | 125 } // namespace ui |
120 | 126 |
121 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ | 127 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
OLD | NEW |