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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 OnFirstVisuallyNonEmptyPaint) | 588 OnFirstVisuallyNonEmptyPaint) |
589 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, | 589 IPC_MESSAGE_HANDLER(ViewHostMsg_DidLoadResourceFromMemoryCache, |
590 OnDidLoadResourceFromMemoryCache) | 590 OnDidLoadResourceFromMemoryCache) |
591 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, | 591 IPC_MESSAGE_HANDLER(ViewHostMsg_DidDisplayInsecureContent, |
592 OnDidDisplayInsecureContent) | 592 OnDidDisplayInsecureContent) |
593 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, | 593 IPC_MESSAGE_HANDLER(ViewHostMsg_DidRunInsecureContent, |
594 OnDidRunInsecureContent) | 594 OnDidRunInsecureContent) |
595 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 595 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
596 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 596 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
597 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 597 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
598 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | |
599 OnRegisterProtocolHandler) | |
600 IPC_MESSAGE_HANDLER(ViewHostMsg_UnregisterProtocolHandler, | |
601 OnUnregisterProtocolHandler) | |
602 IPC_MESSAGE_HANDLER(FrameHostMsg_RegisterProtocolHandler, | 598 IPC_MESSAGE_HANDLER(FrameHostMsg_RegisterProtocolHandler, |
603 OnRegisterProtocolHandler) | 599 OnRegisterProtocolHandler) |
604 IPC_MESSAGE_HANDLER(FrameHostMsg_UnregisterProtocolHandler, | 600 IPC_MESSAGE_HANDLER(FrameHostMsg_UnregisterProtocolHandler, |
605 OnUnregisterProtocolHandler) | 601 OnUnregisterProtocolHandler) |
606 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 602 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
607 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 603 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
608 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 604 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
609 #if defined(ENABLE_PLUGINS) | 605 #if defined(ENABLE_PLUGINS) |
610 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated, | 606 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated, |
611 OnPepperInstanceCreated) | 607 OnPepperInstanceCreated) |
(...skipping 3881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4493 player_map->erase(it); | 4489 player_map->erase(it); |
4494 } | 4490 } |
4495 | 4491 |
4496 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4492 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4497 force_disable_overscroll_content_ = force_disable; | 4493 force_disable_overscroll_content_ = force_disable; |
4498 if (view_) | 4494 if (view_) |
4499 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4495 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4500 } | 4496 } |
4501 | 4497 |
4502 } // namespace content | 4498 } // namespace content |
OLD | NEW |