OLD | NEW |
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_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/gfx/rect.h" | 10 #include "base/gfx/rect.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 virtual void PluginDestroyed(); | 52 virtual void PluginDestroyed(); |
53 virtual bool Initialize(const GURL& url, char** argn, char** argv, int argc, | 53 virtual bool Initialize(const GURL& url, char** argn, char** argv, int argc, |
54 WebPlugin* plugin, bool load_manually); | 54 WebPlugin* plugin, bool load_manually); |
55 virtual void UpdateGeometry(const gfx::Rect& window_rect, | 55 virtual void UpdateGeometry(const gfx::Rect& window_rect, |
56 const gfx::Rect& clip_rect); | 56 const gfx::Rect& clip_rect); |
57 virtual void Paint(gfx::NativeDrawingContext context, const gfx::Rect& rect); | 57 virtual void Paint(gfx::NativeDrawingContext context, const gfx::Rect& rect); |
58 virtual void Print(gfx::NativeDrawingContext context); | 58 virtual void Print(gfx::NativeDrawingContext context); |
59 virtual NPObject* GetPluginScriptableObject(); | 59 virtual NPObject* GetPluginScriptableObject(); |
60 virtual void DidFinishLoadWithReason(NPReason reason); | 60 virtual void DidFinishLoadWithReason(NPReason reason); |
61 virtual void SetFocus(); | 61 virtual void SetFocus(); |
62 virtual bool HandleEvent(NPEvent* event, WebCursor* cursor); | 62 virtual bool HandleInputEvent(const WebKit::WebInputEvent& event, |
| 63 WebCursor* cursor); |
63 virtual int GetProcessId(); | 64 virtual int GetProcessId(); |
64 | 65 |
65 // IPC::Channel::Listener implementation: | 66 // IPC::Channel::Listener implementation: |
66 virtual void OnMessageReceived(const IPC::Message& msg); | 67 virtual void OnMessageReceived(const IPC::Message& msg); |
67 void OnChannelError(); | 68 void OnChannelError(); |
68 | 69 |
69 // IPC::Message::Sender implementation: | 70 // IPC::Message::Sender implementation: |
70 virtual bool Send(IPC::Message* msg); | 71 virtual bool Send(IPC::Message* msg); |
71 | 72 |
72 virtual void SendJavaScriptStream(const std::string& url, | 73 virtual void SendJavaScriptStream(const std::string& url, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 scoped_ptr<skia::PlatformCanvas> transport_store_canvas_; | 195 scoped_ptr<skia::PlatformCanvas> transport_store_canvas_; |
195 scoped_ptr<base::SharedMemory> background_store_; | 196 scoped_ptr<base::SharedMemory> background_store_; |
196 scoped_ptr<skia::PlatformCanvas> background_store_canvas_; | 197 scoped_ptr<skia::PlatformCanvas> background_store_canvas_; |
197 // This lets us know which portion of the backing store has been painted into. | 198 // This lets us know which portion of the backing store has been painted into. |
198 gfx::Rect backing_store_painted_; | 199 gfx::Rect backing_store_painted_; |
199 | 200 |
200 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); | 201 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateProxy); |
201 }; | 202 }; |
202 | 203 |
203 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 204 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |