Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 157 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); | 157 virtual gfx::Point AccessibilityOriginInScreen(const gfx::Rect& bounds); |
| 158 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); | 158 virtual gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget(); |
| 159 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); | 159 virtual gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible(); |
| 160 | 160 |
| 161 // Informs that the focused DOM node has changed. | 161 // Informs that the focused DOM node has changed. |
| 162 virtual void FocusedNodeChanged(bool is_editable_node) {} | 162 virtual void FocusedNodeChanged(bool is_editable_node) {} |
| 163 | 163 |
| 164 virtual void OnSwapCompositorFrame(uint32 output_surface_id, | 164 virtual void OnSwapCompositorFrame(uint32 output_surface_id, |
| 165 scoped_ptr<cc::CompositorFrame> frame) {} | 165 scoped_ptr<cc::CompositorFrame> frame) {} |
| 166 | 166 |
| 167 virtual void ClearCompositorFrame() {} | |
|
Charlie Reis
2015/09/14 20:54:55
Should this ever be left unimplemented, or should
kenrb
2015/09/14 21:29:36
RenderWidgetHostViewChildFrame and RenderWidgetHos
Charlie Reis
2015/09/14 21:40:18
One option would be to put an empty implementation
kenrb
2015/09/15 15:25:41
This makes sense. I've made the change.
| |
| 168 | |
| 167 // Because the associated remote WebKit instance can asynchronously | 169 // Because the associated remote WebKit instance can asynchronously |
| 168 // prevent-default on a dispatched touch event, the touch events are queued in | 170 // prevent-default on a dispatched touch event, the touch events are queued in |
| 169 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 171 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 170 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 172 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 171 // or ignored (when |ack_result| is CONSUMED). | 173 // or ignored (when |ack_result| is CONSUMED). |
| 172 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 174 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 173 InputEventAckState ack_result) {} | 175 InputEventAckState ack_result) {} |
| 174 | 176 |
| 175 virtual void DidOverscroll(const DidOverscrollParams& params) {} | 177 virtual void DidOverscroll(const DidOverscrollParams& params) {} |
| 176 | 178 |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 429 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 431 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
| 430 | 432 |
| 431 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 433 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 432 | 434 |
| 433 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 435 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 434 }; | 436 }; |
| 435 | 437 |
| 436 } // namespace content | 438 } // namespace content |
| 437 | 439 |
| 438 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 440 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |