OLD | NEW |
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 "content/browser/renderer_host/render_view_host.h" | 5 #include "content/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 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1252 | 1252 |
1253 void RenderViewHost::ContextMenuClosed( | 1253 void RenderViewHost::ContextMenuClosed( |
1254 const webkit_glue::CustomContextMenuContext& custom_context) { | 1254 const webkit_glue::CustomContextMenuContext& custom_context) { |
1255 Send(new ViewMsg_ContextMenuClosed(routing_id(), custom_context)); | 1255 Send(new ViewMsg_ContextMenuClosed(routing_id(), custom_context)); |
1256 } | 1256 } |
1257 | 1257 |
1258 void RenderViewHost::PrintNodeUnderContextMenu() { | 1258 void RenderViewHost::PrintNodeUnderContextMenu() { |
1259 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id())); | 1259 Send(new ViewMsg_PrintNodeUnderContextMenu(routing_id())); |
1260 } | 1260 } |
1261 | 1261 |
1262 void RenderViewHost::PrintForPrintPreview() { | 1262 void RenderViewHost::PrintForPrintPreview(const DictionaryValue& job_settings) { |
1263 Send(new ViewMsg_PrintForPrintPreview(routing_id())); | 1263 Send(new ViewMsg_PrintForPrintPreview(routing_id(), job_settings)); |
1264 } | 1264 } |
1265 | 1265 |
1266 void RenderViewHost::OnMsgStartDragging( | 1266 void RenderViewHost::OnMsgStartDragging( |
1267 const WebDropData& drop_data, | 1267 const WebDropData& drop_data, |
1268 WebDragOperationsMask drag_operations_mask, | 1268 WebDragOperationsMask drag_operations_mask, |
1269 const SkBitmap& image, | 1269 const SkBitmap& image, |
1270 const gfx::Point& image_offset) { | 1270 const gfx::Point& image_offset) { |
1271 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); | 1271 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); |
1272 if (view) | 1272 if (view) |
1273 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); | 1273 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1703 LOG(DFATAL) << "Invalid checked state " << checked_state; | 1703 LOG(DFATAL) << "Invalid checked state " << checked_state; |
1704 return; | 1704 return; |
1705 } | 1705 } |
1706 | 1706 |
1707 CommandState state; | 1707 CommandState state; |
1708 state.is_enabled = is_enabled; | 1708 state.is_enabled = is_enabled; |
1709 state.checked_state = | 1709 state.checked_state = |
1710 static_cast<RenderViewCommandCheckedState>(checked_state); | 1710 static_cast<RenderViewCommandCheckedState>(checked_state); |
1711 command_states_[static_cast<RenderViewCommand>(command)] = state; | 1711 command_states_[static_cast<RenderViewCommand>(command)] = state; |
1712 } | 1712 } |
OLD | NEW |