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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 6142013: Allow printing/saving a plugin through right click menu, even if it's in a fr... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
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/browser/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 StopHangMonitorTimeout(); 1371 StopHangMonitorTimeout();
1372 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg); 1372 delegate_->ShowModalHTMLDialog(url, width, height, json_arguments, reply_msg);
1373 } 1373 }
1374 1374
1375 void RenderViewHost::MediaPlayerActionAt(const gfx::Point& location, 1375 void RenderViewHost::MediaPlayerActionAt(const gfx::Point& location,
1376 const WebMediaPlayerAction& action) { 1376 const WebMediaPlayerAction& action) {
1377 // TODO(ajwong): Which thread should run this? Does it matter? 1377 // TODO(ajwong): Which thread should run this? Does it matter?
1378 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action)); 1378 Send(new ViewMsg_MediaPlayerActionAt(routing_id(), location, action));
1379 } 1379 }
1380 1380
1381 void RenderViewHost::ContextMenuClosed() {
1382 Send(new ViewMsg_ContextMenuClosed(routing_id()));
1383 }
1384
1385 void RenderViewHost::PrintNodeUnderContextMenu() {
1386 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id()));
1387 }
1388
1381 void RenderViewHost::OnMsgFormsSeen(const std::vector<FormData>& forms) { 1389 void RenderViewHost::OnMsgFormsSeen(const std::vector<FormData>& forms) {
1382 RenderViewHostDelegate::AutoFill* autofill_delegate = 1390 RenderViewHostDelegate::AutoFill* autofill_delegate =
1383 delegate_->GetAutoFillDelegate(); 1391 delegate_->GetAutoFillDelegate();
1384 if (autofill_delegate) 1392 if (autofill_delegate)
1385 autofill_delegate->FormsSeen(forms); 1393 autofill_delegate->FormsSeen(forms);
1386 } 1394 }
1387 1395
1388 void RenderViewHost::OnMsgPasswordFormsFound( 1396 void RenderViewHost::OnMsgPasswordFormsFound(
1389 const std::vector<PasswordForm>& forms) { 1397 const std::vector<PasswordForm>& forms) {
1390 delegate_->PasswordFormsFound(forms); 1398 delegate_->PasswordFormsFound(forms);
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
2180 if (printer_query.get()) { 2188 if (printer_query.get()) {
2181 BrowserThread::PostTask( 2189 BrowserThread::PostTask(
2182 BrowserThread::IO, FROM_HERE, 2190 BrowserThread::IO, FROM_HERE,
2183 NewRunnableMethod(printer_query.get(), 2191 NewRunnableMethod(printer_query.get(),
2184 &printing::PrinterQuery::StopWorker)); 2192 &printing::PrinterQuery::StopWorker));
2185 } 2193 }
2186 2194
2187 // Send the printingDone msg for now. 2195 // Send the printingDone msg for now.
2188 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true)); 2196 Send(new ViewMsg_PrintingDone(routing_id(), params.document_cookie, true));
2189 } 2197 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698