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 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 return base::string16(); | 434 return base::string16(); |
435 return selection_text_.substr( | 435 return selection_text_.substr( |
436 selection_range_.GetMin() - selection_text_offset_, | 436 selection_range_.GetMin() - selection_text_offset_, |
437 selection_range_.length()); | 437 selection_range_.length()); |
438 } | 438 } |
439 | 439 |
440 bool RenderWidgetHostViewBase::IsMouseLocked() { | 440 bool RenderWidgetHostViewBase::IsMouseLocked() { |
441 return mouse_locked_; | 441 return mouse_locked_; |
442 } | 442 } |
443 | 443 |
444 void RenderWidgetHostViewBase::UnhandledWheelEvent( | |
445 const blink::WebMouseWheelEvent& event) { | |
446 // Most implementations don't need to do anything here. | |
447 } | |
448 | |
449 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( | 444 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( |
450 const blink::WebInputEvent& input_event) { | 445 const blink::WebInputEvent& input_event) { |
451 // By default, input events are simply forwarded to the renderer. | 446 // By default, input events are simply forwarded to the renderer. |
452 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 447 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
453 } | 448 } |
454 | 449 |
455 void RenderWidgetHostViewBase::OnDidFlushInput() { | 450 void RenderWidgetHostViewBase::OnDidFlushInput() { |
456 // The notification can safely be ignored by most implementations. | 451 // The notification can safely be ignored by most implementations. |
457 } | 452 } |
458 | 453 |
459 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() { | 454 void RenderWidgetHostViewBase::OnSetNeedsFlushInput() { |
460 if (flush_input_timer_.IsRunning()) | 455 if (flush_input_timer_.IsRunning()) |
461 return; | 456 return; |
462 | 457 |
463 flush_input_timer_.Start( | 458 flush_input_timer_.Start( |
464 FROM_HERE, | 459 FROM_HERE, |
465 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs), | 460 base::TimeDelta::FromMicroseconds(kFlushInputRateInUs), |
466 this, | 461 this, |
467 &RenderWidgetHostViewBase::FlushInput); | 462 &RenderWidgetHostViewBase::FlushInput); |
468 } | 463 } |
469 | 464 |
| 465 void RenderWidgetHostViewBase::WheelEventAck( |
| 466 const blink::WebMouseWheelEvent& event, |
| 467 InputEventAckState ack_result) { |
| 468 } |
| 469 |
470 void RenderWidgetHostViewBase::GestureEventAck( | 470 void RenderWidgetHostViewBase::GestureEventAck( |
471 const blink::WebGestureEvent& event, | 471 const blink::WebGestureEvent& event, |
472 InputEventAckState ack_result) { | 472 InputEventAckState ack_result) { |
473 } | 473 } |
474 | 474 |
475 void RenderWidgetHostViewBase::SetPopupType(blink::WebPopupType popup_type) { | 475 void RenderWidgetHostViewBase::SetPopupType(blink::WebPopupType popup_type) { |
476 popup_type_ = popup_type; | 476 popup_type_ = popup_type; |
477 } | 477 } |
478 | 478 |
479 blink::WebPopupType RenderWidgetHostViewBase::GetPopupType() { | 479 blink::WebPopupType RenderWidgetHostViewBase::GetPopupType() { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 598 |
599 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { | 599 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { |
600 return GetViewBounds().size(); | 600 return GetViewBounds().size(); |
601 } | 601 } |
602 | 602 |
603 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { | 603 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { |
604 NOTIMPLEMENTED(); | 604 NOTIMPLEMENTED(); |
605 } | 605 } |
606 | 606 |
607 } // namespace content | 607 } // namespace content |
OLD | NEW |