OLD | NEW |
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 Loading... |
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 |
OLD | NEW |