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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 419 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
420 size_t offset, | 420 size_t offset, |
421 const gfx::Range& range) { | 421 const gfx::Range& range) { |
422 selection_text_ = text; | 422 selection_text_ = text; |
423 selection_text_offset_ = offset; | 423 selection_text_offset_ = offset; |
424 selection_range_.set_start(range.start()); | 424 selection_range_.set_start(range.start()); |
425 selection_range_.set_end(range.end()); | 425 selection_range_.set_end(range.end()); |
426 } | 426 } |
427 | 427 |
| 428 ui::TextInputClient* RenderWidgetHostViewBase::GetTextInputClient() { |
| 429 NOTREACHED(); |
| 430 return NULL; |
| 431 } |
| 432 |
428 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { | 433 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { |
429 return showing_context_menu_; | 434 return showing_context_menu_; |
430 } | 435 } |
431 | 436 |
432 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { | 437 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { |
433 DCHECK_NE(showing_context_menu_, showing); | 438 DCHECK_NE(showing_context_menu_, showing); |
434 showing_context_menu_ = showing; | 439 showing_context_menu_ = showing; |
435 } | 440 } |
436 | 441 |
437 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { | 442 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 | 620 |
616 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { | 621 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { |
617 return GetViewBounds().size(); | 622 return GetViewBounds().size(); |
618 } | 623 } |
619 | 624 |
620 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { | 625 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { |
621 NOTIMPLEMENTED(); | 626 NOTIMPLEMENTED(); |
622 } | 627 } |
623 | 628 |
624 } // namespace content | 629 } // namespace content |
OLD | NEW |