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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 return base::string16(); | 446 return base::string16(); |
447 return selection_text_.substr( | 447 return selection_text_.substr( |
448 selection_range_.GetMin() - selection_text_offset_, | 448 selection_range_.GetMin() - selection_text_offset_, |
449 selection_range_.length()); | 449 selection_range_.length()); |
450 } | 450 } |
451 | 451 |
452 bool RenderWidgetHostViewBase::IsMouseLocked() { | 452 bool RenderWidgetHostViewBase::IsMouseLocked() { |
453 return mouse_locked_; | 453 return mouse_locked_; |
454 } | 454 } |
455 | 455 |
456 void RenderWidgetHostViewBase::HandledWheelEvent( | 456 void RenderWidgetHostViewBase::UnhandledWheelEvent( |
457 const blink::WebMouseWheelEvent& event, | 457 const blink::WebMouseWheelEvent& event) { |
458 bool consumed) { | |
459 // Most implementations don't need to do anything here. | 458 // Most implementations don't need to do anything here. |
460 } | 459 } |
461 | 460 |
462 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( | 461 InputEventAckState RenderWidgetHostViewBase::FilterInputEvent( |
463 const blink::WebInputEvent& input_event) { | 462 const blink::WebInputEvent& input_event) { |
464 // By default, input events are simply forwarded to the renderer. | 463 // By default, input events are simply forwarded to the renderer. |
465 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 464 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
466 } | 465 } |
467 | 466 |
468 void RenderWidgetHostViewBase::OnDidFlushInput() { | 467 void RenderWidgetHostViewBase::OnDidFlushInput() { |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 if (!impl) | 608 if (!impl) |
610 return; | 609 return; |
611 impl->FlushInput(); | 610 impl->FlushInput(); |
612 } | 611 } |
613 | 612 |
614 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { | 613 SkBitmap::Config RenderWidgetHostViewBase::PreferredReadbackFormat() { |
615 return SkBitmap::kARGB_8888_Config; | 614 return SkBitmap::kARGB_8888_Config; |
616 } | 615 } |
617 | 616 |
618 } // namespace content | 617 } // namespace content |
OLD | NEW |