| 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 float RenderWidgetHostViewBase::GetBottomControlsHeight() const { |
| 106 return 0.f; |
| 107 } |
| 108 |
| 105 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, | 109 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, |
| 106 size_t offset, | 110 size_t offset, |
| 107 const gfx::Range& range) { | 111 const gfx::Range& range) { |
| 108 selection_text_ = text; | 112 selection_text_ = text; |
| 109 selection_text_offset_ = offset; | 113 selection_text_offset_ = offset; |
| 110 selection_range_.set_start(range.start()); | 114 selection_range_.set_start(range.start()); |
| 111 selection_range_.set_end(range.end()); | 115 selection_range_.set_end(range.end()); |
| 112 } | 116 } |
| 113 | 117 |
| 114 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { | 118 gfx::Size RenderWidgetHostViewBase::GetRequestedRendererSize() const { |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 | 445 |
| 442 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { | 446 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { |
| 443 return false; | 447 return false; |
| 444 } | 448 } |
| 445 | 449 |
| 446 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { | 450 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { |
| 447 return cc::SurfaceId(); | 451 return cc::SurfaceId(); |
| 448 } | 452 } |
| 449 | 453 |
| 450 } // namespace content | 454 } // namespace content |
| OLD | NEW |