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