| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |