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

Side by Side Diff: webkit/plugins/npapi/test/npapi_test.cc

Issue 5961004: Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugin... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 // 5 //
6 // npapitest 6 // npapitest
7 // 7 //
8 // This is a NPAPI Plugin Program which is used to test the Browser's NPAPI 8 // This is a NPAPI Plugin Program which is used to test the Browser's NPAPI
9 // host implementation. It is used in conjunction with the npapi_unittest. 9 // host implementation. It is used in conjunction with the npapi_unittest.
10 // 10 //
11 // As a NPAPI Plugin, you can invoke it by creating a web page of the following 11 // As a NPAPI Plugin, you can invoke it by creating a web page of the following
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #if defined(OS_WIN) 46 #if defined(OS_WIN)
47 #include <windows.h> 47 #include <windows.h>
48 #endif 48 #endif
49 49
50 #if defined(__GNUC__) && __GNUC__ >= 4 50 #if defined(__GNUC__) && __GNUC__ >= 4
51 #define EXPORT __attribute__((visibility ("default"))) 51 #define EXPORT __attribute__((visibility ("default")))
52 #else 52 #else
53 #define EXPORT 53 #define EXPORT
54 #endif 54 #endif
55 55
56 #include "webkit/plugins/npapi/test/plugin_client.h" 56 #include "webkit/glue/plugins/test/plugin_client.h"
57 57
58 #if defined(OS_WIN) 58 #if defined(OS_WIN)
59 BOOL API_CALL DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) { 59 BOOL API_CALL DllMain(HINSTANCE hDll, DWORD dwReason, LPVOID lpReserved) {
60 return TRUE; 60 return TRUE;
61 } 61 }
62 #endif 62 #endif
63 63
64 extern "C" { 64 extern "C" {
65 EXPORT NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* pFuncs) { 65 EXPORT NPError API_CALL NP_GetEntryPoints(NPPluginFuncs* pFuncs) {
66 return NPAPIClient::PluginClient::GetEntryPoints(pFuncs); 66 return NPAPIClient::PluginClient::GetEntryPoints(pFuncs);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // greater than the number of plugins. We specify a mimetype here so 113 // greater than the number of plugins. We specify a mimetype here so
114 // this plugin has at least one. 114 // this plugin has at least one.
115 return "application/vnd.npapi-test:npapitest:test npapi"; 115 return "application/vnd.npapi-test:npapitest:test npapi";
116 } 116 }
117 #endif // OS_POSIX 117 #endif // OS_POSIX
118 } // extern "C" 118 } // extern "C"
119 119
120 namespace WebCore { 120 namespace WebCore {
121 const char* currentTextBreakLocaleID() { return "en_us"; } 121 const char* currentTextBreakLocaleID() { return "en_us"; }
122 } 122 }
OLDNEW
« no previous file with comments | « webkit/plugins/npapi/test/npapi_constants.cc ('k') | webkit/plugins/npapi/test/plugin_arguments_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698