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

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

Issue 11146009: Mac Flash: Fix scaling bitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clean up Created 8 years, 2 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 | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppapi_unittest.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) 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_PPAPI_UNITTEST_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPAPI_UNITTEST_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_UNITTEST_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPAPI_UNITTEST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 PluginModule* module() const { return module_.get(); } 31 PluginModule* module() const { return module_.get(); }
32 PluginInstance* instance() const { return instance_.get(); } 32 PluginInstance* instance() const { return instance_.get(); }
33 33
34 // Provides access to the interfaces implemented by the test. The default one 34 // Provides access to the interfaces implemented by the test. The default one
35 // implements PPP_INSTANCE. 35 // implements PPP_INSTANCE.
36 virtual const void* GetMockInterface(const char* interface_name) const; 36 virtual const void* GetMockInterface(const char* interface_name) const;
37 37
38 // Deletes the instance and module to simulate module shutdown. 38 // Deletes the instance and module to simulate module shutdown.
39 void ShutdownModule(); 39 void ShutdownModule();
40 40
41 // Sets the view size of the plugin instance.
42 void SetViewSize(int width, int height, float scale) const;
43
41 protected: 44 protected:
42 virtual MockPluginDelegate* NewPluginDelegate(); 45 virtual MockPluginDelegate* NewPluginDelegate();
43 46
44 private: 47 private:
45 scoped_ptr<MockPluginDelegate> delegate_; 48 scoped_ptr<MockPluginDelegate> delegate_;
46 49
47 // Note: module must be declared first since we want it to get destroyed last. 50 // Note: module must be declared first since we want it to get destroyed last.
48 scoped_refptr<PluginModule> module_; 51 scoped_refptr<PluginModule> module_;
49 scoped_refptr<PluginInstance> instance_; 52 scoped_refptr<PluginInstance> instance_;
50 53
51 // ModuleLifetime implementation. 54 // ModuleLifetime implementation.
52 virtual void PluginModuleDead(PluginModule* dead_module); 55 virtual void PluginModuleDead(PluginModule* dead_module);
53 56
54 DISALLOW_COPY_AND_ASSIGN(PpapiUnittest); 57 DISALLOW_COPY_AND_ASSIGN(PpapiUnittest);
55 }; 58 };
56 59
57 } // namespace ppapi 60 } // namespace ppapi
58 } // namespace webkit 61 } // namespace webkit
59 62
60 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_UNITTEST_H_ 63 #endif // WEBKIT_PLUGINS_PPAPI_PPAPI_UNITTEST_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.cc ('k') | webkit/plugins/ppapi/ppapi_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698