| 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_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; | 218 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; |
| 219 | 219 |
| 220 // Overridden from mus::InputEventHandler: | 220 // Overridden from mus::InputEventHandler: |
| 221 void OnWindowInputEvent( | 221 void OnWindowInputEvent( |
| 222 mus::Window* view, | 222 mus::Window* view, |
| 223 const ui::Event& event, | 223 const ui::Event& event, |
| 224 std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>* | 224 std::unique_ptr<base::Callback<void(mus::mojom::EventResult)>>* |
| 225 ack_callback) override; | 225 ack_callback) override; |
| 226 | 226 |
| 227 private: | 227 private: |
| 228 friend class NativeWidgetMusTest; |
| 228 class MusWindowObserver; | 229 class MusWindowObserver; |
| 229 | 230 |
| 230 ui::PlatformWindowDelegate* platform_window_delegate() { | 231 ui::PlatformWindowDelegate* platform_window_delegate() { |
| 231 return window_tree_host(); | 232 return window_tree_host(); |
| 232 } | 233 } |
| 233 | 234 |
| 234 void set_last_cursor(mus::mojom::Cursor cursor) { last_cursor_ = cursor; } | 235 void set_last_cursor(mus::mojom::Cursor cursor) { last_cursor_ = cursor; } |
| 235 void SetShowState(mus::mojom::ShowState show_state); | 236 void SetShowState(mus::mojom::ShowState show_state); |
| 236 | 237 |
| 237 void OnMusWindowVisibilityChanging(mus::Window* window); | 238 void OnMusWindowVisibilityChanging(mus::Window* window); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 262 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; | 263 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
| 263 std::unique_ptr<wm::CursorManager> cursor_manager_; | 264 std::unique_ptr<wm::CursorManager> cursor_manager_; |
| 264 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 265 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 265 | 266 |
| 266 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 267 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 267 }; | 268 }; |
| 268 | 269 |
| 269 } // namespace views | 270 } // namespace views |
| 270 | 271 |
| 271 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 272 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |