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

Side by Side Diff: webkit/glue/plugins/test/plugin_javascript_open_popup.cc

Issue 99154: Add the npapi_test_plugin to the Mac build of test_shell (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 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 #include "build/build_config.h" 5 #include "build/build_config.h"
6 #if defined(OS_LINUX) 6 #if defined(OS_LINUX)
7 // HACK: we need this #define in place before npapi.h is included for 7 // HACK: we need this #define in place before npapi.h is included for
8 // plugins to work. However, all sorts of headers include npapi.h, so 8 // plugins to work. However, all sorts of headers include npapi.h, so
9 // the only way to be certain the define is in place is to put it 9 // the only way to be certain the define is in place is to put it
10 // here. You might ask, "Why not set it in npapi.h directly, or in 10 // here. You might ask, "Why not set it in npapi.h directly, or in
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 Status status = XQueryTree(extra->display, xwindow, &root, &parent, 88 Status status = XQueryTree(extra->display, xwindow, &root, &parent,
89 NULL, NULL); // NULL children info. 89 NULL, NULL); // NULL children info.
90 DCHECK(status != 0); 90 DCHECK(status != 0);
91 if (!parent || parent == root) 91 if (!parent || parent == root)
92 SetError("Windowed plugin instantiated with NULL parent"); 92 SetError("Windowed plugin instantiated with NULL parent");
93 return true; 93 return true;
94 } 94 }
95 95
96 return false; 96 return false;
97 } 97 }
98 #elif defined(OS_MACOSX)
99 bool ExecuteJavascriptPopupWindowTargetPluginTest::CheckWindow(
100 NPWindow* window) {
101 // TODO(port) scaffolding--replace with a real test once NPWindow is done.
102 return false;
103 }
98 #endif 104 #endif
99 105
100 } // namespace NPAPIClient 106 } // namespace NPAPIClient
OLDNEW
« no previous file with comments | « no previous file | webkit/tools/test_shell/test_shell.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698