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/common/webkit_test_helpers.h" | 5 #include "content/shell/common/webkit_test_helpers.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 prefs->force_compositing_mode = | 101 prefs->force_compositing_mode = |
102 command_line.HasSwitch(switches::kForceCompositingMode); | 102 command_line.HasSwitch(switches::kForceCompositingMode); |
103 prefs->accelerated_compositing_for_video_enabled = false; | 103 prefs->accelerated_compositing_for_video_enabled = false; |
104 prefs->mock_scrollbars_enabled = false; | 104 prefs->mock_scrollbars_enabled = false; |
105 prefs->fixed_position_creates_stacking_context = false; | 105 prefs->fixed_position_creates_stacking_context = false; |
106 prefs->smart_insert_delete_enabled = true; | 106 prefs->smart_insert_delete_enabled = true; |
107 prefs->minimum_accelerated_2d_canvas_size = 0; | 107 prefs->minimum_accelerated_2d_canvas_size = 0; |
108 #if defined(OS_ANDROID) | 108 #if defined(OS_ANDROID) |
109 prefs->text_autosizing_enabled = false; | 109 prefs->text_autosizing_enabled = false; |
110 #endif | 110 #endif |
111 prefs->viewport_enabled = false; | |
112 } | 111 } |
113 | 112 |
114 base::FilePath GetWebKitRootDirFilePath() { | 113 base::FilePath GetWebKitRootDirFilePath() { |
115 base::FilePath base_path; | 114 base::FilePath base_path; |
116 PathService::Get(base::DIR_SOURCE_ROOT, &base_path); | 115 PathService::Get(base::DIR_SOURCE_ROOT, &base_path); |
117 return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit")); | 116 return base_path.Append(FILE_PATH_LITERAL("third_party/WebKit")); |
118 } | 117 } |
119 | 118 |
120 } // namespace content | 119 } // namespace content |
OLD | NEW |