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

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.h

Issue 115330: linux: Adding events to windowless plugins on Linux (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('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) 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 CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/common/ipc_channel.h" 14 #include "chrome/common/ipc_channel.h"
15 #include "chrome/common/transport_dib.h" 15 #include "chrome/common/transport_dib.h"
16 #include "third_party/npapi/bindings/npapi.h" 16 #include "third_party/npapi/bindings/npapi.h"
17 17
18 class GURL; 18 class GURL;
19 class PluginChannel; 19 class PluginChannel;
20 class WebPluginProxy; 20 class WebPluginProxy;
21 class WebPluginDelegate; 21 class WebPluginDelegate;
22 struct PluginMsg_Init_Params; 22 struct PluginMsg_Init_Params;
23 struct PluginMsg_DidReceiveResponseParams; 23 struct PluginMsg_DidReceiveResponseParams;
24 struct PluginMsg_URLRequestReply_Params; 24 struct PluginMsg_URLRequestReply_Params;
25 class WebCursor; 25 class WebCursor;
26 26
27 namespace WebKit {
28 class WebInputEvent;
29 }
30
27 // Converts the IPC messages from WebPluginDelegateProxy into calls to the 31 // Converts the IPC messages from WebPluginDelegateProxy into calls to the
28 // actual WebPluginDelegate object. 32 // actual WebPluginDelegate object.
29 class WebPluginDelegateStub : public IPC::Channel::Listener, 33 class WebPluginDelegateStub : public IPC::Channel::Listener,
30 public IPC::Message::Sender, 34 public IPC::Message::Sender,
31 public base::RefCounted<WebPluginDelegateStub> { 35 public base::RefCounted<WebPluginDelegateStub> {
32 public: 36 public:
33 WebPluginDelegateStub(const std::string& mime_type, int instance_id, 37 WebPluginDelegateStub(const std::string& mime_type, int instance_id,
34 PluginChannel* channel); 38 PluginChannel* channel);
35 ~WebPluginDelegateStub(); 39 ~WebPluginDelegateStub();
36 40
(...skipping 13 matching lines...) Expand all
50 void OnWillSendRequest(int id, const GURL& url); 54 void OnWillSendRequest(int id, const GURL& url);
51 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params, 55 void OnDidReceiveResponse(const PluginMsg_DidReceiveResponseParams& params,
52 bool* cancel); 56 bool* cancel);
53 void OnDidReceiveData(int id, const std::vector<char>& buffer, 57 void OnDidReceiveData(int id, const std::vector<char>& buffer,
54 int data_offset); 58 int data_offset);
55 void OnDidFinishLoading(int id); 59 void OnDidFinishLoading(int id);
56 void OnDidFail(int id); 60 void OnDidFail(int id);
57 61
58 void OnDidFinishLoadWithReason(int reason); 62 void OnDidFinishLoadWithReason(int reason);
59 void OnSetFocus(); 63 void OnSetFocus();
60 void OnHandleEvent(const NPEvent& event, bool* handled, 64 void OnHandleInputEvent(const WebKit::WebInputEvent* event,
61 WebCursor* cursor); 65 bool* handled, WebCursor* cursor);
62 66
63 void OnPaint(const gfx::Rect& damaged_rect); 67 void OnPaint(const gfx::Rect& damaged_rect);
64 void OnDidPaint(); 68 void OnDidPaint();
65 69
66 void OnPrint(base::SharedMemoryHandle* shared_memory, size_t* size); 70 void OnPrint(base::SharedMemoryHandle* shared_memory, size_t* size);
67 71
68 void OnUpdateGeometry(const gfx::Rect& window_rect, 72 void OnUpdateGeometry(const gfx::Rect& window_rect,
69 const gfx::Rect& clip_rect, 73 const gfx::Rect& clip_rect,
70 const TransportDIB::Id& windowless_buffer, 74 const TransportDIB::Id& windowless_buffer,
71 const TransportDIB::Id& background_buffer); 75 const TransportDIB::Id& background_buffer);
(...skipping 26 matching lines...) Expand all
98 102
99 scoped_refptr<PluginChannel> channel_; 103 scoped_refptr<PluginChannel> channel_;
100 104
101 WebPluginDelegate* delegate_; 105 WebPluginDelegate* delegate_;
102 WebPluginProxy* webplugin_; 106 WebPluginProxy* webplugin_;
103 107
104 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); 108 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
105 }; 109 };
106 110
107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 111 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW
« no previous file with comments | « chrome/common/webkit_param_traits.h ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698