| 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), | |
| 39 transparent_(true), | 38 transparent_(true), |
| 40 webplugin_(0), | 39 webplugin_(0), |
| 41 mime_type_(mime_type), | 40 mime_type_(mime_type), |
| 42 use_mozilla_user_agent_(false), | 41 use_mozilla_user_agent_(false), |
| 43 #if defined (OS_MACOSX) | 42 #if defined (OS_MACOSX) |
| 44 #ifdef NP_NO_QUICKDRAW | 43 #ifdef NP_NO_QUICKDRAW |
| 45 drawing_model_(NPDrawingModelCoreGraphics), | 44 drawing_model_(NPDrawingModelCoreGraphics), |
| 46 #else | 45 #else |
| 47 drawing_model_(NPDrawingModelQuickDraw), | 46 drawing_model_(NPDrawingModelQuickDraw), |
| 48 #endif | 47 #endif |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 if (dest_y) | 419 if (dest_y) |
| 421 *dest_y = target_y; | 420 *dest_y = target_y; |
| 422 return true; | 421 return true; |
| 423 #else | 422 #else |
| 424 NOTIMPLEMENTED(); | 423 NOTIMPLEMENTED(); |
| 425 return false; | 424 return false; |
| 426 #endif | 425 #endif |
| 427 } | 426 } |
| 428 | 427 |
| 429 } // namespace content | 428 } // namespace content |
| OLD | NEW |