| 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 UI_AURA_TEST_MUS_TEST_WINDOW_TREE_H_ | 5 #ifndef UI_AURA_TEST_MUS_TEST_WINDOW_TREE_H_ |
| 6 #define UI_AURA_TEST_MUS_TEST_WINDOW_TREE_H_ | 6 #define UI_AURA_TEST_MUS_TEST_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 struct Change { | 98 struct Change { |
| 99 WindowTreeChangeType type; | 99 WindowTreeChangeType type; |
| 100 uint32_t id; | 100 uint32_t id; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 void OnChangeReceived( | 103 void OnChangeReceived( |
| 104 uint32_t change_id, | 104 uint32_t change_id, |
| 105 WindowTreeChangeType type = WindowTreeChangeType::OTHER); | 105 WindowTreeChangeType type = WindowTreeChangeType::OTHER); |
| 106 | 106 |
| 107 // ui::mojom::WindowTree: | 107 // ui::mojom::WindowTree: |
| 108 void NewWindow(uint32_t change_id, | 108 void NewWindow( |
| 109 uint32_t window_id, | 109 uint32_t change_id, |
| 110 const base::Optional< | 110 uint32_t window_id, |
| 111 std::unordered_map<std::string, std::vector<uint8_t>>>& | 111 const base::Optional< |
| 112 properties) override; | 112 std::unordered_map<std::string, std::vector<uint8_t>>>& properties, |
| 113 const cc::LocalFrameId& local_frame_id) override; |
| 113 void NewTopLevelWindow( | 114 void NewTopLevelWindow( |
| 114 uint32_t change_id, | 115 uint32_t change_id, |
| 115 uint32_t window_id, | 116 uint32_t window_id, |
| 116 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) | 117 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) |
| 117 override; | 118 override; |
| 118 void DeleteWindow(uint32_t change_id, uint32_t window_id) override; | 119 void DeleteWindow(uint32_t change_id, uint32_t window_id) override; |
| 119 void SetWindowBounds(uint32_t change_id, | 120 void SetWindowBounds(uint32_t change_id, |
| 120 uint32_t window_id, | 121 uint32_t window_id, |
| 121 const gfx::Rect& bounds) override; | 122 const gfx::Rect& bounds, |
| 123 const cc::LocalFrameId& local_frame_id) override; |
| 122 void SetClientArea(uint32_t window_id, | 124 void SetClientArea(uint32_t window_id, |
| 123 const gfx::Insets& insets, | 125 const gfx::Insets& insets, |
| 124 const base::Optional<std::vector<gfx::Rect>>& | 126 const base::Optional<std::vector<gfx::Rect>>& |
| 125 additional_client_areas) override; | 127 additional_client_areas) override; |
| 126 void SetHitTestMask(uint32_t window_id, | 128 void SetHitTestMask(uint32_t window_id, |
| 127 const base::Optional<gfx::Rect>& mask) override; | 129 const base::Optional<gfx::Rect>& mask) override; |
| 128 void SetCanAcceptDrops(uint32_t window_id, bool accepts_drags) override; | 130 void SetCanAcceptDrops(uint32_t window_id, bool accepts_drags) override; |
| 129 void SetWindowVisibility(uint32_t change_id, | 131 void SetWindowVisibility(uint32_t change_id, |
| 130 uint32_t window_id, | 132 uint32_t window_id, |
| 131 bool visible) override; | 133 bool visible) override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 gfx::Insets last_client_area_; | 218 gfx::Insets last_client_area_; |
| 217 | 219 |
| 218 base::Optional<gfx::Rect> last_hit_test_mask_; | 220 base::Optional<gfx::Rect> last_hit_test_mask_; |
| 219 | 221 |
| 220 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); | 222 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); |
| 221 }; | 223 }; |
| 222 | 224 |
| 223 } // namespace aura | 225 } // namespace aura |
| 224 | 226 |
| 225 #endif // UI_AURA_TEST_MUS_TEST_WINDOW_TREE_H_ | 227 #endif // UI_AURA_TEST_MUS_TEST_WINDOW_TREE_H_ |
| OLD | NEW |