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

Side by Side Diff: webkit/glue/webplugin_impl.h

Issue 159907: linux: fix windowless Flash when scrolling (Closed)
Patch Set: address review comments Created 11 years, 4 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 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 271
272 // Helper function to remove the stored information about a resource 272 // Helper function to remove the stored information about a resource
273 // request given a handle. 273 // request given a handle.
274 void RemoveClient(WebKit::WebURLLoader* loader); 274 void RemoveClient(WebKit::WebURLLoader* loader);
275 275
276 WebCore::Frame* frame() { return webframe_ ? webframe_->frame() : NULL; } 276 WebCore::Frame* frame() { return webframe_ ? webframe_->frame() : NULL; }
277 277
278 // Calculates the bounds of the plugin widget based on the frame 278 // Calculates the bounds of the plugin widget based on the frame
279 // rect passed in. 279 // rect passed in.
280 void CalculateBounds(const WebCore::IntRect& frame_rect, 280 void CalculateBounds(const WebCore::IntRect& frame_rect,
281 WebCore::IntRect* window_rect, 281 gfx::Rect* window_rect,
282 WebCore::IntRect* clip_rect, 282 gfx::Rect* clip_rect,
283 std::vector<gfx::Rect>* cutout_rects); 283 std::vector<gfx::Rect>* cutout_rects);
284 284
285 void HandleURLRequest(const char *method, 285 void HandleURLRequest(const char *method,
286 bool is_javascript_url, 286 bool is_javascript_url,
287 const char* target, unsigned int len, 287 const char* target, unsigned int len,
288 const char* buf, bool is_file_data, 288 const char* buf, bool is_file_data,
289 bool notify, const char* url, 289 bool notify, const char* url,
290 intptr_t notify_data, bool popups_allowed); 290 intptr_t notify_data, bool popups_allowed);
291 291
292 void CancelDocumentLoad(); 292 void CancelDocumentLoad();
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 360
361 // The plugin source URL. 361 // The plugin source URL.
362 GURL plugin_url_; 362 GURL plugin_url_;
363 363
364 // Indicates if the download would be initiated by the plugin or us. 364 // Indicates if the download would be initiated by the plugin or us.
365 bool load_manually_; 365 bool load_manually_;
366 366
367 // Indicates if this is the first geometry update received by the plugin. 367 // Indicates if this is the first geometry update received by the plugin.
368 bool first_geometry_update_; 368 bool first_geometry_update_;
369 369
370 // The current plugin geometry and clip rectangle.
371 gfx::Rect window_rect_;
372 gfx::Rect clip_rect_;
373
370 // The mime type of the plugin. 374 // The mime type of the plugin.
371 std::string mime_type_; 375 std::string mime_type_;
372 376
373 // Holds the list of argument names passed to the plugin. 377 // Holds the list of argument names passed to the plugin.
374 std::vector<std::string> arg_names_; 378 std::vector<std::string> arg_names_;
375 379
376 // Holds the list of argument values passed to the plugin. 380 // Holds the list of argument values passed to the plugin.
377 std::vector<std::string> arg_values_; 381 std::vector<std::string> arg_values_;
378 382
379 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_; 383 ScopedRunnableMethodFactory<WebPluginImpl> method_factory_;
380 384
381 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl); 385 DISALLOW_COPY_AND_ASSIGN(WebPluginImpl);
382 }; 386 };
383 387
384 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_ 388 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698