| 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/web_contents/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 2949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2960 } | 2960 } |
| 2961 | 2961 |
| 2962 void WebContentsImpl::DragSourceEndedAt(int client_x, | 2962 void WebContentsImpl::DragSourceEndedAt(int client_x, |
| 2963 int client_y, | 2963 int client_y, |
| 2964 int screen_x, | 2964 int screen_x, |
| 2965 int screen_y, | 2965 int screen_y, |
| 2966 blink::WebDragOperation operation) { | 2966 blink::WebDragOperation operation) { |
| 2967 if (browser_plugin_embedder_.get()) | 2967 if (browser_plugin_embedder_.get()) |
| 2968 browser_plugin_embedder_->DragSourceEndedAt( | 2968 browser_plugin_embedder_->DragSourceEndedAt( |
| 2969 client_x, client_y, screen_x, screen_y, operation); | 2969 client_x, client_y, screen_x, screen_y, operation); |
| 2970 // TODO(paulmeyer): This will need to target the correct specific RWH to work | |
| 2971 // with OOPIF. | |
| 2972 if (GetRenderViewHost()) | |
| 2973 GetRenderViewHost()->GetWidget()->DragSourceEndedAt( | |
| 2974 client_x, client_y, screen_x, screen_y, operation); | |
| 2975 } | 2970 } |
| 2976 | 2971 |
| 2977 void WebContentsImpl::LoadStateChanged( | 2972 void WebContentsImpl::LoadStateChanged( |
| 2978 const GURL& url, | 2973 const GURL& url, |
| 2979 const net::LoadStateWithParam& load_state, | 2974 const net::LoadStateWithParam& load_state, |
| 2980 uint64_t upload_position, | 2975 uint64_t upload_position, |
| 2981 uint64_t upload_size) { | 2976 uint64_t upload_size) { |
| 2982 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466285 | 2977 // TODO(erikchen): Remove ScopedTracker below once http://crbug.com/466285 |
| 2983 // is fixed. | 2978 // is fixed. |
| 2984 tracked_objects::ScopedTracker tracking_profile1( | 2979 tracked_objects::ScopedTracker tracking_profile1( |
| (...skipping 2242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5227 dialog_manager_ = dialog_manager; | 5222 dialog_manager_ = dialog_manager; |
| 5228 } | 5223 } |
| 5229 | 5224 |
| 5230 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5225 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
| 5231 auto it = binding_sets_.find(interface_name); | 5226 auto it = binding_sets_.find(interface_name); |
| 5232 if (it != binding_sets_.end()) | 5227 if (it != binding_sets_.end()) |
| 5233 binding_sets_.erase(it); | 5228 binding_sets_.erase(it); |
| 5234 } | 5229 } |
| 5235 | 5230 |
| 5236 } // namespace content | 5231 } // namespace content |
| OLD | NEW |