Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change to height and ratio Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698