| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |