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

Side by Side Diff: webkit/plugins/npapi/test/plugin_npobject_lifetime_test.h

Issue 12298002: Make npapi_test_plugin build on Win64 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_NPOBJECT_LIFETIME_TEST_H_ 5 #ifndef WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_
6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ 6 #define WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "webkit/plugins/npapi/test/plugin_test.h" 10 #include "webkit/plugins/npapi/test/plugin_test.h"
(...skipping 13 matching lines...) Expand all
24 virtual NPError SetWindow(NPWindow* pNPWindow) OVERRIDE; 24 virtual NPError SetWindow(NPWindow* pNPWindow) OVERRIDE;
25 25
26 virtual void URLNotify(const char* url, 26 virtual void URLNotify(const char* url,
27 NPReason reason, 27 NPReason reason,
28 void* data) OVERRIDE; 28 void* data) OVERRIDE;
29 29
30 protected: 30 protected:
31 NPObject* other_plugin_instance_object_; 31 NPObject* other_plugin_instance_object_;
32 32
33 #if defined(OS_WIN) 33 #if defined(OS_WIN)
34 static void CALLBACK TimerProc(HWND window, UINT message, UINT timer_id, 34 static void CALLBACK TimerProc(HWND window, UINT message, UINT_PTR timer_id,
35 unsigned long elapsed_milli_seconds); 35 DWORD elapsed_milli_seconds);
36 UINT_PTR timer_id_; 36 UINT_PTR timer_id_;
37 #endif 37 #endif
38 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectLifetimeTest); 38 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectLifetimeTest);
39 }; 39 };
40 40
41 // The NPObjectLifetimeTestInstance2 class represents the plugin instance 41 // The NPObjectLifetimeTestInstance2 class represents the plugin instance
42 // which is deleted by the NPObjectLifeTime class via a javascript function. 42 // which is deleted by the NPObjectLifeTime class via a javascript function.
43 class NPObjectLifetimeTestInstance2 : public PluginTest { 43 class NPObjectLifetimeTestInstance2 : public PluginTest {
44 public: 44 public:
45 // Constructor. 45 // Constructor.
(...skipping 16 matching lines...) Expand all
62 // Constructor. 62 // Constructor.
63 NPObjectDeletePluginInNPN_Evaluate(NPP id, NPNetscapeFuncs *host_functions); 63 NPObjectDeletePluginInNPN_Evaluate(NPP id, NPNetscapeFuncs *host_functions);
64 virtual ~NPObjectDeletePluginInNPN_Evaluate(); 64 virtual ~NPObjectDeletePluginInNPN_Evaluate();
65 65
66 // NPAPI SetWindow handler. 66 // NPAPI SetWindow handler.
67 virtual NPError SetWindow(NPWindow* pNPWindow) OVERRIDE; 67 virtual NPError SetWindow(NPWindow* pNPWindow) OVERRIDE;
68 68
69 protected: 69 protected:
70 NPObject* plugin_instance_object_; 70 NPObject* plugin_instance_object_;
71 #if defined(OS_WIN) 71 #if defined(OS_WIN)
72 static void CALLBACK TimerProc(HWND window, UINT message, UINT timer_id, 72 static void CALLBACK TimerProc(HWND window, UINT message, UINT_PTR timer_id,
73 unsigned long elapsed_milli_seconds); 73 DWORD elapsed_milli_seconds);
74 UINT_PTR timer_id_; 74 UINT_PTR timer_id_;
75 #endif 75 #endif
76 76
77 private: 77 private:
78 static NPObjectDeletePluginInNPN_Evaluate* g_npn_evaluate_test_instance_; 78 static NPObjectDeletePluginInNPN_Evaluate* g_npn_evaluate_test_instance_;
79 79
80 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectDeletePluginInNPN_Evaluate); 80 DISALLOW_IMPLICIT_CONSTRUCTORS(NPObjectDeletePluginInNPN_Evaluate);
81 }; 81 };
82 82
83 } // namespace NPAPIClient 83 } // namespace NPAPIClient
84 84
85 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_ 85 #endif // WEBKIT_PLUGINS_NPAPI_TEST_PLUGIN_NPOBJECT_LIFETIME_TEST_H_
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/test/plugin_geturl_test.cc ('k') | webkit/plugins/npapi/test/plugin_npobject_lifetime_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698