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

Unified Diff: chrome/renderer/render_view.h

Issue 6392045: Integrating Mac OS Grammar checker into Chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/webkit_param_traits.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.h
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h
index 79440592ce66859d997efb82de4527c6d12dba17..7711750ba08aa72966e1f738ec9884305dd76f7e 100644
--- a/chrome/renderer/render_view.h
+++ b/chrome/renderer/render_view.h
@@ -16,6 +16,7 @@
#include "app/surface/transport_dib.h"
#include "base/basictypes.h"
#include "base/gtest_prod_util.h"
+#include "base/id_map.h"
#include "base/linked_ptr.h"
#include "base/observer_list.h"
#include "base/timer.h"
@@ -77,6 +78,7 @@ class RenderViewVisitor;
class SearchBox;
class SkBitmap;
class SpeechInputDispatcher;
+class SpellCheckProvider;
class WebPluginDelegatePepper;
class WebPluginDelegateProxy;
struct ContextMenuMediaParams;
@@ -145,6 +147,7 @@ class WebPlugin;
class WebSpeechInputController;
class WebSpeechInputListener;
class WebStorageNamespace;
+class WebTextCheckingCompletion;
class WebURLRequest;
class WebView;
struct WebContextMenuData;
@@ -415,6 +418,9 @@ class RenderView : public RenderWidget,
virtual void spellCheck(const WebKit::WebString& text,
int& offset,
int& length);
+ virtual void requestCheckingOfText(
+ const WebKit::WebString& text,
+ WebKit::WebTextCheckingCompletion* completion);
virtual WebKit::WebString autoCorrectWord(
const WebKit::WebString& misspelled_word);
virtual void showSpellingUI(bool show);
@@ -1327,6 +1333,11 @@ class RenderView : public RenderWidget,
// Weak pointer since it implements RenderViewObserver interface.
SearchBox* searchbox_;
+ // spellcheck provider which is registered as a view observer.
+ // Note that RenderViewObserver subclasses like this will be deleted
+ // automatically during RenderView destruction.
+ SpellCheckProvider* spellcheck_provider_;
+
scoped_refptr<AudioMessageFilter> audio_message_filter_;
// Handles accessibility requests into the renderer side, as well as
« no previous file with comments | « chrome/common/webkit_param_traits.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698