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

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

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments Created 4 years, 7 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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
12 #include "build/build_config.h" 12 #include "build/build_config.h"
13 #include "cc/output/copy_output_request.h" 13 #include "cc/output/copy_output_request.h"
14 #include "cc/output/copy_output_result.h" 14 #include "cc/output/copy_output_result.h"
15 #include "cc/surfaces/surface.h" 15 #include "cc/surfaces/surface.h"
16 #include "cc/surfaces/surface_factory.h" 16 #include "cc/surfaces/surface_factory.h"
17 #include "cc/surfaces/surface_manager.h" 17 #include "cc/surfaces/surface_manager.h"
18 #include "cc/surfaces/surface_sequence.h" 18 #include "cc/surfaces/surface_sequence.h"
19 #include "content/browser/accessibility/browser_accessibility_manager.h" 19 #include "content/browser/accessibility/browser_accessibility_manager.h"
20 #include "content/browser/browser_plugin/browser_plugin_guest.h" 20 #include "content/browser/browser_plugin/browser_plugin_guest.h"
21 #include "content/browser/compositor/surface_utils.h" 21 #include "content/browser/compositor/surface_utils.h"
22 #include "content/browser/frame_host/cross_process_frame_connector.h" 22 #include "content/browser/frame_host/cross_process_frame_connector.h"
23 #include "content/browser/gpu/compositor_util.h" 23 #include "content/browser/gpu/compositor_util.h"
24 #include "content/browser/renderer_host/render_view_host_impl.h" 24 #include "content/browser/renderer_host/render_view_host_impl.h"
25 #include "content/browser/renderer_host/render_widget_host_delegate.h" 25 #include "content/browser/renderer_host/render_widget_host_delegate.h"
26 #include "content/browser/renderer_host/render_widget_host_impl.h" 26 #include "content/browser/renderer_host/render_widget_host_impl.h"
27 #include "content/browser/renderer_host/render_widget_host_input_event_router.h" 27 #include "content/browser/renderer_host/render_widget_host_input_event_router.h"
28 #include "content/common/text_input_state.h"
28 #include "content/common/view_messages.h" 29 #include "content/common/view_messages.h"
29 #include "content/public/browser/render_process_host.h" 30 #include "content/public/browser/render_process_host.h"
30 #include "content/public/common/browser_plugin_guest_mode.h" 31 #include "content/public/common/browser_plugin_guest_mode.h"
31 #include "gpu/ipc/common/gpu_messages.h" 32 #include "gpu/ipc/common/gpu_messages.h"
32 #include "ui/gfx/geometry/size_conversions.h" 33 #include "ui/gfx/geometry/size_conversions.h"
33 #include "ui/gfx/geometry/size_f.h" 34 #include "ui/gfx/geometry/size_f.h"
34 35
35 namespace content { 36 namespace content {
36 37
37 RenderWidgetHostViewChildFrame::RenderWidgetHostViewChildFrame( 38 RenderWidgetHostViewChildFrame::RenderWidgetHostViewChildFrame(
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && 214 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() &&
214 BrowserPluginGuest::IsGuest( 215 BrowserPluginGuest::IsGuest(
215 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { 216 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) {
216 return; 217 return;
217 } 218 }
218 219
219 NOTREACHED(); 220 NOTREACHED();
220 } 221 }
221 222
222 void RenderWidgetHostViewChildFrame::TextInputStateChanged( 223 void RenderWidgetHostViewChildFrame::TextInputStateChanged(
223 const ViewHostMsg_TextInputState_Params& params) { 224 const TextInputState& params) {
224 // TODO(kenrb): Implement. 225 // TODO(kenrb): Implement.
225 } 226 }
226 227
227 void RenderWidgetHostViewChildFrame::RenderProcessGone( 228 void RenderWidgetHostViewChildFrame::RenderProcessGone(
228 base::TerminationStatus status, 229 base::TerminationStatus status,
229 int error_code) { 230 int error_code) {
230 if (frame_connector_) 231 if (frame_connector_)
231 frame_connector_->RenderProcessGone(); 232 frame_connector_->RenderProcessGone();
232 Destroy(); 233 Destroy();
233 } 234 }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 585
585 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 586 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
586 return true; 587 return true;
587 } 588 }
588 589
589 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 590 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
590 return surface_id_; 591 return surface_id_;
591 }; 592 };
592 593
593 } // namespace content 594 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698