| 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 813 host->DragTargetDragEnter(drop_data, location, location, mask, 0); | 813 host->DragTargetDragEnter(drop_data, location, location, mask, 0); |
| 814 break; | 814 break; |
| 815 case blink::WebDragStatusOver: | 815 case blink::WebDragStatusOver: |
| 816 host->DragTargetDragOver(location, location, mask, 0); | 816 host->DragTargetDragOver(location, location, mask, 0); |
| 817 break; | 817 break; |
| 818 case blink::WebDragStatusLeave: | 818 case blink::WebDragStatusLeave: |
| 819 embedder->DragLeftGuest(this); | 819 embedder->DragLeftGuest(this); |
| 820 host->DragTargetDragLeave(); | 820 host->DragTargetDragLeave(); |
| 821 break; | 821 break; |
| 822 case blink::WebDragStatusDrop: | 822 case blink::WebDragStatusDrop: |
| 823 host->DragTargetDrop(location, location, 0); | 823 host->DragTargetDrop(DropData(), location, location, 0); |
| 824 if (dragged_url_.is_valid()) { | 824 if (dragged_url_.is_valid()) { |
| 825 delegate_->DidDropLink(dragged_url_); | 825 delegate_->DidDropLink(dragged_url_); |
| 826 dragged_url_ = GURL(); | 826 dragged_url_ = GURL(); |
| 827 } | 827 } |
| 828 break; | 828 break; |
| 829 case blink::WebDragStatusUnknown: | 829 case blink::WebDragStatusUnknown: |
| 830 NOTREACHED(); | 830 NOTREACHED(); |
| 831 } | 831 } |
| 832 last_drag_status_ = drag_status; | 832 last_drag_status_ = drag_status; |
| 833 EndSystemDragIfApplicable(); | 833 EndSystemDragIfApplicable(); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 range, character_bounds); | 1013 range, character_bounds); |
| 1014 } | 1014 } |
| 1015 #endif | 1015 #endif |
| 1016 | 1016 |
| 1017 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { | 1017 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { |
| 1018 if (delegate_) | 1018 if (delegate_) |
| 1019 delegate_->SetContextMenuPosition(position); | 1019 delegate_->SetContextMenuPosition(position); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 } // namespace content | 1022 } // namespace content |
| OLD | NEW |