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

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

Issue 634893002: Replace OVERRIDE and FINAL with override and final in WebKit/public (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « Source/web/WebPagePopupImpl.cpp ('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 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class ResourceResponse; 56 class ResourceResponse;
57 class ScrollbarGroup; 57 class ScrollbarGroup;
58 class TouchEvent; 58 class TouchEvent;
59 class WebPlugin; 59 class WebPlugin;
60 class WebPluginLoadObserver; 60 class WebPluginLoadObserver;
61 class WebExternalTextureLayer; 61 class WebExternalTextureLayer;
62 class WheelEvent; 62 class WheelEvent;
63 class Widget; 63 class Widget;
64 struct WebPrintParams; 64 struct WebPrintParams;
65 65
66 class WebPluginContainerImpl FINAL 66 class WebPluginContainerImpl final
67 : public PluginView 67 : public PluginView
68 , public WebPluginContainer 68 , public WebPluginContainer
69 #if !ENABLE(OILPAN) 69 #if !ENABLE(OILPAN)
70 , public FrameDestructionObserver 70 , public FrameDestructionObserver
71 #endif 71 #endif
72 { 72 {
73 public: 73 public:
74 static PassRefPtr<WebPluginContainerImpl> create(HTMLPlugInElement* element, WebPlugin* webPlugin) 74 static PassRefPtr<WebPluginContainerImpl> create(HTMLPlugInElement* element, WebPlugin* webPlugin)
75 { 75 {
76 return adoptRef(new WebPluginContainerImpl(element, webPlugin)); 76 return adoptRef(new WebPluginContainerImpl(element, webPlugin));
77 } 77 }
78 78
79 // PluginView methods 79 // PluginView methods
80 virtual WebLayer* platformLayer() const OVERRIDE; 80 virtual WebLayer* platformLayer() const override;
81 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) OVERRIDE; 81 virtual v8::Local<v8::Object> scriptableObject(v8::Isolate*) override;
82 virtual bool getFormValue(String&) OVERRIDE; 82 virtual bool getFormValue(String&) override;
83 virtual bool supportsKeyboardFocus() const OVERRIDE; 83 virtual bool supportsKeyboardFocus() const override;
84 virtual bool supportsInputMethod() const OVERRIDE; 84 virtual bool supportsInputMethod() const override;
85 virtual bool canProcessDrag() const OVERRIDE; 85 virtual bool canProcessDrag() const override;
86 virtual bool wantsWheelEvents() OVERRIDE; 86 virtual bool wantsWheelEvents() override;
87 87
88 // Widget methods 88 // Widget methods
89 virtual void setFrameRect(const IntRect&) OVERRIDE; 89 virtual void setFrameRect(const IntRect&) override;
90 virtual void paint(GraphicsContext*, const IntRect&) OVERRIDE; 90 virtual void paint(GraphicsContext*, const IntRect&) override;
91 virtual void invalidateRect(const IntRect&) OVERRIDE; 91 virtual void invalidateRect(const IntRect&) override;
92 virtual void setFocus(bool) OVERRIDE; 92 virtual void setFocus(bool) override;
93 virtual void show() OVERRIDE; 93 virtual void show() override;
94 virtual void hide() OVERRIDE; 94 virtual void hide() override;
95 virtual void handleEvent(Event*) OVERRIDE; 95 virtual void handleEvent(Event*) override;
96 virtual void frameRectsChanged() OVERRIDE; 96 virtual void frameRectsChanged() override;
97 virtual void setParentVisible(bool) OVERRIDE; 97 virtual void setParentVisible(bool) override;
98 virtual void setParent(Widget*) OVERRIDE; 98 virtual void setParent(Widget*) override;
99 virtual void widgetPositionsUpdated() OVERRIDE; 99 virtual void widgetPositionsUpdated() override;
100 virtual bool isPluginContainer() const OVERRIDE { return true; } 100 virtual bool isPluginContainer() const override { return true; }
101 virtual void eventListenersRemoved() OVERRIDE; 101 virtual void eventListenersRemoved() override;
102 virtual bool pluginShouldPersist() const OVERRIDE; 102 virtual bool pluginShouldPersist() const override;
103 103
104 // WebPluginContainer methods 104 // WebPluginContainer methods
105 virtual WebElement element() OVERRIDE; 105 virtual WebElement element() override;
106 virtual void invalidate() OVERRIDE; 106 virtual void invalidate() override;
107 virtual void invalidateRect(const WebRect&) OVERRIDE; 107 virtual void invalidateRect(const WebRect&) override;
108 virtual void scrollRect(const WebRect&) OVERRIDE; 108 virtual void scrollRect(const WebRect&) override;
109 virtual void reportGeometry() OVERRIDE; 109 virtual void reportGeometry() override;
110 virtual void allowScriptObjects() OVERRIDE; 110 virtual void allowScriptObjects() override;
111 virtual void clearScriptObjects() OVERRIDE; 111 virtual void clearScriptObjects() override;
112 virtual NPObject* scriptableObjectForElement() OVERRIDE; 112 virtual NPObject* scriptableObjectForElement() override;
113 virtual v8::Local<v8::Object> v8ObjectForElement() OVERRIDE; 113 virtual v8::Local<v8::Object> v8ObjectForElement() override;
114 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed) OVERRI DE; 114 virtual WebString executeScriptURL(const WebURL&, bool popupsAllowed) overri de;
115 virtual void loadFrameRequest(const WebURLRequest&, const WebString& target, bool notifyNeeded, void* notifyData) OVERRIDE; 115 virtual void loadFrameRequest(const WebURLRequest&, const WebString& target, bool notifyNeeded, void* notifyData) override;
116 virtual void zoomLevelChanged(double zoomLevel) OVERRIDE; 116 virtual void zoomLevelChanged(double zoomLevel) override;
117 virtual bool isRectTopmost(const WebRect&) OVERRIDE; 117 virtual bool isRectTopmost(const WebRect&) override;
118 virtual void requestTouchEventType(TouchEventRequestType) OVERRIDE; 118 virtual void requestTouchEventType(TouchEventRequestType) override;
119 virtual void setWantsWheelEvents(bool) OVERRIDE; 119 virtual void setWantsWheelEvents(bool) override;
120 virtual WebPoint windowToLocalPoint(const WebPoint&) OVERRIDE; 120 virtual WebPoint windowToLocalPoint(const WebPoint&) override;
121 virtual WebPoint localToWindowPoint(const WebPoint&) OVERRIDE; 121 virtual WebPoint localToWindowPoint(const WebPoint&) override;
122 122
123 // This cannot be null. 123 // This cannot be null.
124 virtual WebPlugin* plugin() OVERRIDE { return m_webPlugin; } 124 virtual WebPlugin* plugin() override { return m_webPlugin; }
125 virtual void setPlugin(WebPlugin*) OVERRIDE; 125 virtual void setPlugin(WebPlugin*) override;
126 126
127 virtual float deviceScaleFactor() OVERRIDE; 127 virtual float deviceScaleFactor() override;
128 virtual float pageScaleFactor() OVERRIDE; 128 virtual float pageScaleFactor() override;
129 virtual float pageZoomFactor() OVERRIDE; 129 virtual float pageZoomFactor() override;
130 130
131 virtual void setWebLayer(WebLayer*); 131 virtual void setWebLayer(WebLayer*);
132 132
133 // Printing interface. The plugin can support custom printing 133 // Printing interface. The plugin can support custom printing
134 // (which means it controls the layout, number of pages etc). 134 // (which means it controls the layout, number of pages etc).
135 // Whether the plugin supports its own paginated print. The other print 135 // Whether the plugin supports its own paginated print. The other print
136 // interface methods are called only if this method returns true. 136 // interface methods are called only if this method returns true.
137 bool supportsPaginatedPrint() const; 137 bool supportsPaginatedPrint() const;
138 // If the plugin content should not be scaled to the printable area of 138 // If the plugin content should not be scaled to the printable area of
139 // the page, then this method should return true. 139 // the page, then this method should return true.
140 bool isPrintScalingDisabled() const; 140 bool isPrintScalingDisabled() const;
141 // Returns number of copies to be printed. 141 // Returns number of copies to be printed.
142 int getCopiesToPrint() const; 142 int getCopiesToPrint() const;
143 // Sets up printing at the specified WebPrintParams. Returns the number of p ages to be printed at these settings. 143 // Sets up printing at the specified WebPrintParams. Returns the number of p ages to be printed at these settings.
144 int printBegin(const WebPrintParams&) const; 144 int printBegin(const WebPrintParams&) const;
145 // Prints the page specified by pageNumber (0-based index) into the supplied canvas. 145 // Prints the page specified by pageNumber (0-based index) into the supplied canvas.
146 bool printPage(int pageNumber, GraphicsContext*); 146 bool printPage(int pageNumber, GraphicsContext*);
147 // Ends the print operation. 147 // Ends the print operation.
148 void printEnd(); 148 void printEnd();
149 149
150 // Copy the selected text. 150 // Copy the selected text.
151 void copy(); 151 void copy();
152 152
153 // Pass the edit command to the plugin. 153 // Pass the edit command to the plugin.
154 bool executeEditCommand(const WebString& name); 154 bool executeEditCommand(const WebString& name);
155 bool executeEditCommand(const WebString& name, const WebString& value); 155 bool executeEditCommand(const WebString& name, const WebString& value);
156 156
157 // Resource load events for the plugin's source data: 157 // Resource load events for the plugin's source data:
158 virtual void didReceiveResponse(const ResourceResponse&) OVERRIDE; 158 virtual void didReceiveResponse(const ResourceResponse&) override;
159 virtual void didReceiveData(const char *data, int dataLength) OVERRIDE; 159 virtual void didReceiveData(const char *data, int dataLength) override;
160 virtual void didFinishLoading() OVERRIDE; 160 virtual void didFinishLoading() override;
161 virtual void didFailLoading(const ResourceError&) OVERRIDE; 161 virtual void didFailLoading(const ResourceError&) override;
162 162
163 void willDestroyPluginLoadObserver(WebPluginLoadObserver*); 163 void willDestroyPluginLoadObserver(WebPluginLoadObserver*);
164 164
165 ScrollbarGroup* scrollbarGroup(); 165 ScrollbarGroup* scrollbarGroup();
166 166
167 void willStartLiveResize(); 167 void willStartLiveResize();
168 void willEndLiveResize(); 168 void willEndLiveResize();
169 169
170 bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect &, const IntRect&); 170 bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect &, const IntRect&);
171 171
172 #if ENABLE(OILPAN) 172 #if ENABLE(OILPAN)
173 virtual void detach() OVERRIDE; 173 virtual void detach() override;
174 #endif 174 #endif
175 175
176 private: 176 private:
177 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*); 177 WebPluginContainerImpl(HTMLPlugInElement*, WebPlugin*);
178 virtual ~WebPluginContainerImpl(); 178 virtual ~WebPluginContainerImpl();
179 179
180 void handleMouseEvent(MouseEvent*); 180 void handleMouseEvent(MouseEvent*);
181 void handleDragEvent(MouseEvent*); 181 void handleDragEvent(MouseEvent*);
182 void handleWheelEvent(WheelEvent*); 182 void handleWheelEvent(WheelEvent*);
183 void handleKeyboardEvent(KeyboardEvent*); 183 void handleKeyboardEvent(KeyboardEvent*);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 }; 231 };
232 232
233 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 233 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
234 // Unlike Widget, we need not worry about object type for container. 234 // Unlike Widget, we need not worry about object type for container.
235 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 235 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
236 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 236 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif 240 #endif
OLDNEW
« no previous file with comments | « Source/web/WebPagePopupImpl.cpp ('k') | Source/web/WebPluginScrollbarImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698