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

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

Issue 258026: Fix scripting during NPP_Destroy. Note that if the plugin is making a call t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
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_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H 5 #ifndef WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H
6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H 6 #define WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_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 windowed plugin tests. Please add additional 12 // This class contains a list of windowed plugin tests. Please add additional
13 // tests to this class. 13 // tests to this class.
14 class WindowedPluginTest : public PluginTest { 14 class WindowedPluginTest : public PluginTest {
15 public: 15 public:
16 WindowedPluginTest(NPP id, NPNetscapeFuncs *host_functions); 16 WindowedPluginTest(NPP id, NPNetscapeFuncs *host_functions);
17 ~WindowedPluginTest(); 17 ~WindowedPluginTest();
18 virtual NPError SetWindow(NPWindow* pNPWindow);
19 18
20 private: 19 private:
21 static LRESULT CALLBACK WindowProc( 20 static LRESULT CALLBACK WindowProc(
22 HWND window, UINT message, WPARAM wparam, LPARAM lparam); 21 HWND window, UINT message, WPARAM wparam, LPARAM lparam);
23 static void CallJSFunction(WindowedPluginTest*, const char*); 22 static void CallJSFunction(WindowedPluginTest*, const char*);
24 23
24 virtual NPError SetWindow(NPWindow* pNPWindow);
25 virtual NPError Destroy();
26
25 HWND window_; 27 HWND window_;
26 bool done_; 28 bool done_;
27 }; 29 };
28 30
29 } // namespace NPAPIClient 31 } // namespace NPAPIClient
30 32
31 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H 33 #endif // WEBKIT_GLUE_PLUGINS_TEST_PLUGIN_WINDOWED_TEST_H
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698