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 #if defined(OS_MACOSX) | 8 #if defined(OS_MACOSX) |
9 #include <OpenGL/OpenGL.h> | 9 #include <OpenGL/OpenGL.h> |
10 #endif | 10 #endif |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 172 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
173 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 173 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
174 // or ignored (when |ack_result| is CONSUMED). | 174 // or ignored (when |ack_result| is CONSUMED). |
175 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 175 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
176 InputEventAckState ack_result) {} | 176 InputEventAckState ack_result) {} |
177 | 177 |
178 virtual void DidOverscroll(const DidOverscrollParams& params) {} | 178 virtual void DidOverscroll(const DidOverscrollParams& params) {} |
179 | 179 |
180 virtual void DidStopFlinging() {} | 180 virtual void DidStopFlinging() {} |
181 | 181 |
182 // Returns the compositing surface ID namespace, or 0 if Surfaces are not | |
183 // enabled. | |
184 virtual uint32_t GetSurfaceIdNamespace(); | |
185 | |
186 //---------------------------------------------------------------------------- | 182 //---------------------------------------------------------------------------- |
187 // The following static methods are implemented by each platform. | 183 // The following static methods are implemented by each platform. |
188 | 184 |
189 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); | 185 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); |
190 | 186 |
191 //---------------------------------------------------------------------------- | 187 //---------------------------------------------------------------------------- |
192 // The following pure virtual methods are implemented by derived classes. | 188 // The following pure virtual methods are implemented by derived classes. |
193 | 189 |
194 // Perform all the initialization steps necessary for this object to represent | 190 // Perform all the initialization steps necessary for this object to represent |
195 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 191 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; | 420 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; |
425 | 421 |
426 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 422 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
427 | 423 |
428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
429 }; | 425 }; |
430 | 426 |
431 } // namespace content | 427 } // namespace content |
432 | 428 |
433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |