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

Unified Diff: chrome/browser/tab_contents/spelling_menu_observer.h

Issue 8422006: Adds a bubble that asks a user whether to integrate the Spelling service. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
Index: chrome/browser/tab_contents/spelling_menu_observer.h
===================================================================
--- chrome/browser/tab_contents/spelling_menu_observer.h (revision 108037)
+++ chrome/browser/tab_contents/spelling_menu_observer.h (working copy)
@@ -7,6 +7,7 @@
#pragma once
#include <string>
+#include <vector>
#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
@@ -74,6 +75,11 @@
// this interface to avoid accesing context-menu items directly.
RenderViewContextMenuProxy* proxy_;
+ // Suggested words from the local spellchecker. If the spelling service
+ // returns a word in this list, we hide the context-menu item to prevent
+ // showing the same word twice.
+ std::vector<string16> suggestions_;
+
// The string used for animation until we receive a response from the Spelling
// service. The current animation just adds periods at the end of this string:
// 'Loading' -> 'Loading.' -> 'Loading..' -> 'Loading...' (-> 'Loading')
« no previous file with comments | « chrome/browser/tab_contents/spelling_bubble_model.cc ('k') | chrome/browser/tab_contents/spelling_menu_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698