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

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

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 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // The size of the view's backing surface in non-DPI-adjusted pixels. 154 // The size of the view's backing surface in non-DPI-adjusted pixels.
155 virtual gfx::Size GetPhysicalBackingSize() const; 155 virtual gfx::Size GetPhysicalBackingSize() const;
156 156
157 // Whether or not Blink's viewport size should be shrunk by the height of the 157 // Whether or not Blink's viewport size should be shrunk by the height of the
158 // URL-bar. 158 // URL-bar.
159 virtual bool DoTopControlsShrinkBlinkSize() const; 159 virtual bool DoTopControlsShrinkBlinkSize() const;
160 160
161 // The height of the URL-bar top controls. 161 // The height of the URL-bar top controls.
162 virtual float GetTopControlsHeight() const; 162 virtual float GetTopControlsHeight() const;
163 163
164 // The height of the bottom bar.
165 virtual float GetBottomControlsHeight() const;
166
164 // Called prior to forwarding input event messages to the renderer, giving 167 // Called prior to forwarding input event messages to the renderer, giving
165 // the view a chance to perform in-process event filtering or processing. 168 // the view a chance to perform in-process event filtering or processing.
166 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| 169 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event|
167 // being forwarded. 170 // being forwarded.
168 virtual InputEventAckState FilterInputEvent( 171 virtual InputEventAckState FilterInputEvent(
169 const blink::WebInputEvent& input_event); 172 const blink::WebInputEvent& input_event);
170 173
171 // Called by the host when it requires an input flush; the flush call should 174 // Called by the host when it requires an input flush; the flush call should
172 // by synchronized with BeginFrame. 175 // by synchronized with BeginFrame.
173 virtual void OnSetNeedsFlushInput(); 176 virtual void OnSetNeedsFlushInput();
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 475 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
473 476
474 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 477 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
475 478
476 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 479 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
477 }; 480 };
478 481
479 } // namespace content 482 } // namespace content
480 483
481 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 484 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698