| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_plugin/browser_plugin_guest.h" | 5 #include "content/browser/browser_plugin/browser_plugin_guest.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 807 host->DragTargetDragEnter(drop_data, location, location, mask, 0); | 807 host->DragTargetDragEnter(drop_data, location, location, mask, 0); |
| 808 break; | 808 break; |
| 809 case blink::WebDragStatusOver: | 809 case blink::WebDragStatusOver: |
| 810 host->DragTargetDragOver(location, location, mask, 0); | 810 host->DragTargetDragOver(location, location, mask, 0); |
| 811 break; | 811 break; |
| 812 case blink::WebDragStatusLeave: | 812 case blink::WebDragStatusLeave: |
| 813 embedder->DragLeftGuest(this); | 813 embedder->DragLeftGuest(this); |
| 814 host->DragTargetDragLeave(); | 814 host->DragTargetDragLeave(); |
| 815 break; | 815 break; |
| 816 case blink::WebDragStatusDrop: | 816 case blink::WebDragStatusDrop: |
| 817 host->DragTargetDrop(location, location, 0); | 817 host->DragTargetDrop(drop_data, location, location, 0); |
| 818 if (dragged_url_.is_valid()) { | 818 if (dragged_url_.is_valid()) { |
| 819 delegate_->DidDropLink(dragged_url_); | 819 delegate_->DidDropLink(dragged_url_); |
| 820 dragged_url_ = GURL(); | 820 dragged_url_ = GURL(); |
| 821 } | 821 } |
| 822 break; | 822 break; |
| 823 case blink::WebDragStatusUnknown: | 823 case blink::WebDragStatusUnknown: |
| 824 NOTREACHED(); | 824 NOTREACHED(); |
| 825 } | 825 } |
| 826 last_drag_status_ = drag_status; | 826 last_drag_status_ = drag_status; |
| 827 EndSystemDragIfApplicable(); | 827 EndSystemDragIfApplicable(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 range, character_bounds); | 1003 range, character_bounds); |
| 1004 } | 1004 } |
| 1005 #endif | 1005 #endif |
| 1006 | 1006 |
| 1007 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { | 1007 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { |
| 1008 if (delegate_) | 1008 if (delegate_) |
| 1009 delegate_->SetContextMenuPosition(position); | 1009 delegate_->SetContextMenuPosition(position); |
| 1010 } | 1010 } |
| 1011 | 1011 |
| 1012 } // namespace content | 1012 } // namespace content |
| OLD | NEW |