| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 3210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3221 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3221 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3222 DidChangeThemeColor(theme_color_)); | 3222 DidChangeThemeColor(theme_color_)); |
| 3223 last_sent_theme_color_ = theme_color_; | 3223 last_sent_theme_color_ = theme_color_; |
| 3224 } | 3224 } |
| 3225 } | 3225 } |
| 3226 | 3226 |
| 3227 void WebContentsImpl::DidChangeVisibleSSLState() { | 3227 void WebContentsImpl::DidChangeVisibleSSLState() { |
| 3228 if (delegate_) { | 3228 if (delegate_) { |
| 3229 delegate_->VisibleSSLStateChanged(this); | 3229 delegate_->VisibleSSLStateChanged(this); |
| 3230 | 3230 |
| 3231 content::SecurityStyle security_style = delegate_->GetSecurityStyle(this); | 3231 SecurityStyleExplanation security_style_explanation; |
| 3232 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3232 SecurityStyle security_style = |
| 3233 SecurityStyleChanged(security_style)); | 3233 delegate_->GetSecurityStyle(this, &security_style_explanation); |
| 3234 FOR_EACH_OBSERVER( |
| 3235 WebContentsObserver, observers_, |
| 3236 SecurityStyleChanged(security_style, security_style_explanation)); |
| 3234 } | 3237 } |
| 3235 } | 3238 } |
| 3236 | 3239 |
| 3237 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { | 3240 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { |
| 3238 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3241 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3239 BeforeFormRepostWarningShow()); | 3242 BeforeFormRepostWarningShow()); |
| 3240 } | 3243 } |
| 3241 | 3244 |
| 3242 void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() { | 3245 void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() { |
| 3243 Activate(); | 3246 Activate(); |
| (...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4460 player_map->erase(it); | 4463 player_map->erase(it); |
| 4461 } | 4464 } |
| 4462 | 4465 |
| 4463 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4466 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
| 4464 force_disable_overscroll_content_ = force_disable; | 4467 force_disable_overscroll_content_ = force_disable; |
| 4465 if (view_) | 4468 if (view_) |
| 4466 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4469 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
| 4467 } | 4470 } |
| 4468 | 4471 |
| 4469 } // namespace content | 4472 } // namespace content |
| OLD | NEW |