Chromium Code Reviews| 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 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2469 TextInputManager* WebContentsImpl::GetTextInputManager() { | 2469 TextInputManager* WebContentsImpl::GetTextInputManager() { |
| 2470 if (GetOuterWebContents()) | 2470 if (GetOuterWebContents()) |
| 2471 return GetOuterWebContents()->GetTextInputManager(); | 2471 return GetOuterWebContents()->GetTextInputManager(); |
| 2472 | 2472 |
| 2473 if (!text_input_manager_) | 2473 if (!text_input_manager_) |
| 2474 text_input_manager_.reset(new TextInputManager()); | 2474 text_input_manager_.reset(new TextInputManager()); |
| 2475 | 2475 |
| 2476 return text_input_manager_.get(); | 2476 return text_input_manager_.get(); |
| 2477 } | 2477 } |
| 2478 | 2478 |
| 2479 void WebContentsImpl::OnUpdateTextInputState( | |
| 2480 RenderWidgetHostImpl* render_widget_host, | |
| 2481 ui::TextInputType type, | |
| 2482 const std::string& text, | |
| 2483 const std::string& placeholder, | |
| 2484 bool show_ime_if_needed) { | |
| 2485 if (delegate_) | |
|
nyquist
2016/10/05 04:20:56
Nit:
if (!delegate_)
return;
[empty line]
delega
| |
| 2486 delegate_->OnUpdateTextInputState(render_widget_host, type, text, | |
| 2487 placeholder, show_ime_if_needed); | |
| 2488 } | |
| 2489 | |
| 2479 BrowserAccessibilityManager* | 2490 BrowserAccessibilityManager* |
| 2480 WebContentsImpl::GetRootBrowserAccessibilityManager() { | 2491 WebContentsImpl::GetRootBrowserAccessibilityManager() { |
| 2481 RenderFrameHostImpl* rfh = GetMainFrame(); | 2492 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2482 return rfh ? rfh->browser_accessibility_manager() : nullptr; | 2493 return rfh ? rfh->browser_accessibility_manager() : nullptr; |
| 2483 } | 2494 } |
| 2484 | 2495 |
| 2485 BrowserAccessibilityManager* | 2496 BrowserAccessibilityManager* |
| 2486 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { | 2497 WebContentsImpl::GetOrCreateRootBrowserAccessibilityManager() { |
| 2487 RenderFrameHostImpl* rfh = GetMainFrame(); | 2498 RenderFrameHostImpl* rfh = GetMainFrame(); |
| 2488 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; | 2499 return rfh ? rfh->GetOrCreateBrowserAccessibilityManager() : nullptr; |
| (...skipping 2769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5258 dialog_manager_ = dialog_manager; | 5269 dialog_manager_ = dialog_manager; |
| 5259 } | 5270 } |
| 5260 | 5271 |
| 5261 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { | 5272 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { |
| 5262 auto it = binding_sets_.find(interface_name); | 5273 auto it = binding_sets_.find(interface_name); |
| 5263 if (it != binding_sets_.end()) | 5274 if (it != binding_sets_.end()) |
| 5264 binding_sets_.erase(it); | 5275 binding_sets_.erase(it); |
| 5265 } | 5276 } |
| 5266 | 5277 |
| 5267 } // namespace content | 5278 } // namespace content |
| OLD | NEW |