OLD | NEW |
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 "base/bind_helpers.h" | 5 #include "base/bind_helpers.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" | 9 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
10 #include "content/browser/frame_host/render_widget_host_view_guest.h" | 10 #include "content/browser/frame_host/render_widget_host_view_guest.h" |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 bool RenderWidgetHostViewGuest::OnMessageReceived(const IPC::Message& msg) { | 211 bool RenderWidgetHostViewGuest::OnMessageReceived(const IPC::Message& msg) { |
212 return platform_view_->OnMessageReceived(msg); | 212 return platform_view_->OnMessageReceived(msg); |
213 } | 213 } |
214 | 214 |
215 void RenderWidgetHostViewGuest::InitAsChild( | 215 void RenderWidgetHostViewGuest::InitAsChild( |
216 gfx::NativeView parent_view) { | 216 gfx::NativeView parent_view) { |
217 platform_view_->InitAsChild(parent_view); | 217 platform_view_->InitAsChild(parent_view); |
218 } | 218 } |
219 | 219 |
220 void RenderWidgetHostViewGuest::InitAsPopup( | 220 void RenderWidgetHostViewGuest::InitAsPopup( |
221 RenderWidgetHostView* parent_host_view, const gfx::Rect& pos) { | 221 RenderWidgetHostView* parent_host_view, const gfx::Rect& bounds) { |
222 // This should never get called. | 222 // This should never get called. |
223 NOTREACHED(); | 223 NOTREACHED(); |
224 } | 224 } |
225 | 225 |
226 void RenderWidgetHostViewGuest::InitAsFullscreen( | 226 void RenderWidgetHostViewGuest::InitAsFullscreen( |
227 RenderWidgetHostView* reference_host_view) { | 227 RenderWidgetHostView* reference_host_view) { |
228 // This should never get called. | 228 // This should never get called. |
229 NOTREACHED(); | 229 NOTREACHED(); |
230 } | 230 } |
231 | 231 |
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 } | 585 } |
586 | 586 |
587 if (blink::WebInputEvent::isGestureEventType(event->type)) { | 587 if (blink::WebInputEvent::isGestureEventType(event->type)) { |
588 host_->ForwardGestureEvent( | 588 host_->ForwardGestureEvent( |
589 *static_cast<const blink::WebGestureEvent*>(event)); | 589 *static_cast<const blink::WebGestureEvent*>(event)); |
590 return; | 590 return; |
591 } | 591 } |
592 } | 592 } |
593 | 593 |
594 } // namespace content | 594 } // namespace content |
OLD | NEW |