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

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: findbug Created 4 years, 4 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 float RenderWidgetHostViewBase::GetTopControlsHeight() const { 104 float RenderWidgetHostViewBase::GetTopControlsHeight() const {
105 return 0.f; 105 return 0.f;
106 } 106 }
107 107
108 void RenderWidgetHostViewBase::SelectionBoundsChanged( 108 void RenderWidgetHostViewBase::SelectionBoundsChanged(
109 const ViewHostMsg_SelectionBounds_Params& params) { 109 const ViewHostMsg_SelectionBounds_Params& params) {
110 if (GetTextInputManager()) 110 if (GetTextInputManager())
111 GetTextInputManager()->SelectionBoundsChanged(this, params); 111 GetTextInputManager()->SelectionBoundsChanged(this, params);
112 } 112 }
113 113
114 float RenderWidgetHostViewBase::GetBottomControlsHeight() const {
115 return 0.f;
116 }
117
114 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text, 118 void RenderWidgetHostViewBase::SelectionChanged(const base::string16& text,
115 size_t offset, 119 size_t offset,
116 const gfx::Range& range) { 120 const gfx::Range& range) {
117 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms. 121 // TODO(ekaramad): Use TextInputManager code paths for IME on other platforms.
118 // Also, remove the following local variables when that happens 122 // Also, remove the following local variables when that happens
119 // (https://crbug.com/578168 and https://crbug.com/602427). 123 // (https://crbug.com/578168 and https://crbug.com/602427).
120 #if defined(USE_AURA) 124 #if defined(USE_AURA)
121 if (GetTextInputManager()) 125 if (GetTextInputManager())
122 GetTextInputManager()->SelectionChanged(this, text, offset, range); 126 GetTextInputManager()->SelectionChanged(this, text, offset, range);
123 #else 127 #else
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
493 497
494 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const { 498 bool RenderWidgetHostViewBase::IsChildFrameForTesting() const {
495 return false; 499 return false;
496 } 500 }
497 501
498 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const { 502 cc::SurfaceId RenderWidgetHostViewBase::SurfaceIdForTesting() const {
499 return cc::SurfaceId(); 503 return cc::SurfaceId();
500 } 504 }
501 505
502 } // namespace content 506 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/common/resize_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698