Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Side by Side Diff: content/child/npapi/plugin_instance.cc

Issue 1825253002: Revert of Remove a bunch of NPAPI quirks and related support code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_windowed_plugins
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/npapi/plugin_instance.h ('k') | content/child/npapi/webplugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/child/npapi/plugin_instance.h ('k') | content/child/npapi/webplugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698