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

Side by Side Diff: Source/testing/runner/TestPlugin.h

Issue 23440025: TestRunner library classes should be marked as NonCopyable. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« no previous file with comments | « Source/testing/runner/TestInterfaces.h ('k') | Source/testing/runner/WebPermissions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef TestPlugin_h 26 #ifndef TestPlugin_h
27 #define TestPlugin_h 27 #define TestPlugin_h
28 28
29 #include "public/platform/WebExternalTextureLayer.h" 29 #include "public/platform/WebExternalTextureLayer.h"
30 #include "public/platform/WebExternalTextureLayerClient.h" 30 #include "public/platform/WebExternalTextureLayerClient.h"
31 #include "public/platform/WebExternalTextureMailbox.h" 31 #include "public/platform/WebExternalTextureMailbox.h"
32 #include "public/platform/WebNonCopyable.h"
32 #include "public/web/WebPlugin.h" 33 #include "public/web/WebPlugin.h"
33 #include "public/web/WebPluginContainer.h" 34 #include "public/web/WebPluginContainer.h"
34 #include <memory> 35 #include <memory>
35 #include <string> 36 #include <string>
36 37
37 namespace WebTestRunner { 38 namespace WebTestRunner {
38 39
39 class WebTestDelegate; 40 class WebTestDelegate;
40 41
41 // A fake implemention of WebKit::WebPlugin for testing purposes. 42 // A fake implemention of WebKit::WebPlugin for testing purposes.
42 // 43 //
43 // It uses WebGraphicsContext3D to paint a scene consisiting of a primitive 44 // It uses WebGraphicsContext3D to paint a scene consisiting of a primitive
44 // over a background. The primitive and background can be customized using 45 // over a background. The primitive and background can be customized using
45 // the following plugin parameters: 46 // the following plugin parameters:
46 // primitive: none (default), triangle. 47 // primitive: none (default), triangle.
47 // background-color: black (default), red, green, blue. 48 // background-color: black (default), red, green, blue.
48 // primitive-color: black (default), red, green, blue. 49 // primitive-color: black (default), red, green, blue.
49 // opacity: [0.0 - 1.0]. Default is 1.0. 50 // opacity: [0.0 - 1.0]. Default is 1.0.
50 // 51 //
51 // Whether the plugin accepts touch events or not can be customized using the 52 // Whether the plugin accepts touch events or not can be customized using the
52 // 'accepts-touch' plugin parameter (defaults to false). 53 // 'accepts-touch' plugin parameter (defaults to false).
53 class TestPlugin : public WebKit::WebPlugin, public WebKit::WebExternalTextureLa yerClient { 54 class TestPlugin : public WebKit::WebPlugin, public WebKit::WebExternalTextureLa yerClient, public WebKit::WebNonCopyable {
54 public: 55 public:
55 static TestPlugin* create(WebKit::WebFrame*, const WebKit::WebPluginParams&, WebTestDelegate*); 56 static TestPlugin* create(WebKit::WebFrame*, const WebKit::WebPluginParams&, WebTestDelegate*);
56 virtual ~TestPlugin(); 57 virtual ~TestPlugin();
57 58
58 static const WebKit::WebString& mimeType(); 59 static const WebKit::WebString& mimeType();
59 60
60 // WebPlugin methods: 61 // WebPlugin methods:
61 virtual bool initialize(WebKit::WebPluginContainer*); 62 virtual bool initialize(WebKit::WebPluginContainer*);
62 virtual void destroy(); 63 virtual void destroy();
63 virtual NPObject* scriptableObject() { return 0; } 64 virtual NPObject* scriptableObject() { return 0; }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // Requests touch events from the WebPluginContainerImpl multiple times to t ickle webkit.org/b/108381 148 // Requests touch events from the WebPluginContainerImpl multiple times to t ickle webkit.org/b/108381
148 bool m_reRequestTouchEvents; 149 bool m_reRequestTouchEvents;
149 bool m_printEventDetails; 150 bool m_printEventDetails;
150 bool m_printUserGestureStatus; 151 bool m_printUserGestureStatus;
151 bool m_canProcessDrag; 152 bool m_canProcessDrag;
152 }; 153 };
153 154
154 } 155 }
155 156
156 #endif // TestPlugin_h 157 #endif // TestPlugin_h
OLDNEW
« no previous file with comments | « Source/testing/runner/TestInterfaces.h ('k') | Source/testing/runner/WebPermissions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698