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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 AccessibilityMode accessibility_mode); | 218 AccessibilityMode accessibility_mode); |
219 | 219 |
220 // Used by content_layouttest_support to hook into the creation of | 220 // Used by content_layouttest_support to hook into the creation of |
221 // RenderViewImpls. | 221 // RenderViewImpls. |
222 static void InstallCreateHook( | 222 static void InstallCreateHook( |
223 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); | 223 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); |
224 | 224 |
225 // Returns the RenderViewImpl containing the given WebView. | 225 // Returns the RenderViewImpl containing the given WebView. |
226 static RenderViewImpl* FromWebView(WebKit::WebView* webview); | 226 static RenderViewImpl* FromWebView(WebKit::WebView* webview); |
227 | 227 |
| 228 // Returns the RenderViewImpl for the given routing ID. |
| 229 static RenderViewImpl* FromRoutingID(int routing_id); |
| 230 |
228 // May return NULL when the view is closing. | 231 // May return NULL when the view is closing. |
229 WebKit::WebView* webview() const; | 232 WebKit::WebView* webview() const; |
230 | 233 |
231 // WebGraphicsContext3DSwapBuffersClient implementation. | 234 // WebGraphicsContext3DSwapBuffersClient implementation. |
232 | 235 |
233 // Called by a GraphicsContext associated with this view when swapbuffers | 236 // Called by a GraphicsContext associated with this view when swapbuffers |
234 // is posted, completes or is aborted. | 237 // is posted, completes or is aborted. |
235 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; | 238 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; |
236 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; | 239 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; |
237 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; | 240 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; |
(...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 // use the Observer interface to filter IPC messages and receive frame change | 1553 // use the Observer interface to filter IPC messages and receive frame change |
1551 // notifications. | 1554 // notifications. |
1552 // --------------------------------------------------------------------------- | 1555 // --------------------------------------------------------------------------- |
1553 | 1556 |
1554 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1557 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1555 }; | 1558 }; |
1556 | 1559 |
1557 } // namespace content | 1560 } // namespace content |
1558 | 1561 |
1559 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1562 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |