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

Side by Side Diff: Source/web/WebPluginContainerImpl.h

Issue 135753002: Update web classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 11 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/WebPagePopupImpl.h ('k') | Source/web/WebPluginScrollbarImpl.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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 58
59 namespace blink { 59 namespace blink {
60 60
61 struct WebPrintParams; 61 struct WebPrintParams;
62 62
63 class ScrollbarGroup; 63 class ScrollbarGroup;
64 class WebPlugin; 64 class WebPlugin;
65 class WebPluginLoadObserver; 65 class WebPluginLoadObserver;
66 class WebExternalTextureLayer; 66 class WebExternalTextureLayer;
67 67
68 class WebPluginContainerImpl : public WebCore::PluginView, public WebPluginConta iner { 68 class WebPluginContainerImpl FINAL : public WebCore::PluginView, public WebPlugi nContainer {
69 public: 69 public:
70 static PassRefPtr<WebPluginContainerImpl> create(WebCore::HTMLPlugInElement* element, WebPlugin* webPlugin) 70 static PassRefPtr<WebPluginContainerImpl> create(WebCore::HTMLPlugInElement* element, WebPlugin* webPlugin)
71 { 71 {
72 return adoptRef(new WebPluginContainerImpl(element, webPlugin)); 72 return adoptRef(new WebPluginContainerImpl(element, webPlugin));
73 } 73 }
74 74
75 // PluginView methods 75 // PluginView methods
76 virtual WebLayer* platformLayer() const OVERRIDE; 76 virtual WebLayer* platformLayer() const OVERRIDE;
77 virtual NPObject* scriptableObject() OVERRIDE; 77 virtual NPObject* scriptableObject() OVERRIDE;
78 virtual bool getFormValue(String&) OVERRIDE; 78 virtual bool getFormValue(String&) OVERRIDE;
79 virtual bool supportsKeyboardFocus() const OVERRIDE; 79 virtual bool supportsKeyboardFocus() const OVERRIDE;
80 virtual bool supportsInputMethod() const OVERRIDE; 80 virtual bool supportsInputMethod() const OVERRIDE;
81 virtual bool canProcessDrag() const OVERRIDE; 81 virtual bool canProcessDrag() const OVERRIDE;
82 virtual bool wantsWheelEvents() OVERRIDE; 82 virtual bool wantsWheelEvents() OVERRIDE;
83 83
84 // Widget methods 84 // Widget methods
85 virtual void setFrameRect(const WebCore::IntRect&); 85 virtual void setFrameRect(const WebCore::IntRect&) OVERRIDE;
86 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&); 86 virtual void paint(WebCore::GraphicsContext*, const WebCore::IntRect&) OVERR IDE;
87 virtual void invalidateRect(const WebCore::IntRect&); 87 virtual void invalidateRect(const WebCore::IntRect&) OVERRIDE;
88 virtual void setFocus(bool); 88 virtual void setFocus(bool) OVERRIDE;
89 virtual void show(); 89 virtual void show() OVERRIDE;
90 virtual void hide(); 90 virtual void hide() OVERRIDE;
91 virtual void handleEvent(WebCore::Event*); 91 virtual void handleEvent(WebCore::Event*) OVERRIDE;
92 virtual void frameRectsChanged(); 92 virtual void frameRectsChanged() OVERRIDE;
93 virtual void setParentVisible(bool); 93 virtual void setParentVisible(bool) OVERRIDE;
94 virtual void setParent(WebCore::Widget*); 94 virtual void setParent(WebCore::Widget*) OVERRIDE;
95 virtual void widgetPositionsUpdated(); 95 virtual void widgetPositionsUpdated() OVERRIDE;
96 virtual void clipRectChanged() OVERRIDE; 96 virtual void clipRectChanged() OVERRIDE;
97 virtual bool isPluginContainer() const { return true; } 97 virtual bool isPluginContainer() const OVERRIDE { return true; }
98 virtual void eventListenersRemoved() OVERRIDE; 98 virtual void eventListenersRemoved() OVERRIDE;
99 99
100 // WebPluginContainer methods 100 // WebPluginContainer methods
101 virtual WebElement element(); 101 virtual WebElement element() OVERRIDE;
102 virtual void invalidate(); 102 virtual void invalidate() OVERRIDE;
103 virtual void invalidateRect(const WebRect&); 103 virtual void invalidateRect(const WebRect&) OVERRIDE;
104 virtual void scrollRect(int dx, int dy, const WebRect&); 104 virtual void scrollRect(int dx, int dy, const WebRect&) OVERRIDE;
105 virtual void reportGeometry(); 105 virtual void reportGeometry() OVERRIDE;
106 virtual void allowScriptObjects(); 106 virtual void allowScriptObjects() OVERRIDE;
107 virtual void clearScriptObjects(); 107 virtual void clearScriptObjects() OVERRIDE;
108 virtual NPObject* scriptableObjectForElement(); 108 virtual NPObject* scriptableObjectForElement() OVERRIDE;
109 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed); 109 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed) OVERRI DE;
110 virtual void loadFrameRequest(const WebURLRequest&, const WebString& target, bool notifyNeeded, void* notifyData); 110 virtual void loadFrameRequest(const WebURLRequest&, const WebString& target, bool notifyNeeded, void* notifyData) OVERRIDE;
111 virtual void zoomLevelChanged(double zoomLevel); 111 virtual void zoomLevelChanged(double zoomLevel) OVERRIDE;
112 virtual bool isRectTopmost(const WebRect&); 112 virtual bool isRectTopmost(const WebRect&) OVERRIDE;
113 virtual void requestTouchEventType(TouchEventRequestType); 113 virtual void requestTouchEventType(TouchEventRequestType) OVERRIDE;
114 virtual void setWantsWheelEvents(bool); 114 virtual void setWantsWheelEvents(bool) OVERRIDE;
115 virtual WebPoint windowToLocalPoint(const WebPoint&); 115 virtual WebPoint windowToLocalPoint(const WebPoint&) OVERRIDE;
116 virtual WebPoint localToWindowPoint(const WebPoint&); 116 virtual WebPoint localToWindowPoint(const WebPoint&) OVERRIDE;
117 117
118 // This cannot be null. 118 // This cannot be null.
119 WebPlugin* plugin() { return m_webPlugin; } 119 virtual WebPlugin* plugin() OVERRIDE { return m_webPlugin; }
120 void setPlugin(WebPlugin*); 120 virtual void setPlugin(WebPlugin*) OVERRIDE;
121 121
122 virtual float deviceScaleFactor(); 122 virtual float deviceScaleFactor() OVERRIDE;
123 virtual float pageScaleFactor(); 123 virtual float pageScaleFactor() OVERRIDE;
124 virtual float pageZoomFactor(); 124 virtual float pageZoomFactor() OVERRIDE;
125 125
126 virtual void setWebLayer(WebLayer*); 126 virtual void setWebLayer(WebLayer*);
127 127
128 // Printing interface. The plugin can support custom printing 128 // Printing interface. The plugin can support custom printing
129 // (which means it controls the layout, number of pages etc). 129 // (which means it controls the layout, number of pages etc).
130 // Whether the plugin supports its own paginated print. The other print 130 // Whether the plugin supports its own paginated print. The other print
131 // interface methods are called only if this method returns true. 131 // interface methods are called only if this method returns true.
132 bool supportsPaginatedPrint() const; 132 bool supportsPaginatedPrint() const;
133 // If the plugin content should not be scaled to the printable area of 133 // If the plugin content should not be scaled to the printable area of
134 // the page, then this method should return true. 134 // the page, then this method should return true.
(...skipping 22 matching lines...) Expand all
157 157
158 ScrollbarGroup* scrollbarGroup(); 158 ScrollbarGroup* scrollbarGroup();
159 159
160 void willStartLiveResize(); 160 void willStartLiveResize();
161 void willEndLiveResize(); 161 void willEndLiveResize();
162 162
163 bool paintCustomOverhangArea(WebCore::GraphicsContext*, const WebCore::IntRe ct&, const WebCore::IntRect&, const WebCore::IntRect&); 163 bool paintCustomOverhangArea(WebCore::GraphicsContext*, const WebCore::IntRe ct&, const WebCore::IntRect&, const WebCore::IntRect&);
164 164
165 private: 165 private:
166 WebPluginContainerImpl(WebCore::HTMLPlugInElement* element, WebPlugin* webPl ugin); 166 WebPluginContainerImpl(WebCore::HTMLPlugInElement* element, WebPlugin* webPl ugin);
167 ~WebPluginContainerImpl(); 167 virtual ~WebPluginContainerImpl();
168 168
169 void handleMouseEvent(WebCore::MouseEvent*); 169 void handleMouseEvent(WebCore::MouseEvent*);
170 void handleDragEvent(WebCore::MouseEvent*); 170 void handleDragEvent(WebCore::MouseEvent*);
171 void handleWheelEvent(WebCore::WheelEvent*); 171 void handleWheelEvent(WebCore::WheelEvent*);
172 void handleKeyboardEvent(WebCore::KeyboardEvent*); 172 void handleKeyboardEvent(WebCore::KeyboardEvent*);
173 void handleTouchEvent(WebCore::TouchEvent*); 173 void handleTouchEvent(WebCore::TouchEvent*);
174 void handleGestureEvent(WebCore::GestureEvent*); 174 void handleGestureEvent(WebCore::GestureEvent*);
175 175
176 void synthesizeMouseEventIfPossible(WebCore::TouchEvent*); 176 void synthesizeMouseEventIfPossible(WebCore::TouchEvent*);
177 177
(...skipping 22 matching lines...) Expand all
200 }; 200 };
201 201
202 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebCore::Widget, widget, widget->isPlu ginContainer(), widget.isPluginContainer()); 202 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebCore::Widget, widget, widget->isPlu ginContainer(), widget.isPluginContainer());
203 // Unlike Widget, we need not worry about object type for container. 203 // Unlike Widget, we need not worry about object type for container.
204 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 204 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
205 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 205 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
206 206
207 } // namespace blink 207 } // namespace blink
208 208
209 #endif 209 #endif
OLDNEW
« no previous file with comments | « Source/web/WebPagePopupImpl.h ('k') | Source/web/WebPluginScrollbarImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698