| 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 5125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5136 } | 5136 } |
| 5137 // Notify for UI updates if the state changes. | 5137 // Notify for UI updates if the state changes. |
| 5138 DCHECK(bluetooth_connected_device_count_ != 0); | 5138 DCHECK(bluetooth_connected_device_count_ != 0); |
| 5139 bluetooth_connected_device_count_--; | 5139 bluetooth_connected_device_count_--; |
| 5140 if (bluetooth_connected_device_count_ == 0) { | 5140 if (bluetooth_connected_device_count_ == 0) { |
| 5141 NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB); | 5141 NotifyNavigationStateChanged(INVALIDATE_TYPE_TAB); |
| 5142 } | 5142 } |
| 5143 } | 5143 } |
| 5144 | 5144 |
| 5145 #if defined(OS_ANDROID) | 5145 #if defined(OS_ANDROID) |
| 5146 void WebContentsImpl::OnDidCreateTouchHandle( |
| 5147 ui::TouchHandleDrawable* drawable) { |
| 5148 FOR_EACH_OBSERVER(WebContentsObserver, |
| 5149 observers_, |
| 5150 DidCreateTouchHandle(drawable)); |
| 5151 } |
| 5152 |
| 5146 void WebContentsImpl::NotifyFindMatchRectsReply( | 5153 void WebContentsImpl::NotifyFindMatchRectsReply( |
| 5147 int version, | 5154 int version, |
| 5148 const std::vector<gfx::RectF>& rects, | 5155 const std::vector<gfx::RectF>& rects, |
| 5149 const gfx::RectF& active_rect) { | 5156 const gfx::RectF& active_rect) { |
| 5150 if (delegate_) | 5157 if (delegate_) |
| 5151 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 5158 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
| 5152 } | 5159 } |
| 5153 #endif | 5160 #endif |
| 5154 | 5161 |
| 5155 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 5162 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5206 for (RenderViewHost* render_view_host : render_view_host_set) | 5213 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5207 render_view_host->OnWebkitPreferencesChanged(); | 5214 render_view_host->OnWebkitPreferencesChanged(); |
| 5208 } | 5215 } |
| 5209 | 5216 |
| 5210 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5217 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 5211 JavaScriptDialogManager* dialog_manager) { | 5218 JavaScriptDialogManager* dialog_manager) { |
| 5212 dialog_manager_ = dialog_manager; | 5219 dialog_manager_ = dialog_manager; |
| 5213 } | 5220 } |
| 5214 | 5221 |
| 5215 } // namespace content | 5222 } // namespace content |
| OLD | NEW |