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

Side by Side Diff: webkit/glue/plugins/pepper_webplugin_delegate_impl.h

Issue 1697008: New Pepper API implementation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_DELEGATE_IMPL_H_
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_DELEGATE_IMPL_H_
7
8 #include "base/basictypes.h"
9 #include "base/ref_counted.h"
10 #include "gfx/rect.h"
11 #include "webkit/glue/plugins/webplugin_delegate.h"
12
13 namespace pepper {
14
15 class DeviceContext2D;
16 class PluginDelegate;
17 class PluginInstance;
18
19 class WebPluginDelegateImpl : public webkit_glue::WebPluginDelegate {
20 public:
21 virtual ~WebPluginDelegateImpl();
22
23 static WebPluginDelegateImpl* Create(PluginDelegate* delegate,
24 const FilePath& filename);
25
26 // webkit_glue::WebPluginDelegate implementation.
27 virtual bool Initialize(const GURL& url,
28 const std::vector<std::string>& arg_names,
29 const std::vector<std::string>& arg_values,
30 webkit_glue::WebPlugin* plugin,
31 bool load_manually);
32 virtual void PluginDestroyed();
33 virtual void UpdateGeometry(const gfx::Rect& window_rect,
34 const gfx::Rect& clip_rect);
35 virtual void Paint(WebKit::WebCanvas* canvas, const gfx::Rect& rect);
36 virtual void Print(gfx::NativeDrawingContext hdc);
37 virtual void SetFocus(bool focused);
38 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event,
39 WebKit::WebCursorInfo* cursor);
40 virtual NPObject* GetPluginScriptableObject();
41 virtual void DidFinishLoadWithReason(const GURL& url, NPReason reason,
42 int notify_id);
43 virtual int GetProcessId();
44 virtual void SendJavaScriptStream(const GURL& url,
45 const std::string& result,
46 bool success,
47 int notify_id);
48 virtual void DidReceiveManualResponse(const GURL& url,
49 const std::string& mime_type,
50 const std::string& headers,
51 uint32 expected_length,
52 uint32 last_modified);
53 virtual void DidReceiveManualData(const char* buffer, int length);
54 virtual void DidFinishManualLoading();
55 virtual void DidManualLoadFail();
56 virtual void InstallMissingPlugin();
57 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient(
58 unsigned long resource_id,
59 const GURL& url,
60 int notify_id);
61 virtual webkit_glue::WebPluginResourceClient* CreateSeekableResourceClient(
62 unsigned long resource_id, int range_request_id);
63 virtual bool SupportsFind();
64 virtual void StartFind(const std::string& search_text,
65 bool case_sensitive,
66 int identifier);
67 virtual void SelectFindResult(bool forward);
68 virtual void StopFind();
69 virtual void NumberOfFindResultsChanged(int total, bool final_result);
70 virtual void SelectedFindResultChanged(int index);
71 virtual void Zoom(int factor);
72
73 private:
74 WebPluginDelegateImpl(PluginInstance* instance);
75
76 scoped_refptr<PluginInstance> instance_;
77 webkit_glue::WebPlugin* web_plugin_;
78
79 gfx::Rect window_rect_;
80
81 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl);
82 };
83
84 } // namespace
85
86 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_WEBPLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_var.cc ('k') | webkit/glue/plugins/pepper_webplugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698