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

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

Issue 155378: Replace ShowAsPopupWithItems to CreatePopupWidgetWithInfo. Also,... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/webmenurunner_mac.mm ('k') | webkit/glue/webwidget_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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class WebDataSource; 45 class WebDataSource;
46 class WebDragData; 46 class WebDragData;
47 class WebForm; 47 class WebForm;
48 class WebWorker; 48 class WebWorker;
49 class WebWorkerClient; 49 class WebWorkerClient;
50 class WebMediaPlayer; 50 class WebMediaPlayer;
51 class WebMediaPlayerClient; 51 class WebMediaPlayerClient;
52 class WebURLRequest; 52 class WebURLRequest;
53 class WebURLResponse; 53 class WebURLResponse;
54 struct WebPoint; 54 struct WebPoint;
55 struct WebPopupMenuInfo;
55 struct WebRect; 56 struct WebRect;
56 struct WebURLError; 57 struct WebURLError;
57 } 58 }
58 59
59 struct WebPreferences; 60 struct WebPreferences;
60 class FilePath; 61 class FilePath;
61 class SkBitmap; 62 class SkBitmap;
62 class WebDevToolsAgentDelegate; 63 class WebDevToolsAgentDelegate;
63 class WebFrame; 64 class WebFrame;
64 class WebMediaPlayerDelegate; 65 class WebMediaPlayerDelegate;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 const GURL& creator_url) { 113 const GURL& creator_url) {
113 return NULL; 114 return NULL;
114 } 115 }
115 116
116 // This method is called to create a new WebWidget to act as a popup 117 // This method is called to create a new WebWidget to act as a popup
117 // (like a drop-down menu). 118 // (like a drop-down menu).
118 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable) { 119 virtual WebWidget* CreatePopupWidget(WebView* webview, bool activatable) {
119 return NULL; 120 return NULL;
120 } 121 }
121 122
123 // Like CreatePopupWidget, except the actual widget is rendered by the
124 // embedder using the supplied info.
125 virtual WebWidget* CreatePopupWidgetWithInfo(
126 WebView* webview,
127 const WebKit::WebPopupMenuInfo& info) {
128 return NULL;
129 }
130
122 // This method is called to create a WebPluginDelegate implementation when a 131 // This method is called to create a WebPluginDelegate implementation when a
123 // new plugin is instanced. See webkit_glue::CreateWebPluginDelegateHelper 132 // new plugin is instanced. See webkit_glue::CreateWebPluginDelegateHelper
124 // for a default WebPluginDelegate implementation. 133 // for a default WebPluginDelegate implementation.
125 // TODO(port): clsid is very Win- and ActiveX-specific; refactor to be more 134 // TODO(port): clsid is very Win- and ActiveX-specific; refactor to be more
126 // platform-neutral 135 // platform-neutral
127 virtual WebPluginDelegate* CreatePluginDelegate( 136 virtual WebPluginDelegate* CreatePluginDelegate(
128 WebView* webview, 137 WebView* webview,
129 const GURL& url, 138 const GURL& url,
130 const std::string& mime_type, 139 const std::string& mime_type,
131 const std::string& clsid, 140 const std::string& clsid,
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 virtual void DidAddHistoryItem() { } 827 virtual void DidAddHistoryItem() { }
819 828
820 WebViewDelegate() { } 829 WebViewDelegate() { }
821 virtual ~WebViewDelegate() { } 830 virtual ~WebViewDelegate() { }
822 831
823 private: 832 private:
824 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 833 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
825 }; 834 };
826 835
827 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 836 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webmenurunner_mac.mm ('k') | webkit/glue/webwidget_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698