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