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 | |
110 bool SpellChecker::isContinuousSpellCheckingEnabled() const | 106 bool SpellChecker::isContinuousSpellCheckingEnabled() const |
111 { | 107 { |
112 return spellCheckerClient().isContinuousSpellCheckingEnabled(); | 108 return spellCheckerClient().isContinuousSpellCheckingEnabled(); |
113 } | 109 } |
114 | 110 |
115 void SpellChecker::toggleContinuousSpellChecking() | 111 void SpellChecker::toggleContinuousSpellChecking() |
116 { | 112 { |
117 spellCheckerClient().toggleContinuousSpellChecking(); | 113 spellCheckerClient().toggleContinuousSpellChecking(); |
118 if (isContinuousSpellCheckingEnabled()) | 114 if (isContinuousSpellCheckingEnabled()) |
119 return; | 115 return; |
(...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 visitor->trace(m_frame); | 945 visitor->trace(m_frame); |
950 visitor->trace(m_spellCheckRequester); | 946 visitor->trace(m_spellCheckRequester); |
951 } | 947 } |
952 | 948 |
953 void SpellChecker::prepareForLeakDetection() | 949 void SpellChecker::prepareForLeakDetection() |
954 { | 950 { |
955 m_spellCheckRequester->prepareForLeakDetection(); | 951 m_spellCheckRequester->prepareForLeakDetection(); |
956 } | 952 } |
957 | 953 |
958 } // namespace blink | 954 } // namespace blink |
OLD | NEW |