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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 105 void RenderWidgetHostViewBase::SelectionBoundsChanged( |
106 const ViewHostMsg_SelectionBounds_Params& params) { | 106 const ViewHostMsg_SelectionBounds_Params& params) { |
107 if (GetTextInputManager()) | 107 if (GetTextInputManager()) |
108 GetTextInputManager()->SelectionBoundsChanged(this, params); | 108 GetTextInputManager()->SelectionBoundsChanged(this, params); |
109 } | 109 } |
110 | 110 |
| 111 float RenderWidgetHostViewBase::GetBottomControlsHeight() const { |
| 112 return 0.f; |
| 113 } |
| 114 |
111 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 115 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
112 size_t offset, | 116 size_t offset, |
113 const gfx::Range& range) { | 117 const gfx::Range& range) { |
114 selection_text_ = text; | 118 selection_text_ = text; |
115 selection_text_offset_ = offset; | 119 selection_text_offset_ = offset; |
116 selection_range_.set_start(range.start()); | 120 selection_range_.set_start(range.start()); |
117 selection_range_.set_end(range.end()); | 121 selection_range_.set_end(range.end()); |
118 } | 122 } |
119 | 123 |
120 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { | 124 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 | 458 |
455 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 459 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
456 return false; | 460 return false; |
457 } | 461 } |
458 | 462 |
459 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 463 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
460 return cc::SurfaceId(); | 464 return cc::SurfaceId(); |
461 } | 465 } |
462 | 466 |
463 } // namespace content | 467 } // namespace content |
OLD | NEW |