| 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 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 host->DragTargetDragEnter(drop_data, location, location, mask, 0); | 806 host->DragTargetDragEnter(drop_data, location, location, mask, 0); |
| 807 break; | 807 break; |
| 808 case blink::WebDragStatusOver: | 808 case blink::WebDragStatusOver: |
| 809 host->DragTargetDragOver(location, location, mask, 0); | 809 host->DragTargetDragOver(location, location, mask, 0); |
| 810 break; | 810 break; |
| 811 case blink::WebDragStatusLeave: | 811 case blink::WebDragStatusLeave: |
| 812 embedder->DragLeftGuest(this); | 812 embedder->DragLeftGuest(this); |
| 813 host->DragTargetDragLeave(); | 813 host->DragTargetDragLeave(); |
| 814 break; | 814 break; |
| 815 case blink::WebDragStatusDrop: | 815 case blink::WebDragStatusDrop: |
| 816 host->DragTargetDrop(location, location, 0); | 816 host->DragTargetDrop(drop_data, location, location, 0); |
| 817 if (dragged_url_.is_valid()) { | 817 if (dragged_url_.is_valid()) { |
| 818 delegate_->DidDropLink(dragged_url_); | 818 delegate_->DidDropLink(dragged_url_); |
| 819 dragged_url_ = GURL(); | 819 dragged_url_ = GURL(); |
| 820 } | 820 } |
| 821 break; | 821 break; |
| 822 case blink::WebDragStatusUnknown: | 822 case blink::WebDragStatusUnknown: |
| 823 NOTREACHED(); | 823 NOTREACHED(); |
| 824 } | 824 } |
| 825 last_drag_status_ = drag_status; | 825 last_drag_status_ = drag_status; |
| 826 EndSystemDragIfApplicable(); | 826 EndSystemDragIfApplicable(); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1002 range, character_bounds); | 1002 range, character_bounds); |
| 1003 } | 1003 } |
| 1004 #endif | 1004 #endif |
| 1005 | 1005 |
| 1006 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { | 1006 void BrowserPluginGuest::SetContextMenuPosition(const gfx::Point& position) { |
| 1007 if (delegate_) | 1007 if (delegate_) |
| 1008 delegate_->SetContextMenuPosition(position); | 1008 delegate_->SetContextMenuPosition(position); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 } // namespace content | 1011 } // namespace content |
| OLD | NEW |