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

Side by Side Diff: webkit/plugins/npapi/webplugin_delegate_impl.h

Issue 6823081: Add Skia to CG adapter for plugins. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 8 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 | « content/plugin/webplugin_proxy.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <list> 9 #include <list>
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // WebPluginDelegate implementation 94 // WebPluginDelegate implementation
95 virtual bool Initialize(const GURL& url, 95 virtual bool Initialize(const GURL& url,
96 const std::vector<std::string>& arg_names, 96 const std::vector<std::string>& arg_names,
97 const std::vector<std::string>& arg_values, 97 const std::vector<std::string>& arg_values,
98 WebPlugin* plugin, 98 WebPlugin* plugin,
99 bool load_manually); 99 bool load_manually);
100 virtual void PluginDestroyed(); 100 virtual void PluginDestroyed();
101 virtual void UpdateGeometry(const gfx::Rect& window_rect, 101 virtual void UpdateGeometry(const gfx::Rect& window_rect,
102 const gfx::Rect& clip_rect); 102 const gfx::Rect& clip_rect);
103 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect); 103 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect);
104 #if defined(OS_MACOSX)
105 // FIXME: This is a temporary workaround to allow the Darwin / Skia port to
106 // share code with the Darwin / CG port. Later, this will be removed and
107 // all callers will use the Paint defined above.
108 void CGPaint(CGContextRef context, const gfx::Rect& rect);
stuartmorgan 2011/04/13 15:19:10 This still needs to be moved out of the block of W
_cary 2011/04/13 16:22:43 Done.
109 #endif
104 virtual void Print(gfx::NativeDrawingContext context); 110 virtual void Print(gfx::NativeDrawingContext context);
105 virtual void SetFocus(bool focused); 111 virtual void SetFocus(bool focused);
106 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, 112 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event,
107 WebKit::WebCursorInfo* cursor_info); 113 WebKit::WebCursorInfo* cursor_info);
108 virtual NPObject* GetPluginScriptableObject(); 114 virtual NPObject* GetPluginScriptableObject();
109 virtual void DidFinishLoadWithReason( 115 virtual void DidFinishLoadWithReason(
110 const GURL& url, NPReason reason, int notify_id); 116 const GURL& url, NPReason reason, int notify_id);
111 virtual int GetProcessId(); 117 virtual int GetProcessId();
112 virtual void SendJavaScriptStream(const GURL& url, 118 virtual void SendJavaScriptStream(const GURL& url,
113 const std::string& result, 119 const std::string& result,
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 // True if NPP_New did not return an error. 519 // True if NPP_New did not return an error.
514 bool creation_succeeded_; 520 bool creation_succeeded_;
515 521
516 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); 522 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl);
517 }; 523 };
518 524
519 } // namespace npapi 525 } // namespace npapi
520 } // namespace webkit 526 } // namespace webkit
521 527
522 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ 528 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « content/plugin/webplugin_proxy.cc ('k') | webkit/plugins/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698