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

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

Issue 19220002: [WIP] BufferedInputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix client assignment Created 7 years, 3 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 (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/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h" 10 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 const WebKit::WebMouseWheelEvent& event) { 449 const WebKit::WebMouseWheelEvent& event) {
450 // Most implementations don't need to do anything here. 450 // Most implementations don't need to do anything here.
451 } 451 }
452 452
453 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( 453 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent(
454 const WebKit::WebInputEvent& input_event) { 454 const WebKit::WebInputEvent& input_event) {
455 // By default, input events are simply forwarded to the renderer. 455 // By default, input events are simply forwarded to the renderer.
456 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 456 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
457 } 457 }
458 458
459 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() {
460 RenderWidgetHostImpl* impl = NULL;
461 if (GetRenderWidgetHost())
462 impl = RenderWidgetHostImpl::From(GetRenderWidgetHost());
463
464 if (impl)
465 impl->FlushInput();
466 }
467
459 void RenderWidgetHostViewBase::GestureEventAck(int gesture_event_type, 468 void RenderWidgetHostViewBase::GestureEventAck(int gesture_event_type,
460 InputEventAckState ack_result) {} 469 InputEventAckState ack_result) {}
461 470
462 void RenderWidgetHostViewBase::SetPopupType(WebKit::WebPopupType popup_type) { 471 void RenderWidgetHostViewBase::SetPopupType(WebKit::WebPopupType popup_type) {
463 popup_type_ = popup_type; 472 popup_type_ = popup_type;
464 } 473 }
465 474
466 WebKit::WebPopupType RenderWidgetHostViewBase::GetPopupType() { 475 WebKit::WebPopupType RenderWidgetHostViewBase::GetPopupType() {
467 return popup_type_; 476 return popup_type_;
468 } 477 }
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 564
556 uint32 RenderWidgetHostViewBase::RendererFrameNumber() { 565 uint32 RenderWidgetHostViewBase::RendererFrameNumber() {
557 return renderer_frame_number_; 566 return renderer_frame_number_;
558 } 567 }
559 568
560 void RenderWidgetHostViewBase::DidReceiveRendererFrame() { 569 void RenderWidgetHostViewBase::DidReceiveRendererFrame() {
561 ++renderer_frame_number_; 570 ++renderer_frame_number_;
562 } 571 }
563 572
564 } // namespace content 573 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698