Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(780)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mus.cc

Issue 1889313002: Revert of Browser Side Text Input State Tracking for OOPIF (Manual). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "content/browser/renderer_host/render_widget_host_view_mus.h" 5 #include "content/browser/renderer_host/render_widget_host_view_mus.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "components/mus/public/cpp/window.h" 10 #include "components/mus/public/cpp/window.h"
11 #include "components/mus/public/cpp/window_tree_connection.h" 11 #include "components/mus/public/cpp/window_tree_connection.h"
12 #include "content/browser/renderer_host/render_process_host_impl.h" 12 #include "content/browser/renderer_host/render_process_host_impl.h"
13 #include "content/browser/renderer_host/render_widget_host_impl.h" 13 #include "content/browser/renderer_host/render_widget_host_impl.h"
14 #include "content/common/render_widget_window_tree_client_factory.mojom.h" 14 #include "content/common/render_widget_window_tree_client_factory.mojom.h"
15 #include "content/common/text_input_state.h"
16 #include "content/public/common/mojo_shell_connection.h" 15 #include "content/public/common/mojo_shell_connection.h"
17 #include "services/shell/public/cpp/connector.h" 16 #include "services/shell/public/cpp/connector.h"
18 #include "ui/aura/client/screen_position_client.h" 17 #include "ui/aura/client/screen_position_client.h"
19 #include "ui/aura/window.h" 18 #include "ui/aura/window.h"
20 #include "ui/base/hit_test.h" 19 #include "ui/base/hit_test.h"
21 20
22 namespace blink { 21 namespace blink {
23 struct WebScreenInfo; 22 struct WebScreenInfo;
24 } 23 }
25 24
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 gfx::Vector2dF RenderWidgetHostViewMus::GetLastScrollOffset() const { 116 gfx::Vector2dF RenderWidgetHostViewMus::GetLastScrollOffset() const {
118 return gfx::Vector2dF(); 117 return gfx::Vector2dF();
119 } 118 }
120 119
121 void RenderWidgetHostViewMus::RenderProcessGone(base::TerminationStatus status, 120 void RenderWidgetHostViewMus::RenderProcessGone(base::TerminationStatus status,
122 int error_code) { 121 int error_code) {
123 NOTIMPLEMENTED(); 122 NOTIMPLEMENTED();
124 } 123 }
125 124
126 void RenderWidgetHostViewMus::Destroy() { 125 void RenderWidgetHostViewMus::Destroy() {
127 // The WebContentsImpl should be notified about us so that it will not hold
128 // an invalid text input state which was due to active text on this view.
129 NotifyHostDelegateAboutShutdown();
130
131 delete aura_window_; 126 delete aura_window_;
132 } 127 }
133 128
134 gfx::Size RenderWidgetHostViewMus::GetPhysicalBackingSize() const { 129 gfx::Size RenderWidgetHostViewMus::GetPhysicalBackingSize() const {
135 return RenderWidgetHostViewBase::GetPhysicalBackingSize(); 130 return RenderWidgetHostViewBase::GetPhysicalBackingSize();
136 } 131 }
137 132
138 base::string16 RenderWidgetHostViewMus::GetSelectedText() const { 133 base::string16 RenderWidgetHostViewMus::GetSelectedText() const {
139 NOTIMPLEMENTED(); 134 NOTIMPLEMENTED();
140 return base::string16(); 135 return base::string16();
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } 179 }
185 180
186 void RenderWidgetHostViewMus::UpdateCursor(const WebCursor& cursor) { 181 void RenderWidgetHostViewMus::UpdateCursor(const WebCursor& cursor) {
187 // TODO(fsamuel): Implement cursors in Mus. 182 // TODO(fsamuel): Implement cursors in Mus.
188 NOTIMPLEMENTED(); 183 NOTIMPLEMENTED();
189 } 184 }
190 185
191 void RenderWidgetHostViewMus::SetIsLoading(bool is_loading) { 186 void RenderWidgetHostViewMus::SetIsLoading(bool is_loading) {
192 } 187 }
193 188
194 void RenderWidgetHostViewMus::UpdateInputMethodIfNecessary( 189 void RenderWidgetHostViewMus::TextInputStateChanged(
195 bool text_input_state_changed) { 190 const ViewHostMsg_TextInputState_Params& params) {
196 // TODO: Implement the IME logic when input state changes. 191 // TODO(fsamuel): Implement an IME mojo app.
197 } 192 }
198 193
199 void RenderWidgetHostViewMus::ImeCancelComposition() { 194 void RenderWidgetHostViewMus::ImeCancelComposition() {
200 // TODO(fsamuel): Implement an IME mojo app. 195 // TODO(fsamuel): Implement an IME mojo app.
201 } 196 }
202 197
203 void RenderWidgetHostViewMus::ImeCompositionRangeChanged( 198 void RenderWidgetHostViewMus::ImeCompositionRangeChanged(
204 const gfx::Range& range, 199 const gfx::Range& range,
205 const std::vector<gfx::Rect>& character_bounds) { 200 const std::vector<gfx::Rect>& character_bounds) {
206 // TODO(fsamuel): Implement IME. 201 // TODO(fsamuel): Implement IME.
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 296
302 void RenderWidgetHostViewMus::LockCompositingSurface() { 297 void RenderWidgetHostViewMus::LockCompositingSurface() {
303 NOTIMPLEMENTED(); 298 NOTIMPLEMENTED();
304 } 299 }
305 300
306 void RenderWidgetHostViewMus::UnlockCompositingSurface() { 301 void RenderWidgetHostViewMus::UnlockCompositingSurface() {
307 NOTIMPLEMENTED(); 302 NOTIMPLEMENTED();
308 } 303 }
309 304
310 } // namespace content 305 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mus.h ('k') | content/browser/site_per_process_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698