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

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

Issue 149296: Make the cancelling of drag and drop match Safari for Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <vector> 8 #include <vector>
9 9
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 modal_dialog_event_->Reset(); 572 modal_dialog_event_->Reset();
573 573
574 ViewHostMsg_ShowModalHTMLDialog::WriteReplyParams(reply_msg, json_retval); 574 ViewHostMsg_ShowModalHTMLDialog::WriteReplyParams(reply_msg, json_retval);
575 Send(reply_msg); 575 Send(reply_msg);
576 } 576 }
577 577
578 void RenderViewHost::CopyImageAt(int x, int y) { 578 void RenderViewHost::CopyImageAt(int x, int y) {
579 Send(new ViewMsg_CopyImageAt(routing_id(), x, y)); 579 Send(new ViewMsg_CopyImageAt(routing_id(), x, y));
580 } 580 }
581 581
582 void RenderViewHost::DragSourceCancelledAt(
583 int client_x, int client_y, int screen_x, int screen_y) {
584 Send(new ViewMsg_DragSourceEndedOrMoved(
585 routing_id(),
586 gfx::Point(client_x, client_y),
587 gfx::Point(screen_x, screen_y),
588 true, true));
589 }
590
582 void RenderViewHost::DragSourceEndedAt( 591 void RenderViewHost::DragSourceEndedAt(
583 int client_x, int client_y, int screen_x, int screen_y) { 592 int client_x, int client_y, int screen_x, int screen_y) {
584 Send(new ViewMsg_DragSourceEndedOrMoved( 593 Send(new ViewMsg_DragSourceEndedOrMoved(
585 routing_id(), 594 routing_id(),
586 gfx::Point(client_x, client_y), 595 gfx::Point(client_x, client_y),
587 gfx::Point(screen_x, screen_y), 596 gfx::Point(screen_x, screen_y),
588 true)); 597 true, false));
589 } 598 }
590 599
591 void RenderViewHost::DragSourceMovedTo( 600 void RenderViewHost::DragSourceMovedTo(
592 int client_x, int client_y, int screen_x, int screen_y) { 601 int client_x, int client_y, int screen_x, int screen_y) {
593 Send(new ViewMsg_DragSourceEndedOrMoved( 602 Send(new ViewMsg_DragSourceEndedOrMoved(
594 routing_id(), 603 routing_id(),
595 gfx::Point(client_x, client_y), 604 gfx::Point(client_x, client_y),
596 gfx::Point(screen_x, screen_y), 605 gfx::Point(screen_x, screen_y),
597 false)); 606 false, false));
598 } 607 }
599 608
600 void RenderViewHost::DragSourceSystemDragEnded() { 609 void RenderViewHost::DragSourceSystemDragEnded() {
601 Send(new ViewMsg_DragSourceSystemDragEnded(routing_id())); 610 Send(new ViewMsg_DragSourceSystemDragEnded(routing_id()));
602 } 611 }
603 612
604 void RenderViewHost::AllowBindings(int bindings_flags) { 613 void RenderViewHost::AllowBindings(int bindings_flags) {
605 DCHECK(!renderer_initialized_); 614 DCHECK(!renderer_initialized_);
606 enabled_bindings_ |= bindings_flags; 615 enabled_bindings_ |= bindings_flags;
607 } 616 }
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1439 BrowserAccessibilityManager::GetInstance()-> 1448 BrowserAccessibilityManager::GetInstance()->
1440 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id()); 1449 ChangeAccessibilityFocus(acc_obj_id, process()->pid(), routing_id());
1441 #else 1450 #else
1442 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288. 1451 // TODO(port): accessibility not yet implemented. See http://crbug.com/8288.
1443 #endif 1452 #endif
1444 } 1453 }
1445 1454
1446 void RenderViewHost::OnCSSInserted() { 1455 void RenderViewHost::OnCSSInserted() {
1447 delegate_->DidInsertCSS(); 1456 delegate_->DidInsertCSS();
1448 } 1457 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/browser/tab_contents/web_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698