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

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: Fixing broken build on Windows Created 9 years, 5 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
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/common/drag_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1041 view->StartDragging(drop_data, drag_operations_mask, image, image_offset); 1042 view->StartDragging(drop_data, drag_operations_mask, image, image_offset);
1042 } 1043 }
1043 } 1044 }
1044 1045
1045 void RenderViewHost::OnUpdateDragCursor(WebDragOperation current_op) { 1046 void RenderViewHost::OnUpdateDragCursor(WebDragOperation current_op) {
1046 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1047 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1047 if (view) 1048 if (view)
1048 view->UpdateDragCursor(current_op); 1049 view->UpdateDragCursor(current_op);
1049 } 1050 }
1050 1051
1052 void RenderViewHost::OnTargetDropACK() {
1053 NotificationService::current()->Notify(
1054 NotificationType::RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK,
1055 Source<RenderViewHost>(this),
1056 NotificationService::NoDetails());
1057 }
1058
1051 void RenderViewHost::OnTakeFocus(bool reverse) { 1059 void RenderViewHost::OnTakeFocus(bool reverse) {
1052 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1060 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1053 if (view) 1061 if (view)
1054 view->TakeFocus(reverse); 1062 view->TakeFocus(reverse);
1055 } 1063 }
1056 1064
1057 void RenderViewHost::OnAddMessageToConsole(int32 level, 1065 void RenderViewHost::OnAddMessageToConsole(int32 level,
1058 const std::wstring& message, 1066 const std::wstring& message,
1059 int32 line_no, 1067 int32 line_no,
1060 const std::wstring& source_id) { 1068 const std::wstring& source_id) {
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1319 if (view) { 1327 if (view) {
1320 view->ShowPopupMenu(params.bounds, 1328 view->ShowPopupMenu(params.bounds,
1321 params.item_height, 1329 params.item_height,
1322 params.item_font_size, 1330 params.item_font_size,
1323 params.selected_item, 1331 params.selected_item,
1324 params.popup_items, 1332 params.popup_items,
1325 params.right_aligned); 1333 params.right_aligned);
1326 } 1334 }
1327 } 1335 }
1328 #endif 1336 #endif
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/common/drag_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698