| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #if DEBUG_TEXT_AUTOSIZING_ON_DESKTOP | 64 #if DEBUG_TEXT_AUTOSIZING_ON_DESKTOP |
| 65 : m_textAutosizingWindowSizeOverride(320, 480), | 65 : m_textAutosizingWindowSizeOverride(320, 480), |
| 66 m_textAutosizingEnabled(true) | 66 m_textAutosizingEnabled(true) |
| 67 #else | 67 #else |
| 68 : m_textAutosizingEnabled(false) | 68 : m_textAutosizingEnabled(false) |
| 69 #endif | 69 #endif |
| 70 SETTINGS_INITIALIZER_LIST { | 70 SETTINGS_INITIALIZER_LIST { |
| 71 } | 71 } |
| 72 | 72 |
| 73 std::unique_ptr<Settings> Settings::create() { | 73 std::unique_ptr<Settings> Settings::create() { |
| 74 return wrapUnique(new Settings); | 74 return WTF::wrapUnique(new Settings); |
| 75 } | 75 } |
| 76 | 76 |
| 77 SETTINGS_SETTER_BODIES | 77 SETTINGS_SETTER_BODIES |
| 78 | 78 |
| 79 void Settings::setDelegate(SettingsDelegate* delegate) { | 79 void Settings::setDelegate(SettingsDelegate* delegate) { |
| 80 m_delegate = delegate; | 80 m_delegate = delegate; |
| 81 } | 81 } |
| 82 | 82 |
| 83 void Settings::invalidate(SettingsDelegate::ChangeType changeType) { | 83 void Settings::invalidate(SettingsDelegate::ChangeType changeType) { |
| 84 if (m_delegate) | 84 if (m_delegate) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 105 | 105 |
| 106 void Settings::setMockScrollbarsEnabled(bool flag) { | 106 void Settings::setMockScrollbarsEnabled(bool flag) { |
| 107 ScrollbarTheme::setMockScrollbarsEnabled(flag); | 107 ScrollbarTheme::setMockScrollbarsEnabled(flag); |
| 108 } | 108 } |
| 109 | 109 |
| 110 bool Settings::mockScrollbarsEnabled() { | 110 bool Settings::mockScrollbarsEnabled() { |
| 111 return ScrollbarTheme::mockScrollbarsEnabled(); | 111 return ScrollbarTheme::mockScrollbarsEnabled(); |
| 112 } | 112 } |
| 113 | 113 |
| 114 } // namespace blink | 114 } // namespace blink |
| OLD | NEW |