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

Side by Side Diff: third_party/WebKit/Source/web/SpellCheckerClientImpl.h

Issue 2211813002: Revert removal of grammar checking and marking code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor 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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 30 matching lines...) Expand all
41 41
42 class SpellCheckerClientImpl final : public SpellCheckerClient, public TextCheck erClient { 42 class SpellCheckerClientImpl final : public SpellCheckerClient, public TextCheck erClient {
43 public: 43 public:
44 explicit SpellCheckerClientImpl(WebViewImpl*); 44 explicit SpellCheckerClientImpl(WebViewImpl*);
45 45
46 ~SpellCheckerClientImpl() override; 46 ~SpellCheckerClientImpl() override;
47 47
48 bool isContinuousSpellCheckingEnabled() override; 48 bool isContinuousSpellCheckingEnabled() override;
49 void toggleContinuousSpellChecking() override; 49 void toggleContinuousSpellChecking() override;
50 void checkSpellingOfString(const String&, int* misspellingLocation, int* mis spellingLength) override; 50 void checkSpellingOfString(const String&, int* misspellingLocation, int* mis spellingLength) override;
51 void checkGrammarOfString(const String&, Vector<GrammarDetail>&,
52 int* badGrammarLocation, int* badGrammarLength) override;
51 void updateSpellingUIWithMisspelledWord(const String&) override; 53 void updateSpellingUIWithMisspelledWord(const String&) override;
52 void showSpellingUI(bool show) override; 54 void showSpellingUI(bool show) override;
53 bool spellingUIIsShowing() override; 55 bool spellingUIIsShowing() override;
54 void requestCheckingOfString(TextCheckingRequest*) override; 56 void requestCheckingOfString(TextCheckingRequest*) override;
55 57
56 TextCheckerClient& textChecker() override { return *this; } 58 TextCheckerClient& textChecker() override { return *this; }
57 59
58 private: 60 private:
59 // Returns whether or not the focused control needs spell-checking. 61 // Returns whether or not the focused control needs spell-checking.
60 // Currently, this function just retrieves the focused node and determines 62 // Currently, this function just retrieves the focused node and determines
(...skipping 11 matching lines...) Expand all
72 enum { 74 enum {
73 SpellCheckAutomatic, 75 SpellCheckAutomatic,
74 SpellCheckForcedOn, 76 SpellCheckForcedOn,
75 SpellCheckForcedOff 77 SpellCheckForcedOff
76 } m_spellCheckThisFieldStatus; 78 } m_spellCheckThisFieldStatus;
77 }; 79 };
78 80
79 } // namespace blink 81 } // namespace blink
80 82
81 #endif 83 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/text/TextCheckerClient.h ('k') | third_party/WebKit/Source/web/SpellCheckerClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698