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

Unified Diff: webkit/glue/webview_impl.h

Issue 8885: Implementation of the UI part of the autofill (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | « webkit/glue/webview_delegate.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webview_impl.h
===================================================================
--- webkit/glue/webview_impl.h (revision 4621)
+++ webkit/glue/webview_impl.h (working copy)
@@ -27,10 +27,12 @@
class KeyboardEvent;
class Page;
class PlatformKeyboardEvent;
+class PopupContainer;
class Range;
class Widget;
}
+class AutocompletePopupMenuClient;
class ImageResourceFetcher;
class SearchableFormData;
struct WebDropData;
@@ -96,6 +98,10 @@
virtual void DragTargetDragLeave();
virtual void DragTargetDrop(
int client_x, int client_y, int screen_x, int screen_y);
+ virtual void AutofillSuggestionsForNode(
+ int64 node_id,
+ const std::vector<std::wstring>& suggestions,
+ int default_suggestion_index);
// WebViewImpl
@@ -176,6 +182,9 @@
bool errored,
const SkBitmap& image);
+ // Hides the autocomplete popup if it is showing.
+ void HideAutoCompletePopup();
+
protected:
friend class WebView; // So WebView::Create can call our constructor
@@ -285,6 +294,13 @@
// Represents whether or not this object should process incoming IME events.
bool ime_accept_events_;
+ // The currently shown autocomplete popup.
+ RefPtr<WebCore::PopupContainer> autocomplete_popup_;
+
+ // The popup client of the currently shown autocomplete popup. Necessary for
+ // managing the life of the client.
+ RefPtr<AutocompletePopupMenuClient> autocomplete_popup_client_;
+
// HACK: current_input_event is for ChromeClientImpl::show(), until we can fix
// WebKit to pass enough information up into ChromeClient::show() so we can
// decide if the window.open event was caused by a middle-mouse click
« no previous file with comments | « webkit/glue/webview_delegate.h ('k') | webkit/glue/webview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698