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 "components/mus/public/cpp/scoped_window_ptr.h" | 12 #include "components/mus/public/cpp/scoped_window_ptr.h" |
13 #include "components/mus/public/cpp/window.h" | 13 #include "components/mus/public/cpp/window.h" |
14 #include "content/browser/renderer_host/render_widget_host_view_base.h" | 14 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
15 #include "content/public/browser/render_process_host_observer.h" | 15 #include "content/public/browser/render_process_host_observer.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 class RenderWidgetHost; | 19 class RenderWidgetHost; |
20 class RenderWidgetHostImpl; | 20 class RenderWidgetHostImpl; |
21 struct NativeWebKeyboardEvent; | 21 struct NativeWebKeyboardEvent; |
Charlie Reis
2016/04/22 23:02:38
Need to declare the struct.
EhsanK
2016/04/25 19:09:00
Done.
| |
22 | 22 |
23 // See comments in render_widget_host_view.h about this class and its members. | 23 // See comments in render_widget_host_view.h about this class and its members. |
24 // This version of RenderWidgetHostView is for builds of Chrome that run through | 24 // This version of RenderWidgetHostView is for builds of Chrome that run through |
25 // the mojo shell and use the Mandoline UI Service (Mus). Mus is responsible for | 25 // the mojo shell and use the Mandoline UI Service (Mus). Mus is responsible for |
26 // windowing, compositing, and input event dispatch. The purpose of | 26 // windowing, compositing, and input event dispatch. The purpose of |
27 // RenderWidgetHostViewMus is to manage the mus::Window owned by the content | 27 // RenderWidgetHostViewMus is to manage the mus::Window owned by the content |
28 // embedder. The browser is the owner of the mus::Window, controlling properties | 28 // embedder. The browser is the owner of the mus::Window, controlling properties |
29 // such as visibility, and bounds. Some aspects such as input, focus, and cursor | 29 // such as visibility, and bounds. Some aspects such as input, focus, and cursor |
30 // are managed by Mus directly. Input event routing will be plumbed directly to | 30 // are managed by Mus directly. Input event routing will be plumbed directly to |
31 // the renderer from Mus. | 31 // the renderer from Mus. |
(...skipping 28 matching lines...) Expand all Loading... | |
60 void SetBackgroundColor(SkColor color) override; | 60 void SetBackgroundColor(SkColor color) override; |
61 gfx::Size GetPhysicalBackingSize() const override; | 61 gfx::Size GetPhysicalBackingSize() const override; |
62 base::string16 GetSelectedText() const override; | 62 base::string16 GetSelectedText() const override; |
63 | 63 |
64 // RenderWidgetHostViewBase implementation. | 64 // RenderWidgetHostViewBase implementation. |
65 void InitAsPopup(RenderWidgetHostView* parent_host_view, | 65 void InitAsPopup(RenderWidgetHostView* parent_host_view, |
66 const gfx::Rect& bounds) override; | 66 const gfx::Rect& bounds) override; |
67 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; | 67 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; |
68 void UpdateCursor(const WebCursor& cursor) override; | 68 void UpdateCursor(const WebCursor& cursor) override; |
69 void SetIsLoading(bool is_loading) override; | 69 void SetIsLoading(bool is_loading) override; |
70 void TextInputStateChanged( | 70 void TextInputStateChanged(const TextInputState& params) override; |
71 const ViewHostMsg_TextInputState_Params& params) override; | |
72 void ImeCancelComposition() override; | 71 void ImeCancelComposition() override; |
73 #if defined(OS_MACOSX) || defined(USE_AURA) | 72 #if defined(OS_MACOSX) || defined(USE_AURA) |
74 void ImeCompositionRangeChanged( | 73 void ImeCompositionRangeChanged( |
75 const gfx::Range& range, | 74 const gfx::Range& range, |
76 const std::vector<gfx::Rect>& character_bounds) override; | 75 const std::vector<gfx::Rect>& character_bounds) override; |
77 #endif | 76 #endif |
78 void RenderProcessGone(base::TerminationStatus status, | 77 void RenderProcessGone(base::TerminationStatus status, |
79 int error_code) override; | 78 int error_code) override; |
80 void Destroy() override; | 79 void Destroy() override; |
81 void SetTooltipText(const base::string16& tooltip_text) override; | 80 void SetTooltipText(const base::string16& tooltip_text) override; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 aura::Window* aura_window_; | 119 aura::Window* aura_window_; |
121 | 120 |
122 std::unique_ptr<mus::ScopedWindowPtr> mus_window_; | 121 std::unique_ptr<mus::ScopedWindowPtr> mus_window_; |
123 | 122 |
124 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMus); | 123 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMus); |
125 }; | 124 }; |
126 | 125 |
127 } // namespace content | 126 } // namespace content |
128 | 127 |
129 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ | 128 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MUS_H_ |
OLD | NEW |