| 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> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 16 #include "components/mus/public/interfaces/window_tree.mojom.h" | 16 #include "components/mus/public/interfaces/window_tree.mojom.h" |
| 17 #include "ui/aura/window_delegate.h" | 17 #include "ui/aura/window_delegate.h" |
| 18 #include "ui/aura/window_tree_host_observer.h" | 18 #include "ui/aura/window_tree_host_observer.h" |
| 19 #include "ui/platform_window/platform_window_delegate.h" | 19 #include "ui/platform_window/platform_window_delegate.h" |
| 20 #include "ui/views/mus/mus_export.h" | 20 #include "ui/views/mus/mus_export.h" |
| 21 #include "ui/views/widget/native_widget_private.h" | 21 #include "ui/views/widget/native_widget_private.h" |
| 22 | 22 |
| 23 namespace aura { | 23 namespace aura { |
| 24 namespace client { | 24 namespace client { |
| 25 class DefaultCaptureClient; | 25 class DefaultCaptureClient; |
| 26 class ScreenPositionClient; |
| 26 class WindowTreeClient; | 27 class WindowTreeClient; |
| 27 } | 28 } |
| 28 class Window; | 29 class Window; |
| 29 } | 30 } |
| 30 | 31 |
| 31 namespace mojo { | 32 namespace mojo { |
| 32 class Shell; | 33 class Shell; |
| 33 } | 34 } |
| 34 | 35 |
| 35 namespace mus { | 36 namespace mus { |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 void OnMouseEvent(ui::MouseEvent* event) override; | 194 void OnMouseEvent(ui::MouseEvent* event) override; |
| 194 void OnScrollEvent(ui::ScrollEvent* event) override; | 195 void OnScrollEvent(ui::ScrollEvent* event) override; |
| 195 void OnGestureEvent(ui::GestureEvent* event) override; | 196 void OnGestureEvent(ui::GestureEvent* event) override; |
| 196 | 197 |
| 197 // Overridden from aura::WindowTreeHostObserver: | 198 // Overridden from aura::WindowTreeHostObserver: |
| 198 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; | 199 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; |
| 199 | 200 |
| 200 private: | 201 private: |
| 201 mus::Window* window_; | 202 mus::Window* window_; |
| 202 | 203 |
| 203 mojo::Shell* shell_; | |
| 204 | |
| 205 internal::NativeWidgetDelegate* native_widget_delegate_; | 204 internal::NativeWidgetDelegate* native_widget_delegate_; |
| 206 | 205 |
| 207 const mus::mojom::SurfaceType surface_type_; | 206 const mus::mojom::SurfaceType surface_type_; |
| 208 ui::PlatformWindowState show_state_before_fullscreen_; | 207 ui::PlatformWindowState show_state_before_fullscreen_; |
| 209 | 208 |
| 210 // See class documentation for Widget in widget.h for a note about ownership. | 209 // See class documentation for Widget in widget.h for a note about ownership. |
| 211 Widget::InitParams::Ownership ownership_; | 210 Widget::InitParams::Ownership ownership_; |
| 212 | 211 |
| 213 // Aura configuration. | 212 // Aura configuration. |
| 214 scoped_ptr<SurfaceContextFactory> context_factory_; | 213 scoped_ptr<SurfaceContextFactory> context_factory_; |
| 215 scoped_ptr<WindowTreeHostMus> window_tree_host_; | 214 scoped_ptr<WindowTreeHostMus> window_tree_host_; |
| 216 aura::Window* content_; | 215 aura::Window* content_; |
| 217 scoped_ptr<wm::FocusController> focus_client_; | 216 scoped_ptr<wm::FocusController> focus_client_; |
| 218 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; | 217 scoped_ptr<aura::client::DefaultCaptureClient> capture_client_; |
| 219 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; | 218 scoped_ptr<aura::client::WindowTreeClient> window_tree_client_; |
| 219 scoped_ptr<aura::client::ScreenPositionClient> screen_position_client_; |
| 220 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; | 220 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; |
| 221 | 221 |
| 222 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); | 222 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 } // namespace views | 225 } // namespace views |
| 226 | 226 |
| 227 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ | 227 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ |
| OLD | NEW |