| 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 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 | 407 |
| 408 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 408 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
| 409 size_t offset, | 409 size_t offset, |
| 410 const gfx::Range& range) { | 410 const gfx::Range& range) { |
| 411 selection_text_ = text; | 411 selection_text_ = text; |
| 412 selection_text_offset_ = offset; | 412 selection_text_offset_ = offset; |
| 413 selection_range_.set_start(range.start()); | 413 selection_range_.set_start(range.start()); |
| 414 selection_range_.set_end(range.end()); | 414 selection_range_.set_end(range.end()); |
| 415 } | 415 } |
| 416 | 416 |
| 417 ui::TextInputClient* RenderWidgetHostViewBase::GetTextInputClient() { |
| 418 NOTREACHED(); |
| 419 return NULL; |
| 420 } |
| 421 |
| 417 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { | 422 bool RenderWidgetHostViewBase::IsShowingContextMenu() const { |
| 418 return showing_context_menu_; | 423 return showing_context_menu_; |
| 419 } | 424 } |
| 420 | 425 |
| 421 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { | 426 void RenderWidgetHostViewBase::SetShowingContextMenu(bool showing) { |
| 422 DCHECK_NE(showing_context_menu_, showing); | 427 DCHECK_NE(showing_context_menu_, showing); |
| 423 showing_context_menu_ = showing; | 428 showing_context_menu_ = showing; |
| 424 } | 429 } |
| 425 | 430 |
| 426 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { | 431 base::string16 RenderWidgetHostViewBase::GetSelectedText() const { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 592 | 597 |
| 593 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { | 598 gfx::Size RenderWidgetHostViewBase::GetVisibleViewportSize() const { |
| 594 return GetViewBounds().size(); | 599 return GetViewBounds().size(); |
| 595 } | 600 } |
| 596 | 601 |
| 597 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { | 602 void RenderWidgetHostViewBase::SetInsets(const gfx::Insets& insets) { |
| 598 NOTIMPLEMENTED(); | 603 NOTIMPLEMENTED(); |
| 599 } | 604 } |
| 600 | 605 |
| 601 } // namespace content | 606 } // namespace content |
| OLD | NEW |