| 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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) | 563 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) |
| 564 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) | 564 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) |
| 565 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, | 565 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, |
| 566 OnSetSelectedColorInColorChooser) | 566 OnSetSelectedColorInColorChooser) |
| 567 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, | 567 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, |
| 568 OnMediaPlayingNotification) | 568 OnMediaPlayingNotification) |
| 569 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, | 569 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, |
| 570 OnMediaPausedNotification) | 570 OnMediaPausedNotification) |
| 571 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFirstVisuallyNonEmptyPaint, | 571 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFirstVisuallyNonEmptyPaint, |
| 572 OnFirstVisuallyNonEmptyPaint) | 572 OnFirstVisuallyNonEmptyPaint) |
| 573 IPC_MESSAGE_HANDLER(FrameHostMsg_WebUIMojoMainRan, OnWebUIMojoMainRan) |
| 573 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, | 574 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, |
| 574 OnDidLoadResourceFromMemoryCache) | 575 OnDidLoadResourceFromMemoryCache) |
| 575 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, | 576 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, |
| 576 OnDidDisplayInsecureContent) | 577 OnDidDisplayInsecureContent) |
| 577 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, | 578 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, |
| 578 OnDidRunInsecureContent) | 579 OnDidRunInsecureContent) |
| 579 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 580 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
| 580 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 581 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
| 581 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 582 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
| 582 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 583 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
| (...skipping 2469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3052 delete power_save_blockers_[render_frame_message_source_][player_cookie]; | 3053 delete power_save_blockers_[render_frame_message_source_][player_cookie]; |
| 3053 power_save_blockers_[render_frame_message_source_].erase(player_cookie); | 3054 power_save_blockers_[render_frame_message_source_].erase(player_cookie); |
| 3054 #endif // !defined(OS_CHROMEOS) | 3055 #endif // !defined(OS_CHROMEOS) |
| 3055 } | 3056 } |
| 3056 | 3057 |
| 3057 void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() { | 3058 void WebContentsImpl::OnFirstVisuallyNonEmptyPaint() { |
| 3058 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3059 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3059 DidFirstVisuallyNonEmptyPaint()); | 3060 DidFirstVisuallyNonEmptyPaint()); |
| 3060 } | 3061 } |
| 3061 | 3062 |
| 3063 void WebContentsImpl::OnWebUIMojoMainRan() { |
| 3064 FOR_EACH_OBSERVER(WebContentsObserver, |
| 3065 observers_, |
| 3066 DidRunWebUIMojoMain()); |
| 3067 } |
| 3068 |
| 3062 void WebContentsImpl::DidChangeVisibleSSLState() { | 3069 void WebContentsImpl::DidChangeVisibleSSLState() { |
| 3063 if (delegate_) | 3070 if (delegate_) |
| 3064 delegate_->VisibleSSLStateChanged(this); | 3071 delegate_->VisibleSSLStateChanged(this); |
| 3065 } | 3072 } |
| 3066 | 3073 |
| 3067 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { | 3074 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { |
| 3068 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3075 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3069 BeforeFormRepostWarningShow()); | 3076 BeforeFormRepostWarningShow()); |
| 3070 } | 3077 } |
| 3071 | 3078 |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4236 if (new_size != old_size) | 4243 if (new_size != old_size) |
| 4237 delegate_->UpdatePreferredSize(this, new_size); | 4244 delegate_->UpdatePreferredSize(this, new_size); |
| 4238 } | 4245 } |
| 4239 | 4246 |
| 4240 void WebContentsImpl::ResumeResponseDeferredAtStart() { | 4247 void WebContentsImpl::ResumeResponseDeferredAtStart() { |
| 4241 FrameTreeNode* node = frame_tree_.root(); | 4248 FrameTreeNode* node = frame_tree_.root(); |
| 4242 node->render_manager()->ResumeResponseDeferredAtStart(); | 4249 node->render_manager()->ResumeResponseDeferredAtStart(); |
| 4243 } | 4250 } |
| 4244 | 4251 |
| 4245 } // namespace content | 4252 } // namespace content |
| OLD | NEW |