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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 power_save_blockers_[render_frame_message_source_].erase(player_cookie); | 2906 power_save_blockers_[render_frame_message_source_].erase(player_cookie); |
2907 #endif // !defined(OS_CHROMEOS) | 2907 #endif // !defined(OS_CHROMEOS) |
2908 } | 2908 } |
2909 | 2909 |
2910 void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() { | 2910 void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() { |
2911 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2911 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2912 DidFirstVisuallyNonEmptyPaint()); | 2912 DidFirstVisuallyNonEmptyPaint()); |
2913 } | 2913 } |
2914 | 2914 |
2915 void WebContentsImpl::DidChangeVisibleSSLState() { | 2915 void WebContentsImpl::DidChangeVisibleSSLState() { |
2916 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2916 if (delegate_) |
2917 DidChangeVisibleSSLState()); | 2917 delegate_->VisibleSSLStateChanged(this); |
2918 } | 2918 } |
2919 | 2919 |
2920 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { | 2920 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { |
2921 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2921 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2922 BeforeFormRepostWarningShow()); | 2922 BeforeFormRepostWarningShow()); |
2923 } | 2923 } |
2924 | 2924 |
2925 | 2925 |
2926 void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() { | 2926 void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() { |
2927 Activate(); | 2927 Activate(); |
(...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4046 | 4046 |
4047 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { | 4047 void WebContentsImpl::OnPreferredSizeChanged(const gfx::Size& old_size) { |
4048 if (!delegate_) | 4048 if (!delegate_) |
4049 return; | 4049 return; |
4050 const gfx::Size new_size = GetPreferredSize(); | 4050 const gfx::Size new_size = GetPreferredSize(); |
4051 if (new_size != old_size) | 4051 if (new_size != old_size) |
4052 delegate_->UpdatePreferredSize(this, new_size); | 4052 delegate_->UpdatePreferredSize(this, new_size); |
4053 } | 4053 } |
4054 | 4054 |
4055 } // namespace content | 4055 } // namespace content |
OLD | NEW |