| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 void OnMouseEvent(ui::MouseEvent* event) override; | 201 void OnMouseEvent(ui::MouseEvent* event) override; |
| 202 void OnScrollEvent(ui::ScrollEvent* event) override; | 202 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 203 void OnGestureEvent(ui::GestureEvent* event) override; | 203 void OnGestureEvent(ui::GestureEvent* event) override; |
| 204 | 204 |
| 205 // Overridden from aura::WindowTreeHostObserver: | 205 // Overridden from aura::WindowTreeHostObserver: |
| 206 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; | 206 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; |
| 207 | 207 |
| 208 private: | 208 private: |
| 209 class MusWindowObserver; | 209 class MusWindowObserver; |
| 210 | 210 |
| 211 void SetShowState(mus::mojom::ShowState show_state); |
| 212 |
| 211 void OnMusWindowVisibilityChanging(mus::Window* window); | 213 void OnMusWindowVisibilityChanging(mus::Window* window); |
| 212 void OnMusWindowVisibilityChanged(mus::Window* window); | 214 void OnMusWindowVisibilityChanged(mus::Window* window); |
| 213 | 215 |
| 214 mus::Window* window_; | 216 mus::Window* window_; |
| 215 | 217 |
| 216 internal::NativeWidgetDelegate* native_widget_delegate_; | 218 internal::NativeWidgetDelegate* native_widget_delegate_; |
| 217 | 219 |
| 218 const mus::mojom::SurfaceType surface_type_; | 220 const mus::mojom::SurfaceType surface_type_; |
| 219 ui::PlatformWindowState show_state_before_fullscreen_; | 221 ui::PlatformWindowState show_state_before_fullscreen_; |
| 220 | 222 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 235 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; | 237 std::unique_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
| 236 std::unique_ptr<wm::CursorManager> cursor_manager_; | 238 std::unique_ptr<wm::CursorManager> cursor_manager_; |
| 237 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 239 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 238 | 240 |
| 239 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 241 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 240 }; | 242 }; |
| 241 | 243 |
| 242 } // namespace views | 244 } // namespace views |
| 243 | 245 |
| 244 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 246 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |