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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 1249013005: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. Created 5 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "cc/surfaces/surface.h" 8 #include "cc/surfaces/surface.h"
9 #include "cc/surfaces/surface_factory.h" 9 #include "cc/surfaces/surface_factory.h"
10 #include "cc/surfaces/surface_manager.h" 10 #include "cc/surfaces/surface_manager.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 163 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
164 switches::kSitePerProcess) && 164 switches::kSitePerProcess) &&
165 BrowserPluginGuest::IsGuest( 165 BrowserPluginGuest::IsGuest(
166 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { 166 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) {
167 return; 167 return;
168 } 168 }
169 169
170 NOTREACHED(); 170 NOTREACHED();
171 } 171 }
172 172
173 void RenderWidgetHostViewChildFrame::TextInputTypeChanged( 173 void RenderWidgetHostViewChildFrame::TextInputStateChanged(
174 ui::TextInputType type, 174 const ViewHostMsg_TextInputState_Params& params) {
175 ui::TextInputMode input_mode,
176 bool can_compose_inline,
177 int flags) {
178 // TODO(kenrb): Implement. 175 // TODO(kenrb): Implement.
179 } 176 }
180 177
181 void RenderWidgetHostViewChildFrame::RenderProcessGone( 178 void RenderWidgetHostViewChildFrame::RenderProcessGone(
182 base::TerminationStatus status, 179 base::TerminationStatus status,
183 int error_code) { 180 int error_code) {
184 if (frame_connector_) 181 if (frame_connector_)
185 frame_connector_->RenderProcessGone(); 182 frame_connector_->RenderProcessGone();
186 Destroy(); 183 Destroy();
187 } 184 }
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 BrowserAccessibilityManager::GetEmptyDocument(), delegate); 429 BrowserAccessibilityManager::GetEmptyDocument(), delegate);
433 } 430 }
434 431
435 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { 432 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() {
436 if (surface_factory_ && !surface_id_.is_null()) 433 if (surface_factory_ && !surface_id_.is_null())
437 surface_factory_->Destroy(surface_id_); 434 surface_factory_->Destroy(surface_id_);
438 surface_id_ = cc::SurfaceId(); 435 surface_id_ = cc::SurfaceId();
439 } 436 }
440 437
441 } // namespace content 438 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698