OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/child/npapi/plugin_instance.h" | 5 #include "content/child/npapi/plugin_instance.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include <ApplicationServices/ApplicationServices.h> | 28 #include <ApplicationServices/ApplicationServices.h> |
29 #endif | 29 #endif |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 | 32 |
33 PluginInstance::PluginInstance(PluginLib* plugin, const std::string& mime_type) | 33 PluginInstance::PluginInstance(PluginLib* plugin, const std::string& mime_type) |
34 : plugin_(plugin), | 34 : plugin_(plugin), |
35 npp_(0), | 35 npp_(0), |
36 host_(PluginHost::Singleton()), | 36 host_(PluginHost::Singleton()), |
37 npp_functions_(plugin->functions()), | 37 npp_functions_(plugin->functions()), |
| 38 window_handle_(0), |
38 transparent_(true), | 39 transparent_(true), |
39 webplugin_(0), | 40 webplugin_(0), |
40 mime_type_(mime_type), | 41 mime_type_(mime_type), |
41 use_mozilla_user_agent_(false), | 42 use_mozilla_user_agent_(false), |
42 #if defined (OS_MACOSX) | 43 #if defined (OS_MACOSX) |
43 #ifdef NP_NO_QUICKDRAW | 44 #ifdef NP_NO_QUICKDRAW |
44 drawing_model_(NPDrawingModelCoreGraphics), | 45 drawing_model_(NPDrawingModelCoreGraphics), |
45 #else | 46 #else |
46 drawing_model_(NPDrawingModelQuickDraw), | 47 drawing_model_(NPDrawingModelQuickDraw), |
47 #endif | 48 #endif |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 if (dest_y) | 420 if (dest_y) |
420 *dest_y = target_y; | 421 *dest_y = target_y; |
421 return true; | 422 return true; |
422 #else | 423 #else |
423 NOTIMPLEMENTED(); | 424 NOTIMPLEMENTED(); |
424 return false; | 425 return false; |
425 #endif | 426 #endif |
426 } | 427 } |
427 | 428 |
428 } // namespace content | 429 } // namespace content |
OLD | NEW |