| OLD | NEW |
| 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 |
| 3 * reserved. |
| 3 * | 4 * |
| 4 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 6 * are met: | 7 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 11 * notice, this list of conditions and the following disclaimer in the |
| 11 * documentation and/or other materials provided with the distribution. | 12 * documentation and/or other materials provided with the distribution. |
| 12 * | 13 * |
| (...skipping 15 matching lines...) Expand all Loading... |
| 28 #include "platform/RuntimeEnabledFeatures.h" | 29 #include "platform/RuntimeEnabledFeatures.h" |
| 29 #include "platform/scroll/ScrollbarTheme.h" | 30 #include "platform/scroll/ScrollbarTheme.h" |
| 30 #include "wtf/PtrUtil.h" | 31 #include "wtf/PtrUtil.h" |
| 31 #include <memory> | 32 #include <memory> |
| 32 | 33 |
| 33 namespace blink { | 34 namespace blink { |
| 34 | 35 |
| 35 // NOTEs | 36 // NOTEs |
| 36 // 1) EditingMacBehavior comprises builds on Mac; | 37 // 1) EditingMacBehavior comprises builds on Mac; |
| 37 // 2) EditingWindowsBehavior comprises builds on Windows; | 38 // 2) EditingWindowsBehavior comprises builds on Windows; |
| 38 // 3) EditingUnixBehavior comprises all unix-based systems, but Darwin/MacOS/An
droid (and then abusing the terminology); | 39 // 3) EditingUnixBehavior comprises all unix-based systems, but |
| 40 // Darwin/MacOS/Android (and then abusing the terminology); |
| 39 // 4) EditingAndroidBehavior comprises Android builds. | 41 // 4) EditingAndroidBehavior comprises Android builds. |
| 40 // 99) MacEditingBehavior is used a fallback. | 42 // 99) MacEditingBehavior is used a fallback. |
| 41 static EditingBehaviorType editingBehaviorTypeForPlatform() { | 43 static EditingBehaviorType editingBehaviorTypeForPlatform() { |
| 42 return | 44 return |
| 43 #if OS(MACOSX) | 45 #if OS(MACOSX) |
| 44 EditingMacBehavior | 46 EditingMacBehavior |
| 45 #elif OS(WIN) | 47 #elif OS(WIN) |
| 46 EditingWindowsBehavior | 48 EditingWindowsBehavior |
| 47 #elif OS(ANDROID) | 49 #elif OS(ANDROID) |
| 48 EditingAndroidBehavior | 50 EditingAndroidBehavior |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 105 |
| 104 void Settings::setMockScrollbarsEnabled(bool flag) { | 106 void Settings::setMockScrollbarsEnabled(bool flag) { |
| 105 ScrollbarTheme::setMockScrollbarsEnabled(flag); | 107 ScrollbarTheme::setMockScrollbarsEnabled(flag); |
| 106 } | 108 } |
| 107 | 109 |
| 108 bool Settings::mockScrollbarsEnabled() { | 110 bool Settings::mockScrollbarsEnabled() { |
| 109 return ScrollbarTheme::mockScrollbarsEnabled(); | 111 return ScrollbarTheme::mockScrollbarsEnabled(); |
| 110 } | 112 } |
| 111 | 113 |
| 112 } // namespace blink | 114 } // namespace blink |
| OLD | NEW |