OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "app/l10n_util_mac.h" | 9 #include "app/l10n_util_mac.h" |
10 #include "app/resource_bundle.h" | 10 #include "app/resource_bundle.h" |
11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "chrome/default_plugin/plugin_main.h" | 14 #include "chrome/default_plugin/plugin_main.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "grit/default_plugin_resources.h" | 16 #include "grit/default_plugin_resources.h" |
17 #include "grit/webkit_strings.h" | 17 #include "grit/webkit_strings.h" |
18 #include "unicode/locid.h" | 18 #include "unicode/locid.h" |
19 #include "webkit/glue/webkit_glue.h" | 19 #include "webkit/glue/webkit_glue.h" |
20 #include "webkit/glue/plugins/default_plugin_shared.h" | 20 #include "webkit/plugins/npapi/default_plugin_shared.h" |
21 | 21 |
22 // TODO(thakis): Most methods in this class are stubbed out and need to be | 22 // TODO(thakis): Most methods in this class are stubbed out and need to be |
23 // implemented. | 23 // implemented. |
24 | 24 |
25 PluginInstallerImpl::PluginInstallerImpl(int16 mode) | 25 PluginInstallerImpl::PluginInstallerImpl(int16 mode) |
26 : image_(nil), | 26 : image_(nil), |
27 command_(nil) { | 27 command_(nil) { |
28 } | 28 } |
29 | 29 |
30 PluginInstallerImpl::~PluginInstallerImpl() { | 30 PluginInstallerImpl::~PluginInstallerImpl() { |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 } | 187 } |
188 | 188 |
189 | 189 |
190 void PluginInstallerImpl::ShowInstallDialog() { | 190 void PluginInstallerImpl::ShowInstallDialog() { |
191 } | 191 } |
192 | 192 |
193 void PluginInstallerImpl::NotifyPluginStatus(int status) { | 193 void PluginInstallerImpl::NotifyPluginStatus(int status) { |
194 default_plugin::g_browser->getvalue( | 194 default_plugin::g_browser->getvalue( |
195 instance_, | 195 instance_, |
196 static_cast<NPNVariable>( | 196 static_cast<NPNVariable>( |
197 default_plugin::kMissingPluginStatusStart + status), | 197 webkit::npapi::default_plugin::kMissingPluginStatusStart + status), |
198 NULL); | 198 NULL); |
199 } | 199 } |
OLD | NEW |