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

Side by Side Diff: chrome/default_plugin/plugin_impl_mac.mm

Issue 8473001: Show missing plug-in infobar only if a plug-in is available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/default_plugin/plugin_impl_gtk.cc ('k') | chrome/default_plugin/plugin_impl_win.cc » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/default_plugin/plugin_impl_mac.h" 5 #include "chrome/default_plugin/plugin_impl_mac.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 instance_ = instance; 51 instance_ = instance;
52 mime_type_ = mime_type; 52 mime_type_ = mime_type;
53 53
54 command_ = [l10n_util::FixUpWindowsStyleLabel(l10n_util::GetStringUTF16( 54 command_ = [l10n_util::FixUpWindowsStyleLabel(l10n_util::GetStringUTF16(
55 IDS_DEFAULT_PLUGIN_NO_PLUGIN_AVAILABLE_MSG)) retain]; 55 IDS_DEFAULT_PLUGIN_NO_PLUGIN_AVAILABLE_MSG)) retain];
56 56
57 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 57 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
58 image_ = rb.GetNativeImageNamed(IDR_PLUGIN_ICON); 58 image_ = rb.GetNativeImageNamed(IDR_PLUGIN_ICON);
59 59
60 return PluginInstallerBase::Initialize(module_handle, instance, mime_type, 60 PluginInstallerBase::SetRoutingIds(argc, argn, argv);
61 argc, argn, argv); 61 return true;
62 } 62 }
63 63
64 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) { 64 bool PluginInstallerImpl::NPP_SetWindow(NPWindow* window_info) {
65 width_ = window_info->width; 65 width_ = window_info->width;
66 height_ = window_info->height; 66 height_ = window_info->height;
67 return true; 67 return true;
68 } 68 }
69 69
70 void PluginInstallerImpl::Shutdown() { 70 void PluginInstallerImpl::Shutdown() {
71 } 71 }
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 } 195 }
196 196
197 void PluginInstallerImpl::NotifyPluginStatus(int status) { 197 void PluginInstallerImpl::NotifyPluginStatus(int status) {
198 ChildThread::current()->Send( 198 ChildThread::current()->Send(
199 new ChromePluginProcessHostMsg_MissingPluginStatus( 199 new ChromePluginProcessHostMsg_MissingPluginStatus(
200 status, 200 status,
201 renderer_process_id(), 201 renderer_process_id(),
202 render_view_id(), 202 render_view_id(),
203 0)); 203 0));
204 } 204 }
OLDNEW
« no previous file with comments | « chrome/default_plugin/plugin_impl_gtk.cc ('k') | chrome/default_plugin/plugin_impl_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698