OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PLUGINS_NPAPI_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H_ |
6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H | 6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H_ |
7 | 7 |
8 #include "webkit/glue/plugins/test/plugin_test.h" | 8 #include "webkit/plugins/npapi/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 | 18 |
19 // These tests run in windowless plugin mode. | 19 // These tests run in windowless plugin mode. |
20 virtual bool IsWindowless() const { return true; } | 20 virtual bool IsWindowless() const { return true; } |
21 | 21 |
22 // NPAPI HandleEvent handler | 22 // NPAPI HandleEvent handler |
23 virtual int16 HandleEvent(void* event); | 23 virtual int16 HandleEvent(void* event); |
24 | 24 |
25 protected: | 25 protected: |
26 NPError ExecuteScript(NPNetscapeFuncs* browser, NPP id, | 26 NPError ExecuteScript(NPNetscapeFuncs* browser, NPP id, |
27 const std::string& script, NPVariant* result); | 27 const std::string& script, NPVariant* result); |
28 void ExecuteScriptDeleteInPaint(NPNetscapeFuncs* browser); | 28 void ExecuteScriptDeleteInPaint(NPNetscapeFuncs* browser); |
29 void MultipleInstanceSyncCalls(NPNetscapeFuncs* browser); | 29 void MultipleInstanceSyncCalls(NPNetscapeFuncs* browser); |
30 void ConvertPoint(NPNetscapeFuncs* browser); | 30 void ConvertPoint(NPNetscapeFuncs* browser); |
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_PLUGINS_NPAPI_TEST_PLUGIN_EXECUTE_SCRIPT_DELETE_TEST_H_ |
OLD | NEW |