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

Side by Side Diff: content/shell/common/webkit_test_helpers.cc

Issue 166033008: Support viewport in content_shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | « no previous file | no next file » | 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/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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698