| 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 SetCanAcceptDrags(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 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, |
| 109 uint32_t drag_operation, |
| 110 const gfx::Point& cursor_offset, |
| 111 const SkBitmap& drag_representation) override; |
| 105 void PerformWindowMove(uint32_t change_id, | 112 void PerformWindowMove(uint32_t change_id, |
| 106 uint32_t window_id, | 113 uint32_t window_id, |
| 107 mojom::MoveLoopSource source, | 114 mojom::MoveLoopSource source, |
| 108 const gfx::Point& cursor_location) override; | 115 const gfx::Point& cursor_location) override; |
| 109 void CancelWindowMove(uint32_t window_id) override; | 116 void CancelWindowMove(uint32_t window_id) override; |
| 110 | 117 |
| 111 bool got_change_; | 118 bool got_change_; |
| 112 uint32_t change_id_; | 119 uint32_t change_id_; |
| 113 std::set<uint32_t> acked_events_; | 120 std::set<uint32_t> acked_events_; |
| 114 uint32_t window_id_; | 121 uint32_t window_id_; |
| 115 | 122 |
| 116 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); | 123 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); |
| 117 }; | 124 }; |
| 118 | 125 |
| 119 } // namespace ui | 126 } // namespace ui |
| 120 | 127 |
| 121 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ | 128 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
| OLD | NEW |