| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 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 | 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_NPAPI_TEST_PLUGIN_CREATE_INSTANCE_IN_PAINT_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_CREATE_INSTANCE_IN_PAINT_H |
| 6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_CREATE_INSTANCE_IN_PAINT_H_ | 6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_CREATE_INSTANCE_IN_PAINT_H |
| 7 | 7 |
| 8 #include "webkit/plugins/npapi/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 tests that creating a new plugin via script while handling a | 12 // This class tests that creating a new plugin via script while handling a |
| 13 // Windows message doesn't cause a deadlock. | 13 // Windows message doesn't cause a deadlock. |
| 14 class CreateInstanceInPaintTest : public PluginTest { | 14 class CreateInstanceInPaintTest : public PluginTest { |
| 15 public: | 15 public: |
| 16 // Constructor. | 16 // Constructor. |
| 17 CreateInstanceInPaintTest(NPP id, NPNetscapeFuncs *host_functions); | 17 CreateInstanceInPaintTest(NPP id, NPNetscapeFuncs *host_functions); |
| 18 // | 18 // |
| 19 // NPAPI functions | 19 // NPAPI functions |
| 20 // | 20 // |
| 21 virtual NPError SetWindow(NPWindow* pNPWindow); | 21 virtual NPError SetWindow(NPWindow* pNPWindow); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 static LRESULT CALLBACK WindowProc( | 24 static LRESULT CALLBACK WindowProc( |
| 25 HWND window, UINT message, WPARAM wparam, LPARAM lparam); | 25 HWND window, UINT message, WPARAM wparam, LPARAM lparam); |
| 26 | 26 |
| 27 HWND window_; | 27 HWND window_; |
| 28 bool created_; | 28 bool created_; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 } // namespace NPAPIClient | 31 } // namespace NPAPIClient |
| 32 | 32 |
| 33 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_CREATE_INSTANCE_IN_PAINT_H_ | 33 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_CREATE_INSTANCE_IN_PAINT_H |
| OLD | NEW |