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

Side by Side Diff: third_party/WebKit/public/web/WebSpellCheckClient.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
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 WebTextCheckingTypeMask mask, 60 WebTextCheckingTypeMask mask,
61 WebVector<WebTextCheckingResult>* results) { } 61 WebVector<WebTextCheckingResult>* results) { }
62 62
63 // Requests asynchronous spelling and grammar checking, whose result should be 63 // Requests asynchronous spelling and grammar checking, whose result should be
64 // returned by passed completion object. 64 // returned by passed completion object.
65 virtual void requestCheckingOfText(const WebString& textToCheck, 65 virtual void requestCheckingOfText(const WebString& textToCheck,
66 const WebVector<uint32_t>& markersInText, 66 const WebVector<uint32_t>& markersInText,
67 const WebVector<unsigned>& markerOffsets, 67 const WebVector<unsigned>& markerOffsets,
68 WebTextCheckingCompletion* completionCall back) { } 68 WebTextCheckingCompletion* completionCall back) { }
69 69
70 // Clear all stored references to requests, so that it will not become a
71 // leak source.
72 virtual void cancelAllPendingRequests() { }
73
70 // Show or hide the spelling UI. 74 // Show or hide the spelling UI.
71 virtual void showSpellingUI(bool show) { } 75 virtual void showSpellingUI(bool show) { }
72 76
73 // Returns true if the spelling UI is showing. 77 // Returns true if the spelling UI is showing.
74 virtual bool isShowingSpellingUI() { return false; } 78 virtual bool isShowingSpellingUI() { return false; }
75 79
76 // Update the spelling UI with the given word. 80 // Update the spelling UI with the given word.
77 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) { } 81 virtual void updateSpellingUIWithMisspelledWord(const WebString& word) { }
78 82
79 protected: 83 protected:
80 ~WebSpellCheckClient() { } 84 ~WebSpellCheckClient() { }
81 }; 85 };
82 86
83 } // namespace blink 87 } // namespace blink
84 88
85 #endif 89 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698