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

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.h

Issue 6901036: Update VideoDecode PPAPI structs to be consistent with media structures, part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few other little clean-up stuff Created 9 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
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_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
7 7
8 #include "webkit/plugins/ppapi/plugin_delegate.h" 8 #include "webkit/plugins/ppapi/plugin_delegate.h"
9 9
10 namespace webkit { 10 namespace webkit {
11 namespace ppapi { 11 namespace ppapi {
12 12
13 class MockPluginDelegate : public PluginDelegate { 13 class MockPluginDelegate : public PluginDelegate {
14 public: 14 public:
15 MockPluginDelegate(); 15 MockPluginDelegate();
16 ~MockPluginDelegate(); 16 ~MockPluginDelegate();
17 17
18 virtual void PluginCrashed(PluginInstance* instance); 18 virtual void PluginCrashed(PluginInstance* instance);
19 virtual void InstanceCreated(PluginInstance* instance); 19 virtual void InstanceCreated(PluginInstance* instance);
20 virtual void InstanceDeleted(PluginInstance* instance); 20 virtual void InstanceDeleted(PluginInstance* instance);
21 virtual SkBitmap* GetSadPluginBitmap(); 21 virtual SkBitmap* GetSadPluginBitmap();
22 virtual PlatformImage2D* CreateImage2D(int width, int height); 22 virtual PlatformImage2D* CreateImage2D(int width, int height);
23 virtual PlatformContext3D* CreateContext3D(); 23 virtual PlatformContext3D* CreateContext3D();
24 virtual PlatformVideoDecoder* CreateVideoDecoder( 24 virtual PlatformVideoDecoder* CreateVideoDecoder(
25 PP_VideoDecoderConfig_Dev* decoder_config); 25 PP_VideoConfigElement* decoder_config);
26 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, 26 virtual PlatformAudio* CreateAudio(uint32_t sample_rate,
27 uint32_t sample_count, 27 uint32_t sample_count,
28 PlatformAudio::Client* client); 28 PlatformAudio::Client* client);
29 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client); 29 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client);
30 virtual void NumberOfFindResultsChanged(int identifier, 30 virtual void NumberOfFindResultsChanged(int identifier,
31 int total, 31 int total,
32 bool final_result); 32 bool final_result);
33 virtual void SelectedFindResultChanged(int identifier, int index); 33 virtual void SelectedFindResultChanged(int identifier, int index);
34 virtual bool RunFileChooser( 34 virtual bool RunFileChooser(
35 const WebKit::WebFileChooserParams& params, 35 const WebKit::WebFileChooserParams& params,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 virtual void SaveURLAs(const GURL& url); 102 virtual void SaveURLAs(const GURL& url);
103 virtual P2PSocketDispatcher* GetP2PSocketDispatcher(); 103 virtual P2PSocketDispatcher* GetP2PSocketDispatcher();
104 virtual webkit_glue::P2PTransport* CreateP2PTransport(); 104 virtual webkit_glue::P2PTransport* CreateP2PTransport();
105 virtual double GetLocalTimeZoneOffset(base::Time t); 105 virtual double GetLocalTimeZoneOffset(base::Time t);
106 }; 106 };
107 107
108 } // namespace ppapi 108 } // namespace ppapi
109 } // namespace webkit 109 } // namespace webkit
110 110
111 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ 111 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698