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

Side by Side Diff: content/shell/shell_render_process_observer.cc

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: updates 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
« no previous file with comments | « content/shell/shell.cc ('k') | content/test/layouttest_support.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 #include "content/shell/shell_render_process_observer.h" 5 #include "content/shell/shell_render_process_observer.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/renderer/render_view.h" 8 #include "content/public/renderer/render_view.h"
9 #include "content/public/renderer/render_thread.h" 9 #include "content/public/renderer/render_thread.h"
10 #include "content/public/test/layouttest_support.h" 10 #include "content/public/test/layouttest_support.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) 45 if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
46 return; 46 return;
47 WebRuntimeFeatures::enableInputTypeDateTime(true); 47 WebRuntimeFeatures::enableInputTypeDateTime(true);
48 WebRuntimeFeatures::enableInputTypeDateTimeLocal(true); 48 WebRuntimeFeatures::enableInputTypeDateTimeLocal(true);
49 WebRuntimeFeatures::enableInputTypeMonth(true); 49 WebRuntimeFeatures::enableInputTypeMonth(true);
50 WebRuntimeFeatures::enableInputTypeTime(true); 50 WebRuntimeFeatures::enableInputTypeTime(true);
51 WebRuntimeFeatures::enableInputTypeWeek(true); 51 WebRuntimeFeatures::enableInputTypeWeek(true);
52 WebRuntimeFeatures::enableCanvasPath(true); 52 WebRuntimeFeatures::enableCanvasPath(true);
53 DisableAppCacheLogging(); 53 DisableAppCacheLogging();
54 EnableDevToolsFrontendTesting(); 54 EnableDevToolsFrontendTesting();
55 DoNotRequireUserGestureForFocusChanges();
55 } 56 }
56 57
57 ShellRenderProcessObserver::~ShellRenderProcessObserver() { 58 ShellRenderProcessObserver::~ShellRenderProcessObserver() {
58 CHECK(g_instance == this); 59 CHECK(g_instance == this);
59 g_instance = NULL; 60 g_instance = NULL;
60 } 61 }
61 62
62 void ShellRenderProcessObserver::SetTestDelegate(WebTestDelegate* delegate) { 63 void ShellRenderProcessObserver::SetTestDelegate(WebTestDelegate* delegate) {
63 test_interfaces_->setDelegate(delegate); 64 test_interfaces_->setDelegate(delegate);
64 test_delegate_ = delegate; 65 test_delegate_ = delegate;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 main_render_view_->GetWebView()->mainFrame()); 109 main_render_view_->GetWebView()->mainFrame());
109 } 110 }
110 } 111 }
111 112
112 void ShellRenderProcessObserver::OnSetWebKitSourceDir( 113 void ShellRenderProcessObserver::OnSetWebKitSourceDir(
113 const base::FilePath& webkit_source_dir) { 114 const base::FilePath& webkit_source_dir) {
114 webkit_source_dir_ = webkit_source_dir; 115 webkit_source_dir_ = webkit_source_dir;
115 } 116 }
116 117
117 } // namespace content 118 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698