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