OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/plugins/chrome_plugin_placeholder.h" | 5 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 | 218 |
219 return false; | 219 return false; |
220 } | 220 } |
221 | 221 |
222 void ChromePluginPlaceholder::OpenAboutPluginsCallback() { | 222 void ChromePluginPlaceholder::OpenAboutPluginsCallback() { |
223 RenderThread::Get()->Send( | 223 RenderThread::Get()->Send( |
224 new ChromeViewHostMsg_OpenAboutPlugins(routing_id())); | 224 new ChromeViewHostMsg_OpenAboutPlugins(routing_id())); |
225 } | 225 } |
226 | 226 |
227 void ChromePluginPlaceholder::ShowPermissionBubbleCallback() { | 227 void ChromePluginPlaceholder::ShowPermissionBubbleCallback() { |
228 // TODO(tommycli): Show a permission bubble in the browser process. | 228 RenderThread::Get()->Send( |
| 229 new ChromeViewHostMsg_ShowFlashPermissionBubble(routing_id())); |
229 } | 230 } |
230 | 231 |
231 #if defined(ENABLE_PLUGIN_INSTALLATION) | 232 #if defined(ENABLE_PLUGIN_INSTALLATION) |
232 void ChromePluginPlaceholder::OnDidNotFindMissingPlugin() { | 233 void ChromePluginPlaceholder::OnDidNotFindMissingPlugin() { |
233 SetMessage(l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_FOUND)); | 234 SetMessage(l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_FOUND)); |
234 } | 235 } |
235 | 236 |
236 void ChromePluginPlaceholder::OnFoundMissingPlugin( | 237 void ChromePluginPlaceholder::OnFoundMissingPlugin( |
237 const base::string16& plugin_name) { | 238 const base::string16& plugin_name) { |
238 if (status_ == ChromeViewHostMsg_GetPluginInfo_Status::kNotFound) | 239 if (status_ == ChromeViewHostMsg_GetPluginInfo_Status::kNotFound) |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 | 428 |
428 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 429 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
429 switches::kEnablePluginPlaceholderTesting)) { | 430 switches::kEnablePluginPlaceholderTesting)) { |
430 builder.SetMethod<void (ChromePluginPlaceholder::*)()>( | 431 builder.SetMethod<void (ChromePluginPlaceholder::*)()>( |
431 "didFinishIconRepositionForTesting", | 432 "didFinishIconRepositionForTesting", |
432 &ChromePluginPlaceholder::DidFinishIconRepositionForTestingCallback); | 433 &ChromePluginPlaceholder::DidFinishIconRepositionForTestingCallback); |
433 } | 434 } |
434 | 435 |
435 return builder; | 436 return builder; |
436 } | 437 } |
OLD | NEW |