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