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

Side by Side Diff: chrome/renderer/plugins/chrome_plugin_placeholder.cc

Issue 2352393004: [HBD] Plumb the no-fallback placeholder click into the browser process. (Closed)
Patch Set: fix mistype Created 4 years, 2 months 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698