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

Side by Side Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 2226833003: Make WebSpellCheckClient aware of leak detection (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@SpellCheckerDebugInfo
Patch Set: Minor style fix Created 4 years, 4 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 Eric Seidel (eric@webkit.org) 2 * Copyright (C) 2006 Eric Seidel (eric@webkit.org)
3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 5 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 }; 278 };
279 279
280 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient { 280 class CORE_EXPORT EmptyTextCheckerClient : public TextCheckerClient {
281 DISALLOW_NEW(); 281 DISALLOW_NEW();
282 public: 282 public:
283 ~EmptyTextCheckerClient() { } 283 ~EmptyTextCheckerClient() { }
284 284
285 void checkSpellingOfString(const String&, int*, int*) override {} 285 void checkSpellingOfString(const String&, int*, int*) override {}
286 void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int*, int*) override {} 286 void checkGrammarOfString(const String&, Vector<GrammarDetail>&, int*, int*) override {}
287 void requestCheckingOfString(TextCheckingRequest*) override; 287 void requestCheckingOfString(TextCheckingRequest*) override;
288 void cancelAllPendingRequests() override;
288 }; 289 };
289 290
290 class EmptySpellCheckerClient : public SpellCheckerClient { 291 class EmptySpellCheckerClient : public SpellCheckerClient {
291 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); USING_FAST_MALLOC(EmptySpellC heckerClient); 292 WTF_MAKE_NONCOPYABLE(EmptySpellCheckerClient); USING_FAST_MALLOC(EmptySpellC heckerClient);
292 public: 293 public:
293 EmptySpellCheckerClient() {} 294 EmptySpellCheckerClient() {}
294 ~EmptySpellCheckerClient() override {} 295 ~EmptySpellCheckerClient() override {}
295 296
296 bool isContinuousSpellCheckingEnabled() override { return false; } 297 bool isContinuousSpellCheckingEnabled() override { return false; }
297 void toggleContinuousSpellChecking() override {} 298 void toggleContinuousSpellChecking() override {}
(...skipping 30 matching lines...) Expand all
328 ~EmptyContextMenuClient() override {} 329 ~EmptyContextMenuClient() override {}
329 bool showContextMenu(const ContextMenu*, bool) override { return false; } 330 bool showContextMenu(const ContextMenu*, bool) override { return false; }
330 void clearContextMenu() override {} 331 void clearContextMenu() override {}
331 }; 332 };
332 333
333 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&); 334 CORE_EXPORT void fillWithEmptyClients(Page::PageClients&);
334 335
335 } // namespace blink 336 } // namespace blink
336 337
337 #endif // EmptyClients_h 338 #endif // EmptyClients_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698