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

Side by Side Diff: webkit/glue/webview_delegate.h

Issue 279001: Move autofill related WebView{Delegate} methods into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // TODO(darin): Eliminate WebViewDelegate in favor of WebViewClient. 55 // TODO(darin): Eliminate WebViewDelegate in favor of WebViewClient.
56 class WebViewDelegate : public WebKit::WebViewClient { 56 class WebViewDelegate : public WebKit::WebViewClient {
57 public: 57 public:
58 // WebView additions ------------------------------------------------------- 58 // WebView additions -------------------------------------------------------
59 59
60 // Returns whether this WebView was opened by a user gesture. 60 // Returns whether this WebView was opened by a user gesture.
61 virtual bool WasOpenedByUserGesture() const { 61 virtual bool WasOpenedByUserGesture() const {
62 return true; 62 return true;
63 } 63 }
64 64
65 // ChromeClient ------------------------------------------------------------
66
67 // Queries the browser for suggestions to be shown for the form text field
68 // named |field_name|. |text| is the text entered by the user so far and
69 // |node_id| is the id of the node of the input field.
70 virtual void QueryFormFieldAutofill(const std::wstring& field_name,
71 const std::wstring& text,
72 int64 node_id) {
73 }
74
75 // Instructs the browser to remove the autofill entry specified from it DB.
76 virtual void RemoveStoredAutofillEntry(const std::wstring& name,
77 const std::wstring& value) {
78 }
79
80 // DevTools ---------------------------------------------------------------- 65 // DevTools ----------------------------------------------------------------
81 66
82 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate() { 67 virtual WebDevToolsAgentDelegate* GetWebDevToolsAgentDelegate() {
83 return NULL; 68 return NULL;
84 } 69 }
85 70
86 protected: 71 protected:
87 ~WebViewDelegate() { } 72 ~WebViewDelegate() { }
88 }; 73 };
89 74
90 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 75 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview.h ('k') | webkit/glue/webview_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698