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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 OnDocumentLoadedInFrame) | 609 OnDocumentLoadedInFrame) |
610 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFinishLoad, OnDidFinishLoad) | 610 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFinishLoad, OnDidFinishLoad) |
611 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) | 611 IPC_MESSAGE_HANDLER(FrameHostMsg_OpenColorChooser, OnOpenColorChooser) |
612 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) | 612 IPC_MESSAGE_HANDLER(FrameHostMsg_EndColorChooser, OnEndColorChooser) |
613 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, | 613 IPC_MESSAGE_HANDLER(FrameHostMsg_SetSelectedColorInColorChooser, |
614 OnSetSelectedColorInColorChooser) | 614 OnSetSelectedColorInColorChooser) |
615 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, | 615 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPlayingNotification, |
616 OnMediaPlayingNotification) | 616 OnMediaPlayingNotification) |
617 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, | 617 IPC_MESSAGE_HANDLER(FrameHostMsg_MediaPausedNotification, |
618 OnMediaPausedNotification) | 618 OnMediaPausedNotification) |
619 IPC_MESSAGE_HANDLER(FrameHostMsg_DidFirstVisuallyNonEmptyPaint, | 619 IPC_MESSAGE_HANDLER(ViewHostMsg_DidFirstVisuallyNonEmptyPaint, |
620 OnFirstVisuallyNonEmptyPaint) | 620 OnFirstVisuallyNonEmptyPaint) |
621 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, | 621 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, |
622 OnDidLoadResourceFromMemoryCache) | 622 OnDidLoadResourceFromMemoryCache) |
623 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, | 623 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, |
624 OnDidDisplayInsecureContent) | 624 OnDidDisplayInsecureContent) |
625 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, | 625 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, |
626 OnDidRunInsecureContent) | 626 OnDidRunInsecureContent) |
627 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 627 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
628 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 628 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
629 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 629 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
(...skipping 3979 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4609 player_map->erase(it); | 4609 player_map->erase(it); |
4610 } | 4610 } |
4611 | 4611 |
4612 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4612 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4613 force_disable_overscroll_content_ = force_disable; | 4613 force_disable_overscroll_content_ = force_disable; |
4614 if (view_) | 4614 if (view_) |
4615 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4615 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4616 } | 4616 } |
4617 | 4617 |
4618 } // namespace content | 4618 } // namespace content |
OLD | NEW |