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

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

Issue 6479004: Print Preview: Hook up the print button to initiate a normal print operation.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add a comment Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 1256
1257 void RenderViewHost::ContextMenuClosed( 1257 void RenderViewHost::ContextMenuClosed(
1258 const webkit_glue::CustomContextMenuContext& custom_context) { 1258 const webkit_glue::CustomContextMenuContext& custom_context) {
1259 Send(new ViewMsg_ContextMenuClosed(routing_id(), custom_context)); 1259 Send(new ViewMsg_ContextMenuClosed(routing_id(), custom_context));
1260 } 1260 }
1261 1261
1262 void RenderViewHost::PrintNodeUnderContextMenu() { 1262 void RenderViewHost::PrintNodeUnderContextMenu() {
1263 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id())); 1263 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id()));
1264 } 1264 }
1265 1265
1266 void RenderViewHost::PrintForPrintPreview() {
1267 Send(new ViewMsg_PrintForPrintPreview(routing_id()));
1268 }
1269
1266 void RenderViewHost::OnMsgStartDragging( 1270 void RenderViewHost::OnMsgStartDragging(
1267 const WebDropData& drop_data, 1271 const WebDropData& drop_data,
1268 WebDragOperationsMask drag_operations_mask, 1272 WebDragOperationsMask drag_operations_mask,
1269 const SkBitmap& image, 1273 const SkBitmap& image,
1270 const gfx::Point& image_offset) { 1274 const gfx::Point& image_offset) {
1271 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1275 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1272 if (view) 1276 if (view)
1273 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); 1277 view->StartDragging(drop_data, drag_operations_mask, image, image_offset);
1274 } 1278 }
1275 1279
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1709 LOG(DFATAL) << "Invalid checked state " << checked_state; 1713 LOG(DFATAL) << "Invalid checked state " << checked_state;
1710 return; 1714 return;
1711 } 1715 }
1712 1716
1713 CommandState state; 1717 CommandState state;
1714 state.is_enabled = is_enabled; 1718 state.is_enabled = is_enabled;
1715 state.checked_state = 1719 state.checked_state =
1716 static_cast<RenderViewCommandCheckedState>(checked_state); 1720 static_cast<RenderViewCommandCheckedState>(checked_state);
1717 command_states_[static_cast<RenderViewCommand>(command)] = state; 1721 command_states_[static_cast<RenderViewCommand>(command)] = state;
1718 } 1722 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/resources/print_preview.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698