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

Side by Side Diff: public/web/WebPluginContainer.h

Issue 348193002: Remove some dead scrolling paths and unused params (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 6 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 | « Source/web/WebPopupMenuImpl.cpp ('k') | public/web/WebWidgetClient.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 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebPluginContainer_h 31 #ifndef WebPluginContainer_h
32 #define WebPluginContainer_h 32 #define WebPluginContainer_h
33 33
34 #include "../platform/WebCommon.h" 34 #include "../platform/WebCommon.h"
35 35
36 #define SCROLL_RECT_REQUIRES_NO_DELTA 1
37
36 struct NPObject; 38 struct NPObject;
37 39
38 namespace blink { 40 namespace blink {
39 41
40 class WebElement; 42 class WebElement;
41 class WebPlugin; 43 class WebPlugin;
42 class WebString; 44 class WebString;
43 class WebURL; 45 class WebURL;
44 class WebURLRequest; 46 class WebURLRequest;
45 class WebLayer; 47 class WebLayer;
46 struct WebPoint; 48 struct WebPoint;
47 struct WebRect; 49 struct WebRect;
48 50
49 class WebPluginContainer { 51 class WebPluginContainer {
50 public: 52 public:
51 enum TouchEventRequestType { 53 enum TouchEventRequestType {
52 TouchEventRequestTypeNone, 54 TouchEventRequestTypeNone,
53 TouchEventRequestTypeRaw, 55 TouchEventRequestTypeRaw,
54 TouchEventRequestTypeSynthesizedMouse, 56 TouchEventRequestTypeSynthesizedMouse,
55 }; 57 };
56 58
57 // Returns the element containing this plugin. 59 // Returns the element containing this plugin.
58 virtual WebElement element() = 0; 60 virtual WebElement element() = 0;
59 61
60 virtual void invalidate() = 0; 62 virtual void invalidate() = 0;
61 virtual void invalidateRect(const WebRect&) = 0; 63 virtual void invalidateRect(const WebRect&) = 0;
62 virtual void scrollRect(int dx, int dy, const WebRect&) = 0; 64 virtual void scrollRect(const WebRect&) = 0;
63 65
64 // Causes the container to report its current geometry via 66 // Causes the container to report its current geometry via
65 // WebPlugin::updateGeometry. 67 // WebPlugin::updateGeometry.
66 virtual void reportGeometry() = 0; 68 virtual void reportGeometry() = 0;
67 69
68 // Allow the plugin to pass script objects to the browser. The container 70 // Allow the plugin to pass script objects to the browser. The container
69 // tracks ownership of script objects in order to allow browser references 71 // tracks ownership of script objects in order to allow browser references
70 // to them to be dropped when clearScriptObjects is called. 72 // to them to be dropped when clearScriptObjects is called.
71 virtual void allowScriptObjects() = 0; 73 virtual void allowScriptObjects() = 0;
72 74
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 // WebPluginContainer does *not* take ownership. 130 // WebPluginContainer does *not* take ownership.
129 virtual void setWebLayer(WebLayer*) = 0; 131 virtual void setWebLayer(WebLayer*) = 0;
130 132
131 protected: 133 protected:
132 ~WebPluginContainer() { } 134 ~WebPluginContainer() { }
133 }; 135 };
134 136
135 } // namespace blink 137 } // namespace blink
136 138
137 #endif 139 #endif
OLDNEW
« no previous file with comments | « Source/web/WebPopupMenuImpl.cpp ('k') | public/web/WebWidgetClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698