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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 11316160: app.window: Replace linear view search with direct lookup. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: render_view_impl: Changed the FromRoutingID function into static method RenderViewImpl::FromRouting… Created 8 years 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
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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
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
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_
OLDNEW
« no previous file with comments | « content/public/renderer/render_view.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698