OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_base.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/browser/accessibility/browser_accessibility_manager.h" | 8 #include "content/browser/accessibility/browser_accessibility_manager.h" |
9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.
h" | 9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.
h" |
10 #include "content/browser/renderer_host/render_process_host_impl.h" | 10 #include "content/browser/renderer_host/render_process_host_impl.h" |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 const WebKit::WebMouseWheelEvent& event) { | 415 const WebKit::WebMouseWheelEvent& event) { |
416 // Most implementations don't need to do anything here. | 416 // Most implementations don't need to do anything here. |
417 } | 417 } |
418 | 418 |
419 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( | 419 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( |
420 const WebKit::WebInputEvent& input_event) { | 420 const WebKit::WebInputEvent& input_event) { |
421 // By default, input events are simply forwarded to the renderer. | 421 // By default, input events are simply forwarded to the renderer. |
422 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 422 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
423 } | 423 } |
424 | 424 |
| 425 void RenderWidgetHostViewBase::GestureEventAck(int gesture_event_type) { |
| 426 } |
| 427 |
425 void RenderWidgetHostViewBase::SetPopupType(WebKit::WebPopupType popup_type) { | 428 void RenderWidgetHostViewBase::SetPopupType(WebKit::WebPopupType popup_type) { |
426 popup_type_ = popup_type; | 429 popup_type_ = popup_type; |
427 } | 430 } |
428 | 431 |
429 WebKit::WebPopupType RenderWidgetHostViewBase::GetPopupType() { | 432 WebKit::WebPopupType RenderWidgetHostViewBase::GetPopupType() { |
430 return popup_type_; | 433 return popup_type_; |
431 } | 434 } |
432 | 435 |
433 BrowserAccessibilityManager* | 436 BrowserAccessibilityManager* |
434 RenderWidgetHostViewBase::GetBrowserAccessibilityManager() const { | 437 RenderWidgetHostViewBase::GetBrowserAccessibilityManager() const { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 if (GetRenderWidgetHost()) | 509 if (GetRenderWidgetHost()) |
507 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); | 510 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost()); |
508 if (!impl) | 511 if (!impl) |
509 return; | 512 return; |
510 RenderProcessHostImpl* render_process_host = | 513 RenderProcessHostImpl* render_process_host = |
511 static_cast<RenderProcessHostImpl*>(impl->GetProcess()); | 514 static_cast<RenderProcessHostImpl*>(impl->GetProcess()); |
512 render_process_host->EndFrameSubscription(impl->GetRoutingID()); | 515 render_process_host->EndFrameSubscription(impl->GetRoutingID()); |
513 } | 516 } |
514 | 517 |
515 } // namespace content | 518 } // namespace content |
OLD | NEW |