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

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

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed a compile error. Created 9 years, 6 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 "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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu) 677 IPC_MESSAGE_HANDLER(ViewHostMsg_ContextMenu, OnMsgContextMenu)
678 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL) 678 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenURL, OnMsgOpenURL)
679 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange, 679 IPC_MESSAGE_HANDLER(ViewHostMsg_DidContentsPreferredSizeChange,
680 OnMsgDidContentsPreferredSizeChange) 680 OnMsgDidContentsPreferredSizeChange)
681 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage, 681 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunJavaScriptMessage,
682 OnMsgRunJavaScriptMessage) 682 OnMsgRunJavaScriptMessage)
683 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm, 683 IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_RunBeforeUnloadConfirm,
684 OnMsgRunBeforeUnloadConfirm) 684 OnMsgRunBeforeUnloadConfirm)
685 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnMsgStartDragging) 685 IPC_MESSAGE_HANDLER(DragHostMsg_StartDragging, OnMsgStartDragging)
686 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor) 686 IPC_MESSAGE_HANDLER(DragHostMsg_UpdateDragCursor, OnUpdateDragCursor)
687 IPC_MESSAGE_HANDLER(DragHostMsg_TargetDrop_ACK, OnTargetDropACK)
687 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus) 688 IPC_MESSAGE_HANDLER(ViewHostMsg_TakeFocus, OnTakeFocus)
688 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole) 689 IPC_MESSAGE_HANDLER(ViewHostMsg_AddMessageToConsole, OnAddMessageToConsole)
689 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK) 690 IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK)
690 IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnMsgClosePageACK) 691 IPC_MESSAGE_HANDLER(ViewHostMsg_ClosePage_ACK, OnMsgClosePageACK)
691 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged) 692 IPC_MESSAGE_HANDLER(ViewHostMsg_SelectionChanged, OnMsgSelectionChanged)
692 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityNotifications, 693 IPC_MESSAGE_HANDLER(ViewHostMsg_AccessibilityNotifications,
693 OnAccessibilityNotifications) 694 OnAccessibilityNotifications)
694 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse) 695 IPC_MESSAGE_HANDLER(ViewHostMsg_ScriptEvalResponse, OnScriptEvalResponse)
695 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL) 696 IPC_MESSAGE_HANDLER(ViewHostMsg_DidZoomURL, OnDidZoomURL)
696 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission, 697 IPC_MESSAGE_HANDLER(DesktopNotificationHostMsg_RequestPermission,
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); 1039 view->StartDragging(drop_data, drag_operations_mask, image, image_offset);
1039 } 1040 }
1040 } 1041 }
1041 1042
1042 void RenderViewHost::OnUpdateDragCursor(WebDragOperation current_op) { 1043 void RenderViewHost::OnUpdateDragCursor(WebDragOperation current_op) {
1043 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1044 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1044 if (view) 1045 if (view)
1045 view->UpdateDragCursor(current_op); 1046 view->UpdateDragCursor(current_op);
1046 } 1047 }
1047 1048
1049 void RenderViewHost::OnTargetDropACK() {
1050 NotificationService::current()->Notify(
1051 NotificationType::RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK,
1052 Source<RenderViewHost>(this),
1053 NotificationService::NoDetails());
1054 }
1055
1048 void RenderViewHost::OnTakeFocus(bool reverse) { 1056 void RenderViewHost::OnTakeFocus(bool reverse) {
1049 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1057 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1050 if (view) 1058 if (view)
1051 view->TakeFocus(reverse); 1059 view->TakeFocus(reverse);
1052 } 1060 }
1053 1061
1054 void RenderViewHost::OnAddMessageToConsole(int32 level, 1062 void RenderViewHost::OnAddMessageToConsole(int32 level,
1055 const std::wstring& message, 1063 const std::wstring& message,
1056 int32 line_no, 1064 int32 line_no,
1057 const std::wstring& source_id) { 1065 const std::wstring& source_id) {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 if (view) { 1324 if (view) {
1317 view->ShowPopupMenu(params.bounds, 1325 view->ShowPopupMenu(params.bounds,
1318 params.item_height, 1326 params.item_height,
1319 params.item_font_size, 1327 params.item_font_size,
1320 params.selected_item, 1328 params.selected_item,
1321 params.popup_items, 1329 params.popup_items,
1322 params.right_aligned); 1330 params.right_aligned);
1323 } 1331 }
1324 } 1332 }
1325 #endif 1333 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698