| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 { | 96 { |
| 97 return spellCheckerClient().textChecker(); | 97 return spellCheckerClient().textChecker(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 SpellChecker::SpellChecker(LocalFrame& frame) | 100 SpellChecker::SpellChecker(LocalFrame& frame) |
| 101 : m_frame(&frame) | 101 : m_frame(&frame) |
| 102 , m_spellCheckRequester(SpellCheckRequester::create(frame)) | 102 , m_spellCheckRequester(SpellCheckRequester::create(frame)) |
| 103 { | 103 { |
| 104 } | 104 } |
| 105 | 105 |
| 106 SpellChecker::~SpellChecker() |
| 107 { |
| 108 } |
| 109 |
| 106 bool SpellChecker::isContinuousSpellCheckingEnabled() const | 110 bool SpellChecker::isContinuousSpellCheckingEnabled() const |
| 107 { | 111 { |
| 108 return spellCheckerClient().isContinuousSpellCheckingEnabled(); | 112 return spellCheckerClient().isContinuousSpellCheckingEnabled(); |
| 109 } | 113 } |
| 110 | 114 |
| 111 void SpellChecker::toggleContinuousSpellChecking() | 115 void SpellChecker::toggleContinuousSpellChecking() |
| 112 { | 116 { |
| 113 spellCheckerClient().toggleContinuousSpellChecking(); | 117 spellCheckerClient().toggleContinuousSpellChecking(); |
| 114 if (isContinuousSpellCheckingEnabled()) | 118 if (isContinuousSpellCheckingEnabled()) |
| 115 return; | 119 return; |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 visitor->trace(m_frame); | 949 visitor->trace(m_frame); |
| 946 visitor->trace(m_spellCheckRequester); | 950 visitor->trace(m_spellCheckRequester); |
| 947 } | 951 } |
| 948 | 952 |
| 949 void SpellChecker::prepareForLeakDetection() | 953 void SpellChecker::prepareForLeakDetection() |
| 950 { | 954 { |
| 951 m_spellCheckRequester->prepareForLeakDetection(); | 955 m_spellCheckRequester->prepareForLeakDetection(); |
| 952 } | 956 } |
| 953 | 957 |
| 954 } // namespace blink | 958 } // namespace blink |
| OLD | NEW |