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

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

Issue 23895006: Make the Unix editing behavior the default (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
« 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 /* 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // 99) MacEditingBehavior is used a fallback. 87 // 99) MacEditingBehavior is used a fallback.
88 static EditingBehaviorType editingBehaviorTypeForPlatform() 88 static EditingBehaviorType editingBehaviorTypeForPlatform()
89 { 89 {
90 return 90 return
91 #if OS(MACOSX) 91 #if OS(MACOSX)
92 EditingMacBehavior 92 EditingMacBehavior
93 #elif OS(WINDOWS) 93 #elif OS(WINDOWS)
94 EditingWindowsBehavior 94 EditingWindowsBehavior
95 #elif OS(ANDROID) 95 #elif OS(ANDROID)
96 EditingAndroidBehavior 96 EditingAndroidBehavior
97 #elif OS(UNIX) 97 #else
98 EditingUnixBehavior 98 EditingUnixBehavior
abarth-chromium 2013/09/08 22:42:49 Why not be explicit and then have a #error in the
99 #else
100 // Fallback
101 EditingMacBehavior
102 #endif 99 #endif
103 ; 100 ;
104 } 101 }
105 102
106 static const bool defaultUnifiedTextCheckerEnabled = false; 103 static const bool defaultUnifiedTextCheckerEnabled = false;
107 #if OS(MACOSX) 104 #if OS(MACOSX)
108 static const bool defaultSmartInsertDeleteEnabled = true; 105 static const bool defaultSmartInsertDeleteEnabled = true;
109 #else 106 #else
110 static const bool defaultSmartInsertDeleteEnabled = false; 107 static const bool defaultSmartInsertDeleteEnabled = false;
111 #endif 108 #endif
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 { 383 {
387 if (m_viewportEnabled == enabled) 384 if (m_viewportEnabled == enabled)
388 return; 385 return;
389 386
390 m_viewportEnabled = enabled; 387 m_viewportEnabled = enabled;
391 if (m_page->mainFrame()) 388 if (m_page->mainFrame())
392 m_page->mainFrame()->document()->updateViewportArguments(); 389 m_page->mainFrame()->document()->updateViewportArguments();
393 } 390 }
394 391
395 } // namespace WebCore 392 } // namespace WebCore
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