OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_create_instance_in_paint.h" | 5 #include "webkit/glue/plugins/test/plugin_create_instance_in_paint.h" |
6 | 6 |
7 #include "webkit/plugins/npapi/test/plugin_client.h" | 7 #include "webkit/glue/plugins/test/plugin_client.h" |
8 | 8 |
9 namespace NPAPIClient { | 9 namespace NPAPIClient { |
10 | 10 |
11 CreateInstanceInPaintTest::CreateInstanceInPaintTest( | 11 CreateInstanceInPaintTest::CreateInstanceInPaintTest( |
12 NPP id, NPNetscapeFuncs *host_functions) | 12 NPP id, NPNetscapeFuncs *host_functions) |
13 : PluginTest(id, host_functions), | 13 : PluginTest(id, host_functions), |
14 window_(NULL), created_(false) { | 14 window_(NULL), created_(false) { |
15 } | 15 } |
16 | 16 |
17 NPError CreateInstanceInPaintTest::SetWindow(NPWindow* pNPWindow) { | 17 NPError CreateInstanceInPaintTest::SetWindow(NPWindow* pNPWindow) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 this_instance->HostFunctions()->geturlnotify( | 69 this_instance->HostFunctions()->geturlnotify( |
70 this_instance->id(), "javascript:CreateNewInstance()", NULL, | 70 this_instance->id(), "javascript:CreateNewInstance()", NULL, |
71 reinterpret_cast<void*>(1)); | 71 reinterpret_cast<void*>(1)); |
72 } | 72 } |
73 } | 73 } |
74 | 74 |
75 return DefWindowProc(window, message, wparam, lparam); | 75 return DefWindowProc(window, message, wparam, lparam); |
76 } | 76 } |
77 | 77 |
78 } // namespace NPAPIClient | 78 } // namespace NPAPIClient |
OLD | NEW |