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

Side by Side Diff: chrome/renderer/spellchecker/spellcheck_provider.h

Issue 9368052: Removed WebTextCheckingResult legacy API use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another trial... Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/id_map.h" 11 #include "base/id_map.h"
12 #include "content/public/renderer/render_view_observer.h" 12 #include "content/public/renderer/render_view_observer.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpellCheckClient.h " 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSpellCheckClient.h "
14 14
15 class RenderView; 15 class RenderView;
16 struct SpellCheckResult;
16 17
17 namespace chrome { 18 namespace chrome {
18 class ChromeContentRendererClient; 19 class ChromeContentRendererClient;
19 } 20 }
20 21
21 namespace WebKit { 22 namespace WebKit {
22 class WebString; 23 class WebString;
23 class WebTextCheckingCompletion; 24 class WebTextCheckingCompletion;
24 struct WebTextCheckingResult; 25 struct WebTextCheckingResult;
25 } 26 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void showSpellingUI(bool show) OVERRIDE; 75 virtual void showSpellingUI(bool show) OVERRIDE;
75 virtual bool isShowingSpellingUI() OVERRIDE; 76 virtual bool isShowingSpellingUI() OVERRIDE;
76 virtual void updateSpellingUIWithMisspelledWord( 77 virtual void updateSpellingUIWithMisspelledWord(
77 const WebKit::WebString& word) OVERRIDE; 78 const WebKit::WebString& word) OVERRIDE;
78 79
79 void OnAdvanceToNextMisspelling(); 80 void OnAdvanceToNextMisspelling();
80 #if !defined(OS_MACOSX) 81 #if !defined(OS_MACOSX)
81 void OnRespondSpellingService( 82 void OnRespondSpellingService(
82 int identifier, 83 int identifier,
83 int tag, 84 int tag,
84 const std::vector<WebKit::WebTextCheckingResult>& results); 85 const std::vector<SpellCheckResult>& results);
85 #endif 86 #endif
86 #if defined(OS_MACOSX) 87 #if defined(OS_MACOSX)
87 void OnRespondTextCheck( 88 void OnRespondTextCheck(
88 int identifier, 89 int identifier,
89 int tag, 90 int tag,
90 const std::vector<WebKit::WebTextCheckingResult>& results); 91 const std::vector<SpellCheckResult>& results);
91 #endif 92 #endif
92 void OnToggleSpellCheck(); 93 void OnToggleSpellCheck();
93 void OnToggleSpellPanel(bool is_currently_visible); 94 void OnToggleSpellPanel(bool is_currently_visible);
94 95
95 // Initializes the document_tag_ member if necessary. 96 // Initializes the document_tag_ member if necessary.
96 void EnsureDocumentTag(); 97 void EnsureDocumentTag();
97 98
98 // Holds ongoing spellchecking operations, assigns IDs for the IPC routing. 99 // Holds ongoing spellchecking operations, assigns IDs for the IPC routing.
99 WebTextCheckCompletions text_check_completions_; 100 WebTextCheckCompletions text_check_completions_;
100 101
101 #if defined(OS_MACOSX) 102 #if defined(OS_MACOSX)
102 // True if the current RenderView has been assigned a document tag. 103 // True if the current RenderView has been assigned a document tag.
103 bool has_document_tag_; 104 bool has_document_tag_;
104 #endif 105 #endif
105 106
106 int document_tag_; 107 int document_tag_;
107 108
108 // True if the browser is showing the spelling panel for us. 109 // True if the browser is showing the spelling panel for us.
109 bool spelling_panel_visible_; 110 bool spelling_panel_visible_;
110 111
111 // The ChromeContentRendererClient used to access the SpellChecker. 112 // The ChromeContentRendererClient used to access the SpellChecker.
112 // Weak reference. 113 // Weak reference.
113 chrome::ChromeContentRendererClient* chrome_content_renderer_client_; 114 chrome::ChromeContentRendererClient* chrome_content_renderer_client_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider); 116 DISALLOW_COPY_AND_ASSIGN(SpellCheckProvider);
116 }; 117 };
117 118
118 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_ 119 #endif // CHROME_RENDERER_SPELLCHECKER_SPELLCHECK_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck.cc ('k') | chrome/renderer/spellchecker/spellcheck_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698