| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AURA_TEST_BASE_H_ | 5 #ifndef UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ | 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 TestWindowTree* window_tree() { return helper_->window_tree(); } | 80 TestWindowTree* window_tree() { return helper_->window_tree(); } |
| 81 WindowTreeClient* window_tree_client_impl() { | 81 WindowTreeClient* window_tree_client_impl() { |
| 82 return helper_->window_tree_client(); | 82 return helper_->window_tree_client(); |
| 83 } | 83 } |
| 84 ui::mojom::WindowTreeClient* window_tree_client(); | 84 ui::mojom::WindowTreeClient* window_tree_client(); |
| 85 | 85 |
| 86 // Resets the PropertyConverter. | 86 // Resets the PropertyConverter. |
| 87 void SetPropertyConverter(std::unique_ptr<PropertyConverter> helper); | 87 void SetPropertyConverter(std::unique_ptr<PropertyConverter> helper); |
| 88 | 88 |
| 89 // WindowTreeClientDelegate: | 89 // WindowTreeClientDelegate: |
| 90 void OnEmbed(Window* root) override; | 90 void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) override; |
| 91 void OnUnembed(Window* root) override; | 91 void OnUnembed(Window* root) override; |
| 92 void OnEmbedRootDestroyed(Window* root) override; | 92 void OnEmbedRootDestroyed(Window* root) override; |
| 93 void OnLostConnection(WindowTreeClient* client) override; | 93 void OnLostConnection(WindowTreeClient* client) override; |
| 94 void OnPointerEventObserved(const ui::PointerEvent& event, | 94 void OnPointerEventObserved(const ui::PointerEvent& event, |
| 95 Window* target) override; | 95 Window* target) override; |
| 96 | 96 |
| 97 // WindowManagerDelegate: | 97 // WindowManagerDelegate: |
| 98 void SetWindowManagerClient(WindowManagerClient* client) override; | 98 void SetWindowManagerClient(WindowManagerClient* client) override; |
| 99 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; | 99 bool OnWmSetBounds(Window* window, gfx::Rect* bounds) override; |
| 100 bool OnWmSetProperty( | 100 bool OnWmSetProperty( |
| 101 Window* window, | 101 Window* window, |
| 102 const std::string& name, | 102 const std::string& name, |
| 103 std::unique_ptr<std::vector<uint8_t>>* new_data) override; | 103 std::unique_ptr<std::vector<uint8_t>>* new_data) override; |
| 104 Window* OnWmCreateTopLevelWindow( | 104 Window* OnWmCreateTopLevelWindow( |
| 105 std::map<std::string, std::vector<uint8_t>>* properties) override; | 105 std::map<std::string, std::vector<uint8_t>>* properties) override; |
| 106 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, | 106 void OnWmClientJankinessChanged(const std::set<Window*>& client_windows, |
| 107 bool janky) override; | 107 bool janky) override; |
| 108 void OnWmNewDisplay(Window* window, const display::Display& display) override; | 108 void OnWmNewDisplay(std::unique_ptr<WindowTreeHostMus> window_tree_host, |
| 109 const display::Display& display) override; |
| 109 void OnWmDisplayRemoved(Window* window) override; | 110 void OnWmDisplayRemoved(Window* window) override; |
| 110 void OnWmDisplayModified(const display::Display& display) override; | 111 void OnWmDisplayModified(const display::Display& display) override; |
| 111 ui::mojom::EventResult OnAccelerator(uint32_t id, | 112 ui::mojom::EventResult OnAccelerator(uint32_t id, |
| 112 const ui::Event& event) override; | 113 const ui::Event& event) override; |
| 113 void OnWmPerformMoveLoop(Window* window, | 114 void OnWmPerformMoveLoop(Window* window, |
| 114 ui::mojom::MoveLoopSource source, | 115 ui::mojom::MoveLoopSource source, |
| 115 const gfx::Point& cursor_location, | 116 const gfx::Point& cursor_location, |
| 116 const base::Callback<void(bool)>& on_done) override; | 117 const base::Callback<void(bool)>& on_done) override; |
| 117 void OnWmCancelMoveLoop(Window* window) override; | 118 void OnWmCancelMoveLoop(Window* window) override; |
| 118 client::FocusClient* GetFocusClient() override; | 119 client::FocusClient* GetFocusClient() override; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 147 private: | 148 private: |
| 148 bool setup_called_ = false; | 149 bool setup_called_ = false; |
| 149 | 150 |
| 150 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseWithType); | 151 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseWithType); |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } // namespace test | 154 } // namespace test |
| 154 } // namespace aura | 155 } // namespace aura |
| 155 | 156 |
| 156 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ | 157 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ |
| OLD | NEW |