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

Side by Side Diff: webkit/glue/plugins/test/plugin_windowless_test.h

Issue 1073003: Added a test for pepper3d. It ensures that we can successfully load a pepper ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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) 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 WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H 5 #ifndef WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H
6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H 6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H
7 7
8 #include "webkit/glue/plugins/test/plugin_test.h" 8 #include "webkit/glue/plugins/test/plugin_test.h"
9 9
10 namespace NPAPIClient { 10 namespace NPAPIClient {
11 11
12 // This class contains a list of windowless plugin tests. Please add additional 12 // This class contains a list of windowless plugin tests. Please add additional
13 // tests to this class. 13 // tests to this class.
14 class WindowlessPluginTest : public PluginTest { 14 class WindowlessPluginTest : public PluginTest {
15 public: 15 public:
16 // Constructor. 16 // Constructor.
17 WindowlessPluginTest(NPP id, NPNetscapeFuncs *host_functions, 17 WindowlessPluginTest(NPP id, NPNetscapeFuncs *host_functions);
18 const std::string& test_name); 18
19 // These tests run in windowless plugin mode.
20 virtual bool IsWindowless() const { return true; }
21
19 // NPAPI HandleEvent handler 22 // NPAPI HandleEvent handler
20 virtual int16 HandleEvent(void* event); 23 virtual int16 HandleEvent(void* event);
21 24
22 protected: 25 protected:
23 NPError ExecuteScript(NPNetscapeFuncs* browser, NPP id, 26 NPError ExecuteScript(NPNetscapeFuncs* browser, NPP id,
24 const std::string& script, NPVariant* result); 27 const std::string& script, NPVariant* result);
25 void ExecuteScriptDeleteInPaint(NPNetscapeFuncs* browser); 28 void ExecuteScriptDeleteInPaint(NPNetscapeFuncs* browser);
26 void MultipleInstanceSyncCalls(NPNetscapeFuncs* browser); 29 void MultipleInstanceSyncCalls(NPNetscapeFuncs* browser);
27 void ConvertPoint(NPNetscapeFuncs* browser); 30 void ConvertPoint(NPNetscapeFuncs* browser);
28
29 private:
30 std::string test_name_;
31 }; 31 };
32 32
33 } // namespace NPAPIClient 33 } // namespace NPAPIClient
34 34
35 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H 35 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H
OLDNEW
« no previous file with comments | « webkit/glue/plugins/test/plugin_windowed_test.cc ('k') | webkit/glue/plugins/test/plugin_windowless_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698