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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2503563002: Drag-and-drop: updateDragCursor (Closed)
Patch Set: Addressed comments by nick@. Created 4 years, 1 month 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
OLDNEW
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 2470 matching lines...) Expand 10 before | Expand all | Expand 10 after
2481 TextInputManager* WebContentsImpl::GetTextInputManager() { 2481 TextInputManager* WebContentsImpl::GetTextInputManager() {
2482 if (GetOuterWebContents()) 2482 if (GetOuterWebContents())
2483 return GetOuterWebContents()->GetTextInputManager(); 2483 return GetOuterWebContents()->GetTextInputManager();
2484 2484
2485 if (!text_input_manager_) 2485 if (!text_input_manager_)
2486 text_input_manager_.reset(new TextInputManager()); 2486 text_input_manager_.reset(new TextInputManager());
2487 2487
2488 return text_input_manager_.get(); 2488 return text_input_manager_.get();
2489 } 2489 }
2490 2490
2491 bool WebContentsImpl::OnUpdateDragCursor() {
2492 if (browser_plugin_embedder_)
2493 return browser_plugin_embedder_->OnUpdateDragCursor();
2494 return false;
2495 }
2496
2491 BrowserAccessibilityManager* 2497 BrowserAccessibilityManager*
2492 WebContentsImpl::GetRootBrowserAccessibilityManager() { 2498 WebContentsImpl::GetRootBrowserAccessibilityManager() {
2493 RenderFrameHostImpl* rfh = GetMainFrame(); 2499 RenderFrameHostImpl* rfh = GetMainFrame();
2494 return rfh ? rfh->browser_accessibility_manager() : nullptr; 2500 return rfh ? rfh->browser_accessibility_manager() : nullptr;
2495 } 2501 }
2496 2502
2497 BrowserAccessibilityManager* 2503 BrowserAccessibilityManager*
2498 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { 2504 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() {
2499 RenderFrameHostImpl* rfh = GetMainFrame(); 2505 RenderFrameHostImpl* rfh = GetMainFrame();
2500 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; 2506 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr;
(...skipping 2713 matching lines...) Expand 10 before | Expand all | Expand 10 after
5214 dialog_manager_ = dialog_manager; 5220 dialog_manager_ = dialog_manager;
5215 } 5221 }
5216 5222
5217 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5223 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5218 auto it = binding_sets_.find(interface_name); 5224 auto it = binding_sets_.find(interface_name);
5219 if (it != binding_sets_.end()) 5225 if (it != binding_sets_.end())
5220 binding_sets_.erase(it); 5226 binding_sets_.erase(it);
5221 } 5227 }
5222 5228
5223 } // namespace content 5229 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698