| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "content/browser/accessibility/browser_accessibility_manager.h" | 9 #include "content/browser/accessibility/browser_accessibility_manager.h" |
| 10 #include "content/browser/gpu/gpu_data_manager_impl.h" | 10 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { | 97 bool RenderWidgetHostViewBase::DoTopControlsShrinkBlinkSize() const { |
| 98 return false; | 98 return false; |
| 99 } | 99 } |
| 100 | 100 |
| 101 float RenderWidgetHostViewBase::GetTopControlsHeight() const { | 101 float RenderWidgetHostViewBase::GetTopControlsHeight() const { |
| 102 return 0.f; | 102 return 0.f; |
| 103 } | 103 } |
| 104 | 104 |
| 105 void RenderWidgetHostViewBase::SelectionBoundsChanged( |
| 106 const ViewHostMsg_SelectionBounds_Params& params) { |
| 107 if (GetTextInputManager()) |
| 108 GetTextInputManager()->SelectionBoundsChanged(this, params); |
| 109 } |
| 110 |
| 105 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 111 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
| 106 size_t offset, | 112 size_t offset, |
| 107 const gfx::Range& range) { | 113 const gfx::Range& range) { |
| 108 selection_text_ = text; | 114 selection_text_ = text; |
| 109 selection_text_offset_ = offset; | 115 selection_text_offset_ = offset; |
| 110 selection_range_.set_start(range.start()); | 116 selection_range_.set_start(range.start()); |
| 111 selection_range_.set_end(range.end()); | 117 selection_range_.set_end(range.end()); |
| 112 } | 118 } |
| 113 | 119 |
| 114 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { | 120 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 454 |
| 449 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 455 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 450 return false; | 456 return false; |
| 451 } | 457 } |
| 452 | 458 |
| 453 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 459 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 454 return cc::SurfaceId(); | 460 return cc::SurfaceId(); |
| 455 } | 461 } |
| 456 | 462 |
| 457 } // namespace content | 463 } // namespace content |
| OLD | NEW |