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

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

Issue 265044: Eliminate WebView::GetDelegate and replace RenderViewSet with a linked list o... (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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef WEBKIT_GLUE_WEBVIEW_H_ 5 #ifndef WEBKIT_GLUE_WEBVIEW_H_
6 #define WEBKIT_GLUE_WEBVIEW_H_ 6 #define WEBKIT_GLUE_WEBVIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 static WebView* Create(WebViewDelegate* delegate); 56 static WebView* Create(WebViewDelegate* delegate);
57 57
58 // Tells all Page instances of this view to update the visited link state for 58 // Tells all Page instances of this view to update the visited link state for
59 // the specified hash. 59 // the specified hash.
60 static void UpdateVisitedLinkState(uint64 link_hash); 60 static void UpdateVisitedLinkState(uint64 link_hash);
61 61
62 // Tells all Page instances of this view to update visited state for all their 62 // Tells all Page instances of this view to update visited state for all their
63 // links. 63 // links.
64 static void ResetVisitedLinkState(); 64 static void ResetVisitedLinkState();
65 65
66 // Returns the delegate for this WebView. This is the pointer that was
67 // passed to WebView::Initialize. The caller must check this value before
68 // using it, it will be NULL during closing of the view.
69 virtual WebViewDelegate* GetDelegate() = 0;
70
71 // Notifies the webview that autofill suggestions are available for a node. 66 // Notifies the webview that autofill suggestions are available for a node.
72 virtual void AutofillSuggestionsForNode( 67 virtual void AutofillSuggestionsForNode(
73 int64 node_id, 68 int64 node_id,
74 const std::vector<std::wstring>& suggestions, 69 const std::vector<std::wstring>& suggestions,
75 int default_suggestion_index) = 0; 70 int default_suggestion_index) = 0;
76 71
77 // Hides the autofill popup if any are showing. 72 // Hides the autofill popup if any are showing.
78 virtual void HideAutofillPopup() = 0; 73 virtual void HideAutofillPopup() = 0;
79 74
80 // Returns development tools agent instance belonging to this view. 75 // Returns development tools agent instance belonging to this view.
81 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; 76 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0;
82 77
83 private: 78 private:
84 DISALLOW_COPY_AND_ASSIGN(WebView); 79 DISALLOW_COPY_AND_ASSIGN(WebView);
85 }; 80 };
86 81
87 #endif // WEBKIT_GLUE_WEBVIEW_H_ 82 #endif // WEBKIT_GLUE_WEBVIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698