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

Side by Side Diff: content/renderer/render_view.cc

Issue 7055004: File upload API in chromedriver (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed according to the code review Created 9 years, 7 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/renderer/render_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 3348 matching lines...) Expand 10 before | Expand all | Expand 10 after
3359 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation)); 3359 Send(new DragHostMsg_UpdateDragCursor(routing_id_, operation));
3360 } 3360 }
3361 3361
3362 void RenderView::OnDragTargetDragLeave() { 3362 void RenderView::OnDragTargetDragLeave() {
3363 webview()->dragTargetDragLeave(); 3363 webview()->dragTargetDragLeave();
3364 } 3364 }
3365 3365
3366 void RenderView::OnDragTargetDrop(const gfx::Point& client_point, 3366 void RenderView::OnDragTargetDrop(const gfx::Point& client_point,
3367 const gfx::Point& screen_point) { 3367 const gfx::Point& screen_point) {
3368 webview()->dragTargetDrop(client_point, screen_point); 3368 webview()->dragTargetDrop(client_point, screen_point);
3369
3370 Send(new DragHostMsg_TargetDrop(routing_id_));
3369 } 3371 }
3370 3372
3371 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point, 3373 void RenderView::OnDragSourceEndedOrMoved(const gfx::Point& client_point,
3372 const gfx::Point& screen_point, 3374 const gfx::Point& screen_point,
3373 bool ended, 3375 bool ended,
3374 WebDragOperation op) { 3376 WebDragOperation op) {
3375 if (ended) { 3377 if (ended) {
3376 webview()->dragSourceEndedAt(client_point, screen_point, op); 3378 webview()->dragSourceEndedAt(client_point, screen_point, op);
3377 } else { 3379 } else {
3378 webview()->dragSourceMovedTo(client_point, screen_point, op); 3380 webview()->dragSourceMovedTo(client_point, screen_point, op);
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
4192 const webkit_glue::CustomContextMenuContext& custom_context) { 4194 const webkit_glue::CustomContextMenuContext& custom_context) {
4193 if (custom_context.is_pepper_menu) 4195 if (custom_context.is_pepper_menu)
4194 pepper_delegate_.OnContextMenuClosed(custom_context); 4196 pepper_delegate_.OnContextMenuClosed(custom_context);
4195 else 4197 else
4196 context_menu_node_.reset(); 4198 context_menu_node_.reset();
4197 } 4199 }
4198 4200
4199 void RenderView::OnNetworkStateChanged(bool online) { 4201 void RenderView::OnNetworkStateChanged(bool online) {
4200 WebNetworkStateNotifier::setOnLine(online); 4202 WebNetworkStateNotifier::setOnLine(online);
4201 } 4203 }
OLDNEW
« content/common/notification_type.h ('K') | « content/common/notification_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698