| 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/gpu/gpu_data_manager_impl.h" | 9 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" | 10 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h" |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 bool RenderWidgetHostViewBase::IsMouseLocked() { | 444 bool RenderWidgetHostViewBase::IsMouseLocked() { |
| 445 return mouse_locked_; | 445 return mouse_locked_; |
| 446 } | 446 } |
| 447 | 447 |
| 448 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( | 448 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( |
| 449 const blink::WebInputEvent& input_event) { | 449 const blink::WebInputEvent& input_event) { |
| 450 // By default, input events are simply forwarded to the renderer. | 450 // By default, input events are simply forwarded to the renderer. |
| 451 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 451 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 452 } | 452 } |
| 453 | 453 |
| 454 void RenderWidgetHostViewBase::OnDidFlushInput() { | |
| 455 // The notification can safely be ignored by most implementations. | |
| 456 } | |
| 457 | |
| 458 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() { | 454 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() { |
| 459 if (flush_input_timer_.IsRunning()) | 455 if (flush_input_timer_.IsRunning()) |
| 460 return; | 456 return; |
| 461 | 457 |
| 462 flush_input_timer_.Start( | 458 flush_input_timer_.Start( |
| 463 FROM_HERE, | 459 FROM_HERE, |
| 464 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs), | 460 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs), |
| 465 this, | 461 this, |
| 466 &RenderWidgetHostViewBase::FlushInput); | 462 &RenderWidgetHostViewBase::FlushInput); |
| 467 } | 463 } |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 ? blink::WebScreenOrientationPortraitPrimary | 677 ? blink::WebScreenOrientationPortraitPrimary |
| 682 : blink::WebScreenOrientationPortraitSecondary; | 678 : blink::WebScreenOrientationPortraitSecondary; |
| 683 } | 679 } |
| 684 | 680 |
| 685 return primary_landscape_angle == angle | 681 return primary_landscape_angle == angle |
| 686 ? blink::WebScreenOrientationLandscapePrimary | 682 ? blink::WebScreenOrientationLandscapePrimary |
| 687 : blink::WebScreenOrientationLandscapeSecondary; | 683 : blink::WebScreenOrientationLandscapeSecondary; |
| 688 } | 684 } |
| 689 | 685 |
| 690 } // namespace content | 686 } // namespace content |
| OLD | NEW |