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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 216 virtual void ClearCompositorFrame() = 0; | 216 virtual void ClearCompositorFrame() = 0; |
| 217 | 217 |
| 218 // Because the associated remote WebKit instance can asynchronously | 218 // Because the associated remote WebKit instance can asynchronously |
| 219 // prevent-default on a dispatched touch event, the touch events are queued in | 219 // prevent-default on a dispatched touch event, the touch events are queued in |
| 220 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 220 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
| 221 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 221 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
| 222 // or ignored (when |ack_result| is CONSUMED). | 222 // or ignored (when |ack_result| is CONSUMED). |
| 223 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 223 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
| 224 InputEventAckState ack_result) {} | 224 InputEventAckState ack_result) {} |
| 225 | 225 |
| 226 void SetShowingOverscrollGlow(bool showing_glow) override; | |
|
bshe
2016/11/25 14:55:00
nit: Move this to
// RenderWidgetHostView implemen
asimjour1
2016/12/01 20:17:45
Done.
| |
| 227 | |
| 226 virtual void DidOverscroll(const ui::DidOverscrollParams& params) {} | 228 virtual void DidOverscroll(const ui::DidOverscrollParams& params) {} |
| 227 | 229 |
| 228 virtual void DidStopFlinging() {} | 230 virtual void DidStopFlinging() {} |
| 229 | 231 |
| 230 // Returns the compositing surface ID namespace, or 0 if Surfaces are not | 232 // Returns the compositing surface ID namespace, or 0 if Surfaces are not |
| 231 // enabled. | 233 // enabled. |
| 232 virtual cc::FrameSinkId GetFrameSinkId(); | 234 virtual cc::FrameSinkId GetFrameSinkId(); |
| 233 | 235 |
| 234 // When there are multiple RenderWidgetHostViews for a single page, input | 236 // When there are multiple RenderWidgetHostViews for a single page, input |
| 235 // events need to be targeted to the correct one for handling. The following | 237 // events need to be targeted to the correct one for handling. The following |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 500 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 502 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
| 501 | 503 |
| 502 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 504 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
| 503 | 505 |
| 504 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 506 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
| 505 }; | 507 }; |
| 506 | 508 |
| 507 } // namespace content | 509 } // namespace content |
| 508 | 510 |
| 509 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 511 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
| OLD | NEW |