| OLD | NEW |
| 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 #include "webkit/plugins/npapi/test/plugin_window_size_test.h" | 5 #include "webkit/glue/plugins/test/plugin_window_size_test.h" |
| 6 #include "webkit/plugins/npapi/test/plugin_client.h" | 6 #include "webkit/glue/plugins/test/plugin_client.h" |
| 7 | 7 |
| 8 namespace NPAPIClient { | 8 namespace NPAPIClient { |
| 9 | 9 |
| 10 PluginWindowSizeTest::PluginWindowSizeTest(NPP id, | 10 PluginWindowSizeTest::PluginWindowSizeTest(NPP id, |
| 11 NPNetscapeFuncs *host_functions) | 11 NPNetscapeFuncs *host_functions) |
| 12 : PluginTest(id, host_functions) { | 12 : PluginTest(id, host_functions) { |
| 13 } | 13 } |
| 14 | 14 |
| 15 NPError PluginWindowSizeTest::SetWindow(NPWindow* pNPWindow) { | 15 NPError PluginWindowSizeTest::SetWindow(NPWindow* pNPWindow) { |
| 16 if (pNPWindow->window == NULL) | 16 if (pNPWindow->window == NULL) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 46 if (origin_from_os.x != pNPWindow->x || origin_from_os.y != pNPWindow->y) | 46 if (origin_from_os.x != pNPWindow->x || origin_from_os.y != pNPWindow->y) |
| 47 SetError("Wrong position passed in to SetWindow! Test failed"); | 47 SetError("Wrong position passed in to SetWindow! Test failed"); |
| 48 | 48 |
| 49 SignalTestCompleted(); | 49 SignalTestCompleted(); |
| 50 } | 50 } |
| 51 | 51 |
| 52 return NPERR_NO_ERROR; | 52 return NPERR_NO_ERROR; |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace NPAPIClient | 55 } // namespace NPAPIClient |
| OLD | NEW |