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

Side by Side Diff: Source/core/page/Settings.cpp

Issue 14516007: Remove OS(IOS) and OS(MAC_OS_X) guards. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 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 | « Source/core/page/NavigatorBase.cpp ('k') | Source/core/rendering/RenderText.cpp » ('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, 2009, 2011, 2012 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserv ed.
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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 return it->value; 77 return it->value;
78 if (script != USCRIPT_COMMON) 78 if (script != USCRIPT_COMMON)
79 return getGenericFontFamilyForScript(fontMap, USCRIPT_COMMON); 79 return getGenericFontFamilyForScript(fontMap, USCRIPT_COMMON);
80 return emptyAtom; 80 return emptyAtom;
81 } 81 }
82 82
83 bool Settings::gMockScrollbarsEnabled = false; 83 bool Settings::gMockScrollbarsEnabled = false;
84 bool Settings::gUsesOverlayScrollbars = false; 84 bool Settings::gUsesOverlayScrollbars = false;
85 85
86 // NOTEs 86 // NOTEs
87 // 1) EditingMacBehavior comprises Tiger, Leopard, SnowLeopard and iOS builds, as well QtWebKit and Chromium when built on Mac; 87 // 1) EditingMacBehavior comprises builds on Mac;
88 // 2) EditingWindowsBehavior comprises Win32 and WinCE builds, as well as QtWeb Kit and Chromium when built on Windows; 88 // 2) EditingWindowsBehavior comprises builds on Windows;
89 // 3) EditingUnixBehavior comprises all unix-based systems, but Darwin/MacOS/An droid (and then abusing the terminology); 89 // 3) EditingUnixBehavior comprises all unix-based systems, but Darwin/MacOS/An droid (and then abusing the terminology);
90 // 4) EditingAndroidBehavior comprises Android builds. 90 // 4) EditingAndroidBehavior comprises Android builds.
91 // 99) MacEditingBehavior is used a fallback. 91 // 99) MacEditingBehavior is used a fallback.
92 static EditingBehaviorType editingBehaviorTypeForPlatform() 92 static EditingBehaviorType editingBehaviorTypeForPlatform()
93 { 93 {
94 return 94 return
95 #if OS(DARWIN) 95 #if OS(DARWIN)
96 EditingMacBehavior 96 EditingMacBehavior
97 #elif OS(WINDOWS) 97 #elif OS(WINDOWS)
98 EditingWindowsBehavior 98 EditingWindowsBehavior
99 #elif OS(ANDROID) 99 #elif OS(ANDROID)
100 EditingAndroidBehavior 100 EditingAndroidBehavior
101 #elif OS(UNIX) 101 #elif OS(UNIX)
102 EditingUnixBehavior 102 EditingUnixBehavior
103 #else 103 #else
104 // Fallback 104 // Fallback
105 EditingMacBehavior 105 EditingMacBehavior
106 #endif 106 #endif
107 ; 107 ;
108 } 108 }
109 109
110 #if USE(UNIFIED_TEXT_CHECKING) 110 #if USE(UNIFIED_TEXT_CHECKING)
111 static const bool defaultUnifiedTextCheckerEnabled = true; 111 static const bool defaultUnifiedTextCheckerEnabled = true;
112 #else 112 #else
113 static const bool defaultUnifiedTextCheckerEnabled = false; 113 static const bool defaultUnifiedTextCheckerEnabled = false;
114 #endif 114 #endif
115 #if OS(MAC_OS_X) 115 #if OS(DARWIN)
116 static const bool defaultSmartInsertDeleteEnabled = true; 116 static const bool defaultSmartInsertDeleteEnabled = true;
117 #else 117 #else
118 static const bool defaultSmartInsertDeleteEnabled = false; 118 static const bool defaultSmartInsertDeleteEnabled = false;
119 #endif 119 #endif
120 #if OS(WINDOWS) 120 #if OS(WINDOWS)
121 static const bool defaultSelectTrailingWhitespaceEnabled = true; 121 static const bool defaultSelectTrailingWhitespaceEnabled = true;
122 #else 122 #else
123 static const bool defaultSelectTrailingWhitespaceEnabled = false; 123 static const bool defaultSelectTrailingWhitespaceEnabled = false;
124 #endif 124 #endif
125 125
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 { 379 {
380 gUsesOverlayScrollbars = flag; 380 gUsesOverlayScrollbars = flag;
381 } 381 }
382 382
383 bool Settings::usesOverlayScrollbars() 383 bool Settings::usesOverlayScrollbars()
384 { 384 {
385 return gUsesOverlayScrollbars; 385 return gUsesOverlayScrollbars;
386 } 386 }
387 387
388 } // namespace WebCore 388 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/NavigatorBase.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698