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

Side by Side Diff: webkit/api/public/WebView.h

Issue 251103: Move MediaPlayerAction to WebMediaPlayerAction. Switch to an enum and a... (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/api/public/WebMediaPlayerAction.h ('k') | webkit/glue/media_player_action.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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 23 matching lines...) Expand all
34 #include "WebDragOperation.h" 34 #include "WebDragOperation.h"
35 #include "WebWidget.h" 35 #include "WebWidget.h"
36 36
37 namespace WebKit { 37 namespace WebKit {
38 class WebDragData; 38 class WebDragData;
39 class WebFrame; 39 class WebFrame;
40 class WebFrameClient; 40 class WebFrameClient;
41 class WebSettings; 41 class WebSettings;
42 class WebString; 42 class WebString;
43 class WebViewClient; 43 class WebViewClient;
44 struct WebMediaPlayerAction;
44 struct WebPoint; 45 struct WebPoint;
45 46
46 class WebView : public WebWidget { 47 class WebView : public WebWidget {
47 public: 48 public:
48 // Initialization ------------------------------------------------------ 49 // Initialization ------------------------------------------------------
49 50
50 // FIXME enable this once WebViewDelegate has been eliminated. 51 // FIXME enable this once WebViewDelegate has been eliminated.
51 //WEBKIT_API WebView* create(WebViewClient*); 52 //WEBKIT_API WebView* create(WebViewClient*);
52 53
53 // After creating a WebView, you should immediately call this method. 54 // After creating a WebView, you should immediately call this method.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // You can only have either text zoom or full page zoom at one time. 135 // You can only have either text zoom or full page zoom at one time.
135 // Changing the mode will change things in weird ways. Generally the 136 // Changing the mode will change things in weird ways. Generally the
136 // app should only support text zoom or full page zoom, and not both. 137 // app should only support text zoom or full page zoom, and not both.
137 // 138 //
138 // zoomDefault will reset both full page and text zoom. 139 // zoomDefault will reset both full page and text zoom.
139 virtual void zoomIn(bool textOnly) = 0; 140 virtual void zoomIn(bool textOnly) = 0;
140 virtual void zoomOut(bool textOnly) = 0; 141 virtual void zoomOut(bool textOnly) = 0;
141 virtual void zoomDefault() = 0; 142 virtual void zoomDefault() = 0;
142 143
143 144
145 // Media ---------------------------------------------------------------
146
147 // Performs the specified action on the node at the given location.
148 virtual void performMediaPlayerAction(
149 const WebMediaPlayerAction&, const WebPoint& location) = 0;
150
151
144 // Data exchange ------------------------------------------------------- 152 // Data exchange -------------------------------------------------------
145 153
146 // Copy to the clipboard the image located at a particular point in the 154 // Copy to the clipboard the image located at a particular point in the
147 // WebView (if there is such an image) 155 // WebView (if there is such an image)
148 virtual void copyImageAt(const WebPoint&) = 0; 156 virtual void copyImageAt(const WebPoint&) = 0;
149 157
150 // Notifies the WebView that a drag has terminated. 158 // Notifies the WebView that a drag has terminated.
151 virtual void dragSourceEndedAt( 159 virtual void dragSourceEndedAt(
152 const WebPoint& clientPoint, const WebPoint& screenPoint, 160 const WebPoint& clientPoint, const WebPoint& screenPoint,
153 WebDragOperation operation) = 0; 161 WebDragOperation operation) = 0;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // AutofillSuggestionsForNode 206 // AutofillSuggestionsForNode
199 // HideAutofillPopup 207 // HideAutofillPopup
200 208
201 protected: 209 protected:
202 ~WebView() {} 210 ~WebView() {}
203 }; 211 };
204 212
205 } // namespace WebKit 213 } // namespace WebKit
206 214
207 #endif 215 #endif
OLDNEW
« no previous file with comments | « webkit/api/public/WebMediaPlayerAction.h ('k') | webkit/glue/media_player_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698