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

Side by Side Diff: content/renderer/pepper/pepper_plugin_delegate_impl.h

Issue 9212066: Modified the flash cipboard interface to add html clipboard support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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 | « no previous file | content/renderer/pepper/pepper_plugin_delegate_impl.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // Pointer to the associated plugin module. 119 // Pointer to the associated plugin module.
120 // Always set and cleared at the same time as the module's pointer to this. 120 // Always set and cleared at the same time as the module's pointer to this.
121 webkit::ppapi::PluginModule* plugin_module_; 121 webkit::ppapi::PluginModule* plugin_module_;
122 122
123 base::WeakPtr<PepperPluginDelegateImpl> delegate_; 123 base::WeakPtr<PepperPluginDelegateImpl> delegate_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(PpapiBrokerImpl); 125 DISALLOW_COPY_AND_ASSIGN(PpapiBrokerImpl);
126 }; 126 };
127 127
128 namespace webkit_glue {
129 class ClipboardClient;
130 }
131
128 class PepperPluginDelegateImpl 132 class PepperPluginDelegateImpl
129 : public webkit::ppapi::PluginDelegate, 133 : public webkit::ppapi::PluginDelegate,
130 public base::SupportsWeakPtr<PepperPluginDelegateImpl>, 134 public base::SupportsWeakPtr<PepperPluginDelegateImpl>,
131 public PepperParentContextProvider, 135 public PepperParentContextProvider,
132 public content::RenderViewObserver { 136 public content::RenderViewObserver {
133 public: 137 public:
134 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view); 138 explicit PepperPluginDelegateImpl(RenderViewImpl* render_view);
135 virtual ~PepperPluginDelegateImpl(); 139 virtual ~PepperPluginDelegateImpl();
136 140
137 // Attempts to create a PPAPI plugin for the given filepath. On success, it 141 // Attempts to create a PPAPI plugin for the given filepath. On success, it
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance, 401 virtual void DidChangeCursor(webkit::ppapi::PluginInstance* instance,
398 const WebKit::WebCursorInfo& cursor) OVERRIDE; 402 const WebKit::WebCursorInfo& cursor) OVERRIDE;
399 virtual void DidReceiveMouseEvent( 403 virtual void DidReceiveMouseEvent(
400 webkit::ppapi::PluginInstance* instance) OVERRIDE; 404 webkit::ppapi::PluginInstance* instance) OVERRIDE;
401 virtual bool IsInFullscreenMode() OVERRIDE; 405 virtual bool IsInFullscreenMode() OVERRIDE;
402 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; 406 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE;
403 virtual bool IsPageVisible() const OVERRIDE; 407 virtual bool IsPageVisible() const OVERRIDE;
404 virtual int EnumerateDevices( 408 virtual int EnumerateDevices(
405 PP_DeviceType_Dev type, 409 PP_DeviceType_Dev type,
406 const EnumerateDevicesCallback& callback) OVERRIDE; 410 const EnumerateDevicesCallback& callback) OVERRIDE;
411 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const OVERRIDE;
407 412
408 // RenderViewObserver implementation. 413 // RenderViewObserver implementation.
409 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 414 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
410 virtual void OnDestruct() OVERRIDE; 415 virtual void OnDestruct() OVERRIDE;
411 416
412 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id, 417 void OnTCPSocketConnectACK(uint32 plugin_dispatcher_id,
413 uint32 socket_id, 418 uint32 socket_id,
414 bool succeeded, 419 bool succeeded,
415 const PP_NetAddress_Private& local_addr, 420 const PP_NetAddress_Private& local_addr,
416 const PP_NetAddress_Private& remote_addr); 421 const PP_NetAddress_Private& remote_addr);
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 webkit::ppapi::PluginInstance* last_mouse_event_target_; 531 webkit::ppapi::PluginInstance* last_mouse_event_target_;
527 532
528 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 533 scoped_ptr<content::GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
529 534
530 scoped_ptr<DeviceEnumerationEventHandler> device_enumeration_event_handler_; 535 scoped_ptr<DeviceEnumerationEventHandler> device_enumeration_event_handler_;
531 536
532 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); 537 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl);
533 }; 538 };
534 539
535 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ 540 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_DELEGATE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/pepper/pepper_plugin_delegate_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698