Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 1129883003: Pass Surface ID namespace to renderer compositors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Mac bug. Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
182 //---------------------------------------------------------------------------- 186 //----------------------------------------------------------------------------
183 // The following static methods are implemented by each platform. 187 // The following static methods are implemented by each platform.
184 188
185 static void GetDefaultScreenInfo(blink::WebScreenInfo* results); 189 static void GetDefaultScreenInfo(blink::WebScreenInfo* results);
186 190
187 //---------------------------------------------------------------------------- 191 //----------------------------------------------------------------------------
188 // The following pure virtual methods are implemented by derived classes. 192 // The following pure virtual methods are implemented by derived classes.
189 193
190 // Perform all the initialization steps necessary for this object to represent 194 // Perform all the initialization steps necessary for this object to represent
191 // a popup (such as a <select> dropdown), then shows the popup at |pos|. 195 // 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
420 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_; 424 base::OneShotTimer<RenderWidgetHostViewBase> flush_input_timer_;
421 425
422 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 426 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
423 427
424 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 428 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
425 }; 429 };
426 430
427 } // namespace content 431 } // namespace content
428 432
429 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698