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/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.
h" | 9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture.
h" |
10 #include "content/browser/renderer_host/render_widget_host_impl.h" | 10 #include "content/browser/renderer_host/render_widget_host_impl.h" |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 void RenderWidgetHostViewBase::SelectionChanged(const string16& text, | 368 void RenderWidgetHostViewBase::SelectionChanged(const string16& text, |
369 size_t offset, | 369 size_t offset, |
370 const ui::Range& range) { | 370 const ui::Range& range) { |
371 selection_text_ = text; | 371 selection_text_ = text; |
372 selection_text_offset_ = offset; | 372 selection_text_offset_ = offset; |
373 selection_range_.set_start(range.start()); | 373 selection_range_.set_start(range.start()); |
374 selection_range_.set_end(range.end()); | 374 selection_range_.set_end(range.end()); |
375 } | 375 } |
376 | 376 |
| 377 void RenderWidgetHostViewBase::TouchEditingHandlesVisibilityChanged( |
| 378 bool visible) { |
| 379 } |
| 380 |
| 381 |
377 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { | 382 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { |
378 return showing_context_menu_; | 383 return showing_context_menu_; |
379 } | 384 } |
380 | 385 |
381 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { | 386 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { |
382 DCHECK_NE(showing_context_menu_, showing); | 387 DCHECK_NE(showing_context_menu_, showing); |
383 showing_context_menu_ = showing; | 388 showing_context_menu_ = showing; |
384 } | 389 } |
385 | 390 |
386 string16 RenderWidgetHostViewBase::GetSelectedText() const { | 391 string16 RenderWidgetHostViewBase::GetSelectedText() const { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 int mouse_event_y) { | 448 int mouse_event_y) { |
444 return new BasicMouseWheelSmoothScrollGesture(scroll_down, pixels_to_scroll, | 449 return new BasicMouseWheelSmoothScrollGesture(scroll_down, pixels_to_scroll, |
445 mouse_event_x, mouse_event_y); | 450 mouse_event_x, mouse_event_y); |
446 } | 451 } |
447 | 452 |
448 void RenderWidgetHostViewBase::ProcessAckedTouchEvent( | 453 void RenderWidgetHostViewBase::ProcessAckedTouchEvent( |
449 const WebKit::WebTouchEvent& touch, InputEventAckState ack_result) { | 454 const WebKit::WebTouchEvent& touch, InputEventAckState ack_result) { |
450 } | 455 } |
451 | 456 |
452 } // namespace content | 457 } // namespace content |
OLD | NEW |