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

Side by Side Diff: third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp

Issue 1923993002: Revert of Remove unnecessary uses of GarbageCollectedFinalized<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.h ('k') | third_party/WebKit/Source/core/events/EventPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698