| 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 12 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| 13 #include "content/public/browser/render_process_host_observer.h" | 13 #include "content/public/browser/render_process_host_observer.h" |
| 14 #include "services/ui/public/cpp/input_event_handler.h" | 14 #include "services/ui/public/cpp/input_event_handler.h" |
| 15 #include "services/ui/public/cpp/scoped_window_ptr.h" | 15 #include "services/ui/public/cpp/scoped_window_ptr.h" |
| 16 #include "services/ui/public/cpp/window.h" | 16 #include "services/ui/public/cpp/window.h" |
| 17 | 17 |
| 18 namespace content { | 18 namespace content { |
| 19 | 19 |
| 20 class RenderWidgetHost; | 20 class RenderWidgetHost; |
| 21 class RenderWidgetHostImpl; | 21 class RenderWidgetHostImpl; |
| 22 struct NativeWebKeyboardEvent; | 22 struct NativeWebKeyboardEvent; |
| 23 struct TextInputState; | 23 struct TextInputState; |
| 24 | 24 |
| 25 // See comments in render_widget_host_view.h about this class and its members. | 25 // See comments in render_widget_host_view.h about this class and its members. |
| 26 // This version of RenderWidgetHostView is for builds of Chrome that run through | 26 // This version of RenderWidgetHostView is for builds of Chrome that run through |
| 27 // the mojo shell and use the Mandoline UI Service (Mus). Mus is responsible for | 27 // the standalone service runner and use the Mandoline UI Service (Mus). Mus is |
| 28 // windowing, compositing, and input event dispatch. The purpose of | 28 // responsible for windowing, compositing, and input event dispatch. The purpose |
| 29 // RenderWidgetHostViewMus is to manage the ui::Window owned by the content | 29 // of RenderWidgetHostViewMus is to manage the ui::Window owned by the content |
| 30 // embedder. The browser is the owner of the ui::Window, controlling properties | 30 // embedder. The browser is the owner of the ui::Window, controlling properties |
| 31 // such as visibility, and bounds. Some aspects such as input, focus, and cursor | 31 // such as visibility, and bounds. Some aspects such as input, focus, and cursor |
| 32 // are managed by Mus directly. Input event routing will be plumbed directly to | 32 // are managed by Mus directly. Input event routing will be plumbed directly to |
| 33 // the renderer from Mus. | 33 // the renderer from Mus. |
| 34 class CONTENT_EXPORT RenderWidgetHostViewMus | 34 class CONTENT_EXPORT RenderWidgetHostViewMus |
| 35 : public RenderWidgetHostViewBase, | 35 : public RenderWidgetHostViewBase, |
| 36 NON_EXPORTED_BASE(public ui::InputEventHandler) { | 36 NON_EXPORTED_BASE(public ui::InputEventHandler) { |
| 37 public: | 37 public: |
| 38 RenderWidgetHostViewMus(ui::Window* parent_window, | 38 RenderWidgetHostViewMus(ui::Window* parent_window, |
| 39 RenderWidgetHostImpl* widget); | 39 RenderWidgetHostImpl* widget); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 aura::Window* aura_window_; | 129 aura::Window* aura_window_; |
| 130 | 130 |
| 131 std::unique_ptr<ui::ScopedWindowPtr> mus_window_; | 131 std::unique_ptr<ui::ScopedWindowPtr> mus_window_; |
| 132 | 132 |
| 133 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMus); | 133 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMus); |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace content | 136 } // namespace content |
| 137 | 137 |
| 138 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ | 138 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ |
| OLD | NEW |