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

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

Issue 246079: More WebView / WebViewDelegate cleanup. (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/webpreferences.cc ('k') | webkit/glue/webview_delegate.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) 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 // Tells all Page instances of this view to update visited state for all their 63 // Tells all Page instances of this view to update visited state for all their
64 // links. 64 // links.
65 static void ResetVisitedLinkState(); 65 static void ResetVisitedLinkState();
66 66
67 // Returns the delegate for this WebView. This is the pointer that was 67 // Returns the delegate for this WebView. This is the pointer that was
68 // passed to WebView::Initialize. The caller must check this value before 68 // passed to WebView::Initialize. The caller must check this value before
69 // using it, it will be NULL during closing of the view. 69 // using it, it will be NULL during closing of the view.
70 virtual WebViewDelegate* GetDelegate() = 0; 70 virtual WebViewDelegate* GetDelegate() = 0;
71 71
72 // Settings used by inspector.
73 virtual const std::wstring& GetInspectorSettings() const = 0;
74 virtual void SetInspectorSettings(const std::wstring& settings) = 0;
75
76 // Notifies the webview that autofill suggestions are available for a node. 72 // Notifies the webview that autofill suggestions are available for a node.
77 virtual void AutofillSuggestionsForNode( 73 virtual void AutofillSuggestionsForNode(
78 int64 node_id, 74 int64 node_id,
79 const std::vector<std::wstring>& suggestions, 75 const std::vector<std::wstring>& suggestions,
80 int default_suggestion_index) = 0; 76 int default_suggestion_index) = 0;
81 77
82 // Hides the autofill popup if any are showing. 78 // Hides the autofill popup if any are showing.
83 virtual void HideAutofillPopup() = 0; 79 virtual void HideAutofillPopup() = 0;
84 80
85 // Returns development tools agent instance belonging to this view. 81 // Returns development tools agent instance belonging to this view.
86 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0; 82 virtual WebDevToolsAgent* GetWebDevToolsAgent() = 0;
87 83
88 virtual void SetSpellingPanelVisibility(bool is_visible) = 0;
89 virtual bool GetSpellingPanelVisibility() = 0;
90
91 // Performs an action from a context menu for the node at the given 84 // Performs an action from a context menu for the node at the given
92 // location. 85 // location.
93 virtual void MediaPlayerActionAt(int x, 86 virtual void MediaPlayerActionAt(int x,
94 int y, 87 int y,
95 const MediaPlayerAction& action) = 0; 88 const MediaPlayerAction& action) = 0;
96 89
97 private: 90 private:
98 DISALLOW_COPY_AND_ASSIGN(WebView); 91 DISALLOW_COPY_AND_ASSIGN(WebView);
99 }; 92 };
100 93
101 #endif // WEBKIT_GLUE_WEBVIEW_H_ 94 #endif // WEBKIT_GLUE_WEBVIEW_H_
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.cc ('k') | webkit/glue/webview_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698