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

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

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ScrollViewportRounding test Created 6 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 | Annotate | Revision Log
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 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 size_t offset, 112 size_t offset,
113 const gfx::Range& range); 113 const gfx::Range& range);
114 114
115 // The requested size of the renderer. May differ from GetViewBounds().size() 115 // The requested size of the renderer. May differ from GetViewBounds().size()
116 // when the view requires additional throttling. 116 // when the view requires additional throttling.
117 virtual gfx::Size GetRequestedRendererSize() const; 117 virtual gfx::Size GetRequestedRendererSize() const;
118 118
119 // The size of the view's backing surface in non-DPI-adjusted pixels. 119 // The size of the view's backing surface in non-DPI-adjusted pixels.
120 virtual gfx::Size GetPhysicalBackingSize() const; 120 virtual gfx::Size GetPhysicalBackingSize() const;
121 121
122 // The height of the physical backing surface that is overdrawn opaquely in 122 // The amount that the viewport size given to Blink is shrunk by the URL-bar.
123 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). 123 virtual float GetTopControlsLayoutHeight() const;
124 virtual float GetOverdrawBottomHeight() const;
125 124
126 // Called prior to forwarding input event messages to the renderer, giving 125 // Called prior to forwarding input event messages to the renderer, giving
127 // the view a chance to perform in-process event filtering or processing. 126 // the view a chance to perform in-process event filtering or processing.
128 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| 127 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event|
129 // being forwarded. 128 // being forwarded.
130 virtual InputEventAckState FilterInputEvent( 129 virtual InputEventAckState FilterInputEvent(
131 const blink::WebInputEvent& input_event); 130 const blink::WebInputEvent& input_event);
132 131
133 // Called by the host when it requires an input flush; the flush call should 132 // Called by the host when it requires an input flush; the flush call should
134 // by synchronized with BeginFrame. 133 // by synchronized with BeginFrame.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 uint32 renderer_frame_number_; 423 uint32 renderer_frame_number_;
425 424
426 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 425 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
427 426
428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
429 }; 428 };
430 429
431 } // namespace content 430 } // namespace content
432 431
433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 432 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698