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

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

Issue 12317133: [content shell] don't require a user action for focus/blur events during layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // RenderViewImpls. 225 // RenderViewImpls.
226 static void InstallCreateHook( 226 static void InstallCreateHook(
227 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*)); 227 RenderViewImpl* (*create_render_view_impl)(RenderViewImplParams*));
228 228
229 // Returns the RenderViewImpl containing the given WebView. 229 // Returns the RenderViewImpl containing the given WebView.
230 static RenderViewImpl* FromWebView(WebKit::WebView* webview); 230 static RenderViewImpl* FromWebView(WebKit::WebView* webview);
231 231
232 // Returns the RenderViewImpl for the given routing ID. 232 // Returns the RenderViewImpl for the given routing ID.
233 static RenderViewImpl* FromRoutingID(int routing_id); 233 static RenderViewImpl* FromRoutingID(int routing_id);
234 234
235 // Don't require a user gesture for focus and blur events.
236 static void DoNotRequireUserGestureForFocusChangesForTesting();
237
235 // May return NULL when the view is closing. 238 // May return NULL when the view is closing.
236 WebKit::WebView* webview() const; 239 WebKit::WebView* webview() const;
237 240
238 // WebGraphicsContext3DSwapBuffersClient implementation. 241 // WebGraphicsContext3DSwapBuffersClient implementation.
239 242
240 // Called by a GraphicsContext associated with this view when swapbuffers 243 // Called by a GraphicsContext associated with this view when swapbuffers
241 // is posted, completes or is aborted. 244 // is posted, completes or is aborted.
242 virtual void OnViewContextSwapBuffersPosted() OVERRIDE; 245 virtual void OnViewContextSwapBuffersPosted() OVERRIDE;
243 virtual void OnViewContextSwapBuffersComplete() OVERRIDE; 246 virtual void OnViewContextSwapBuffersComplete() OVERRIDE;
244 virtual void OnViewContextSwapBuffersAborted() OVERRIDE; 247 virtual void OnViewContextSwapBuffersAborted() OVERRIDE;
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 // use the Observer interface to filter IPC messages and receive frame change 1610 // use the Observer interface to filter IPC messages and receive frame change
1608 // notifications. 1611 // notifications.
1609 // --------------------------------------------------------------------------- 1612 // ---------------------------------------------------------------------------
1610 1613
1611 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1614 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1612 }; 1615 };
1613 1616
1614 } // namespace content 1617 } // namespace content
1615 1618
1616 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1619 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698