| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H | |
| 6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H | |
| 7 | |
| 8 #include "webkit/glue/plugins/test/plugin_test.h" | |
| 9 | |
| 10 namespace NPAPIClient { | |
| 11 | |
| 12 // This class contains a list of windowed plugin tests. Please add additional | |
| 13 // tests to this class. | |
| 14 class WindowedPluginTest : public PluginTest { | |
| 15 public: | |
| 16 WindowedPluginTest(NPP id, NPNetscapeFuncs *host_functions); | |
| 17 ~WindowedPluginTest(); | |
| 18 | |
| 19 private: | |
| 20 static LRESULT CALLBACK WindowProc( | |
| 21 HWND window, UINT message, WPARAM wparam, LPARAM lparam); | |
| 22 static void CallJSFunction(WindowedPluginTest*, const char*); | |
| 23 | |
| 24 virtual NPError SetWindow(NPWindow* pNPWindow); | |
| 25 virtual NPError Destroy(); | |
| 26 | |
| 27 HWND window_; | |
| 28 bool done_; | |
| 29 }; | |
| 30 | |
| 31 } // namespace NPAPIClient | |
| 32 | |
| 33 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H | |
| OLD | NEW |