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

Side by Side Diff: content/public/common/web_preferences.cc

Issue 819293002: Set whether context menu appears on mouse up from WebPreferences (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix order to be like WebPreferences Created 5 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
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/public/common/web_preferences.h" 5 #include "content/public/common/web_preferences.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "third_party/WebKit/public/web/WebSettings.h" 10 #include "third_party/WebKit/public/web/WebSettings.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 WebSettings::HoverTypeOnDemand); 79 WebSettings::HoverTypeOnDemand);
80 STATIC_ASSERT_MATCHING_ENUMS(ui::HOVER_TYPE_HOVER, 80 STATIC_ASSERT_MATCHING_ENUMS(ui::HOVER_TYPE_HOVER,
81 WebSettings::HoverTypeHover); 81 WebSettings::HoverTypeHover);
82 82
83 WebPreferences::WebPreferences() 83 WebPreferences::WebPreferences()
84 : default_font_size(16), 84 : default_font_size(16),
85 default_fixed_font_size(13), 85 default_fixed_font_size(13),
86 minimum_font_size(0), 86 minimum_font_size(0),
87 minimum_logical_font_size(6), 87 minimum_logical_font_size(6),
88 default_encoding("ISO-8859-1"), 88 default_encoding("ISO-8859-1"),
89 #if defined(OS_WIN)
90 context_menu_on_mouse_up(true),
91 #else
92 context_menu_on_mouse_up(false),
93 #endif
89 javascript_enabled(true), 94 javascript_enabled(true),
90 web_security_enabled(true), 95 web_security_enabled(true),
91 javascript_can_open_windows_automatically(true), 96 javascript_can_open_windows_automatically(true),
92 loads_images_automatically(true), 97 loads_images_automatically(true),
93 images_enabled(true), 98 images_enabled(true),
94 plugins_enabled(true), 99 plugins_enabled(true),
95 dom_paste_enabled(false), // enables execCommand("paste") 100 dom_paste_enabled(false), // enables execCommand("paste")
96 shrinks_standalone_images_to_fit(true), 101 shrinks_standalone_images_to_fit(true),
97 uses_universal_detector(false), // Disabled: page cycler regression 102 uses_universal_detector(false), // Disabled: page cycler regression
98 text_areas_are_resizable(true), 103 text_areas_are_resizable(true),
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script"); 232 cursive_font_family_map[kCommonScript] = base::ASCIIToUTF16("Script");
228 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact"); 233 fantasy_font_family_map[kCommonScript] = base::ASCIIToUTF16("Impact");
229 pictograph_font_family_map[kCommonScript] = 234 pictograph_font_family_map[kCommonScript] =
230 base::ASCIIToUTF16("Times New Roman"); 235 base::ASCIIToUTF16("Times New Roman");
231 } 236 }
232 237
233 WebPreferences::~WebPreferences() { 238 WebPreferences::~WebPreferences() {
234 } 239 }
235 240
236 } // namespace content 241 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/web_preferences.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698