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

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

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Rename & format. Created 3 years, 7 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
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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 bool ExecuteEditCommand(const WebString& name) override; 165 bool ExecuteEditCommand(const WebString& name) override;
166 bool ExecuteEditCommand(const WebString& name, 166 bool ExecuteEditCommand(const WebString& name,
167 const WebString& value) override; 167 const WebString& value) override;
168 168
169 // Resource load events for the plugin's source data: 169 // Resource load events for the plugin's source data:
170 void DidReceiveResponse(const ResourceResponse&) override; 170 void DidReceiveResponse(const ResourceResponse&) override;
171 void DidReceiveData(const char* data, int data_length) override; 171 void DidReceiveData(const char* data, int data_length) override;
172 void DidFinishLoading() override; 172 void DidFinishLoading() override;
173 void DidFailLoading(const ResourceError&) override; 173 void DidFailLoading(const ResourceError&) override;
174 174
175 WebPluginContainerBase* GetWebPluginContainerBase() const override {
176 return const_cast<WebPluginContainerImpl*>(this);
177 }
178
175 DECLARE_VIRTUAL_TRACE(); 179 DECLARE_VIRTUAL_TRACE();
176 void Dispose() override; 180 void Dispose() override;
177 181
178 private: 182 private:
179 // Sets |windowRect| to the content rect of the plugin in screen space. 183 // Sets |windowRect| to the content rect of the plugin in screen space.
180 // Sets |clippedAbsoluteRect| to the visible rect for the plugin, clipped to 184 // Sets |clippedAbsoluteRect| to the visible rect for the plugin, clipped to
181 // the visible screen of the root frame, in local space of the plugin. 185 // the visible screen of the root frame, in local space of the plugin.
182 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but 186 // Sets |unclippedAbsoluteRect| to the visible rect for the plugin (but
183 // without also clipping to the screen), in local space of the plugin. 187 // without also clipping to the screen), in local space of the plugin.
184 void ComputeClipRectsForPlugin( 188 void ComputeClipRectsForPlugin(
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 238 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
235 DEFINE_TYPE_CASTS(WebPluginContainerImpl, 239 DEFINE_TYPE_CASTS(WebPluginContainerImpl,
236 WebPluginContainer, 240 WebPluginContainer,
237 container, 241 container,
238 true, 242 true,
239 true); 243 true);
240 244
241 } // namespace blink 245 } // namespace blink
242 246
243 #endif 247 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698