| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |    5 #ifndef CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 
|    6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |    6 #define CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 
|    7  |    7  | 
|    8 #include <stddef.h> |    8 #include <stddef.h> | 
|    9 #include <stdint.h> |    9 #include <stdint.h> | 
|   10  |   10  | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   64  |   64  | 
|   65  private: |   65  private: | 
|   66   friend class TestingSpellCheckProvider; |   66   friend class TestingSpellCheckProvider; | 
|   67  |   67  | 
|   68   // Tries to satisfy a spell check request from the cache in |last_request_|. |   68   // Tries to satisfy a spell check request from the cache in |last_request_|. | 
|   69   // Returns true (and cancels/finishes the completion) if it can, false |   69   // Returns true (and cancels/finishes the completion) if it can, false | 
|   70   // if the provider should forward the query on. |   70   // if the provider should forward the query on. | 
|   71   bool SatisfyRequestFromCache(const base::string16& text, |   71   bool SatisfyRequestFromCache(const base::string16& text, | 
|   72                                blink::WebTextCheckingCompletion* completion); |   72                                blink::WebTextCheckingCompletion* completion); | 
|   73  |   73  | 
 |   74   // RenderViewObserver implementation. | 
 |   75   void OnDestruct() override; | 
 |   76  | 
|   74   // blink::WebSpellCheckClient implementation. |   77   // blink::WebSpellCheckClient implementation. | 
|   75   void spellCheck( |   78   void spellCheck( | 
|   76       const blink::WebString& text, |   79       const blink::WebString& text, | 
|   77       int& offset, |   80       int& offset, | 
|   78       int& length, |   81       int& length, | 
|   79       blink::WebVector<blink::WebString>* optional_suggestions) override; |   82       blink::WebVector<blink::WebString>* optional_suggestions) override; | 
|   80   void checkTextOfParagraph( |   83   void checkTextOfParagraph( | 
|   81       const blink::WebString& text, |   84       const blink::WebString& text, | 
|   82       blink::WebTextCheckingTypeMask mask, |   85       blink::WebTextCheckingTypeMask mask, | 
|   83       blink::WebVector<blink::WebTextCheckingResult>* results) override; |   86       blink::WebVector<blink::WebTextCheckingResult>* results) override; | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  125   // True if the browser is showing the spelling panel for us. |  128   // True if the browser is showing the spelling panel for us. | 
|  126   bool spelling_panel_visible_; |  129   bool spelling_panel_visible_; | 
|  127  |  130  | 
|  128   // Weak pointer to shared (per RenderView) spellcheck data. |  131   // Weak pointer to shared (per RenderView) spellcheck data. | 
|  129   SpellCheck* spellcheck_; |  132   SpellCheck* spellcheck_; | 
|  130  |  133  | 
|  131   DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); |  134   DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); | 
|  132 }; |  135 }; | 
|  133  |  136  | 
|  134 #endif  // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ |  137 #endif  // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ | 
| OLD | NEW |