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

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

Issue 714003002: Allow changing top controls height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 6 years 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 #if defined(OS_MACOSX) 8 #if defined(OS_MACOSX)
9 #include <OpenGL/OpenGL.h> 9 #include <OpenGL/OpenGL.h>
10 #endif 10 #endif
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 size_t offset, 113 size_t offset,
114 const gfx::Range& range); 114 const gfx::Range& range);
115 115
116 // The requested size of the renderer. May differ from GetViewBounds().size() 116 // The requested size of the renderer. May differ from GetViewBounds().size()
117 // when the view requires additional throttling. 117 // when the view requires additional throttling.
118 virtual gfx::Size GetRequestedRendererSize() const; 118 virtual gfx::Size GetRequestedRendererSize() const;
119 119
120 // The size of the view's backing surface in non-DPI-adjusted pixels. 120 // The size of the view's backing surface in non-DPI-adjusted pixels.
121 virtual gfx::Size GetPhysicalBackingSize() const; 121 virtual gfx::Size GetPhysicalBackingSize() const;
122 122
123 // The amount that the viewport size given to Blink is shrunk by the URL-bar. 123 // Whether or not Blink's viewport size should be shrunk by the height of the
124 virtual float GetTopControlsLayoutHeight() const; 124 // URL-bar.
125 virtual bool DoTopControlsShrinkBlinkSize() const;
126
127 // The height of the URL-bar top controls.
128 virtual float GetTopControlsHeight() const;
125 129
126 // Called prior to forwarding input event messages to the renderer, giving 130 // Called prior to forwarding input event messages to the renderer, giving
127 // the view a chance to perform in-process event filtering or processing. 131 // 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| 132 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event|
129 // being forwarded. 133 // being forwarded.
130 virtual InputEventAckState FilterInputEvent( 134 virtual InputEventAckState FilterInputEvent(
131 const blink::WebInputEvent& input_event); 135 const blink::WebInputEvent& input_event);
132 136
133 // Called by the host when it requires an input flush; the flush call should 137 // Called by the host when it requires an input flush; the flush call should
134 // by synchronized with BeginFrame. 138 // by synchronized with BeginFrame.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 423 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
420 424
421 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 425 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
422 426
423 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 427 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
424 }; 428 };
425 429
426 } // namespace content 430 } // namespace content
427 431
428 #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