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_gtk.h" | 5 #include "chrome/default_plugin/plugin_impl_gtk.h" |
6 | 6 |
7 #include <gdk/gdkx.h> | 7 #include <gdk/gdkx.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" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
12 #include "chrome/default_plugin/plugin_main.h" | 12 #include "chrome/default_plugin/plugin_main.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "grit/webkit_strings.h" | 14 #include "grit/webkit_strings.h" |
15 #include "unicode/locid.h" | 15 #include "unicode/locid.h" |
16 #include "webkit/glue/webkit_glue.h" | 16 #include "webkit/glue/webkit_glue.h" |
17 #include "webkit/glue/plugins/default_plugin_shared.h" | 17 #include "webkit/plugins/npapi/default_plugin_shared.h" |
18 | 18 |
19 // TODO(thakis): Most methods in this class are stubbed out an need to be | 19 // TODO(thakis): Most methods in this class are stubbed out an need to be |
20 // implemented. | 20 // implemented. |
21 | 21 |
22 PluginInstallerImpl::PluginInstallerImpl(int16 mode) | 22 PluginInstallerImpl::PluginInstallerImpl(int16 mode) |
23 : instance_(NULL), | 23 : instance_(NULL), |
24 plugin_install_stream_(NULL), | 24 plugin_install_stream_(NULL), |
25 plugin_installer_state_(PluginInstallerStateUndefined), | 25 plugin_installer_state_(PluginInstallerStateUndefined), |
26 container_(NULL) { | 26 container_(NULL) { |
27 } | 27 } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 DisplayAvailablePluginStatus(); | 130 DisplayAvailablePluginStatus(); |
131 } | 131 } |
132 | 132 |
133 void PluginInstallerImpl::ShowInstallDialog() { | 133 void PluginInstallerImpl::ShowInstallDialog() { |
134 } | 134 } |
135 | 135 |
136 void PluginInstallerImpl::NotifyPluginStatus(int status) { | 136 void PluginInstallerImpl::NotifyPluginStatus(int status) { |
137 default_plugin::g_browser->getvalue( | 137 default_plugin::g_browser->getvalue( |
138 instance_, | 138 instance_, |
139 static_cast<NPNVariable>( | 139 static_cast<NPNVariable>( |
140 default_plugin::kMissingPluginStatusStart + status), | 140 webkit::npapi::default_plugin::kMissingPluginStatusStart + status), |
141 NULL); | 141 NULL); |
142 } | 142 } |
OLD | NEW |