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

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

Issue 1813143002: 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: rebase 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),
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
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
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