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

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: '' 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 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 1259
1260 void RenderViewHost::ContextMenuClosed( 1260 void RenderViewHost::ContextMenuClosed(
1261 const webkit_glue::CustomContextMenuContext& custom_context) { 1261 const webkit_glue::CustomContextMenuContext& custom_context) {
1262 Send(new ViewMsg_ContextMenuClosed(routing_id(), custom_context)); 1262 Send(new ViewMsg_ContextMenuClosed(routing_id(), custom_context));
1263 } 1263 }
1264 1264
1265 void RenderViewHost::PrintNodeUnderContextMenu() { 1265 void RenderViewHost::PrintNodeUnderContextMenu() {
1266 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id())); 1266 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id()));
1267 } 1267 }
1268 1268
1269 void RenderViewHost::PrintForPrintPreview() {
1270 Send(new ViewMsg_PrintForPrintPreview(routing_id()));
1271 }
1272
1269 void RenderViewHost::OnMsgStartDragging( 1273 void RenderViewHost::OnMsgStartDragging(
1270 const WebDropData& drop_data, 1274 const WebDropData& drop_data,
1271 WebDragOperationsMask drag_operations_mask, 1275 WebDragOperationsMask drag_operations_mask,
1272 const SkBitmap& image, 1276 const SkBitmap& image,
1273 const gfx::Point& image_offset) { 1277 const gfx::Point& image_offset) {
1274 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1278 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1275 if (view) 1279 if (view)
1276 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); 1280 view->StartDragging(drop_data, drag_operations_mask, image, image_offset);
1277 } 1281 }
1278 1282
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1715 LOG(DFATAL) << "Invalid checked state " << checked_state; 1719 LOG(DFATAL) << "Invalid checked state " << checked_state;
1716 return; 1720 return;
1717 } 1721 }
1718 1722
1719 CommandState state; 1723 CommandState state;
1720 state.is_enabled = is_enabled; 1724 state.is_enabled = is_enabled;
1721 state.checked_state = 1725 state.checked_state =
1722 static_cast<RenderViewCommandCheckedState>(checked_state); 1726 static_cast<RenderViewCommandCheckedState>(checked_state);
1723 command_states_[static_cast<RenderViewCommand>(command)] = state; 1727 command_states_[static_cast<RenderViewCommand>(command)] = state;
1724 } 1728 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698