OLD | NEW |
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 Loading... |
154 | 154 |
155 // The requested size of the renderer. May differ from GetViewBounds().size() | 155 // The requested size of the renderer. May differ from GetViewBounds().size() |
156 // when the view requires additional throttling. | 156 // when the view requires additional throttling. |
157 virtual gfx::Size GetRequestedRendererSize() const; | 157 virtual gfx::Size GetRequestedRendererSize() const; |
158 | 158 |
159 // The size of the view's backing surface in non-DPI-adjusted pixels. | 159 // The size of the view's backing surface in non-DPI-adjusted pixels. |
160 virtual gfx::Size GetPhysicalBackingSize() const; | 160 virtual gfx::Size GetPhysicalBackingSize() const; |
161 | 161 |
162 // Whether or not Blink's viewport size should be shrunk by the height of the | 162 // Whether or not Blink's viewport size should be shrunk by the height of the |
163 // URL-bar. | 163 // URL-bar. |
164 virtual bool DoTopControlsShrinkBlinkSize() const; | 164 virtual bool DoBrowserControlsShrinkBlinkSize() const; |
165 | 165 |
166 // The height of the URL-bar top controls. | 166 // The height of the URL-bar browser controls. |
167 virtual float GetTopControlsHeight() const; | 167 virtual float GetTopControlsHeight() const; |
168 | 168 |
169 // The height of the bottom bar. | 169 // The height of the bottom bar. |
170 virtual float GetBottomControlsHeight() const; | 170 virtual float GetBottomControlsHeight() const; |
171 | 171 |
172 // Called prior to forwarding input event messages to the renderer, giving | 172 // Called prior to forwarding input event messages to the renderer, giving |
173 // the view a chance to perform in-process event filtering or processing. | 173 // the view a chance to perform in-process event filtering or processing. |
174 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| | 174 // Return values of |NOT_CONSUMED| or |UNKNOWN| will result in |input_event| |
175 // being forwarded. | 175 // being forwarded. |
176 virtual InputEventAckState FilterInputEvent( | 176 virtual InputEventAckState FilterInputEvent( |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
501 | 501 |
502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
503 | 503 |
504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
505 }; | 505 }; |
506 | 506 |
507 } // namespace content | 507 } // namespace content |
508 | 508 |
509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |