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

Side by Side Diff: webkit/pending/Settings.cpp

Issue 2915: Add a new switch: --allow-scripts-to-close-windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 | « webkit/pending/Settings.h ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 , m_isDOMPasteAllowed(false) 65 , m_isDOMPasteAllowed(false)
66 , m_shrinksStandaloneImagesToFit(true) 66 , m_shrinksStandaloneImagesToFit(true)
67 , m_usesPageCache(false) 67 , m_usesPageCache(false)
68 , m_showsURLsInToolTips(false) 68 , m_showsURLsInToolTips(false)
69 , m_forceFTPDirectoryListings(false) 69 , m_forceFTPDirectoryListings(false)
70 , m_developerExtrasEnabled(false) 70 , m_developerExtrasEnabled(false)
71 , m_authorAndUserStylesEnabled(true) 71 , m_authorAndUserStylesEnabled(true)
72 , m_needsSiteSpecificQuirks(false) 72 , m_needsSiteSpecificQuirks(false)
73 , m_fontRenderingMode(0) 73 , m_fontRenderingMode(0)
74 , m_usesEncodingDetector(false) 74 , m_usesEncodingDetector(false)
75 , m_allow_scripts_to_close_windows(false)
75 { 76 {
76 // A Frame may not have been created yet, so we initialize the AtomicString 77 // A Frame may not have been created yet, so we initialize the AtomicString
77 // hash before trying to use it. 78 // hash before trying to use it.
78 AtomicString::init(); 79 AtomicString::init();
79 } 80 }
80 81
81 void Settings::setStandardFontFamily(const AtomicString& standardFontFamily) 82 void Settings::setStandardFontFamily(const AtomicString& standardFontFamily)
82 { 83 {
83 if (standardFontFamily == m_standardFontFamily) 84 if (standardFontFamily == m_standardFontFamily)
84 return; 85 return;
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 void Settings::setNeedsSiteSpecificQuirks(bool needsQuirks) 323 void Settings::setNeedsSiteSpecificQuirks(bool needsQuirks)
323 { 324 {
324 m_needsSiteSpecificQuirks = needsQuirks; 325 m_needsSiteSpecificQuirks = needsQuirks;
325 } 326 }
326 327
327 void Settings::setUsesUniversalDetector(bool usesEncodingDetector) 328 void Settings::setUsesUniversalDetector(bool usesEncodingDetector)
328 { 329 {
329 m_usesEncodingDetector = usesEncodingDetector; 330 m_usesEncodingDetector = usesEncodingDetector;
330 } 331 }
331 332
333 void Settings::setAllowScriptsToCloseWindows(bool allow_scripts_to_close_windows )
334 {
335 m_allow_scripts_to_close_windows = allow_scripts_to_close_windows;
336 }
337
332 } // namespace WebCore 338 } // namespace WebCore
OLDNEW
« no previous file with comments | « webkit/pending/Settings.h ('k') | webkit/tools/test_shell/test_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698