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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 598 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
599 OnRegisterProtocolHandler) | 599 OnRegisterProtocolHandler) |
600 IPC_MESSAGE_HANDLER(ViewHostMsg_UnregisterProtocolHandler, | 600 IPC_MESSAGE_HANDLER(ViewHostMsg_UnregisterProtocolHandler, |
601 OnUnregisterProtocolHandler) | 601 OnUnregisterProtocolHandler) |
| 602 IPC_MESSAGE_HANDLER(FrameHostMsg_RegisterProtocolHandler, |
| 603 OnRegisterProtocolHandler) |
| 604 IPC_MESSAGE_HANDLER(FrameHostMsg_UnregisterProtocolHandler, |
| 605 OnUnregisterProtocolHandler) |
602 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 606 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
603 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 607 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
604 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 608 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
605 #if defined(ENABLE_PLUGINS) | 609 #if defined(ENABLE_PLUGINS) |
606 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated, | 610 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceCreated, |
607 OnPepperInstanceCreated) | 611 OnPepperInstanceCreated) |
608 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceDeleted, | 612 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperInstanceDeleted, |
609 OnPepperInstanceDeleted) | 613 OnPepperInstanceDeleted) |
610 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperPluginHung, OnPepperPluginHung) | 614 IPC_MESSAGE_HANDLER(FrameHostMsg_PepperPluginHung, OnPepperPluginHung) |
611 IPC_MESSAGE_HANDLER(FrameHostMsg_PluginCrashed, OnPluginCrashed) | 615 IPC_MESSAGE_HANDLER(FrameHostMsg_PluginCrashed, OnPluginCrashed) |
(...skipping 3877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4489 player_map->erase(it); | 4493 player_map->erase(it); |
4490 } | 4494 } |
4491 | 4495 |
4492 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { | 4496 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { |
4493 force_disable_overscroll_content_ = force_disable; | 4497 force_disable_overscroll_content_ = force_disable; |
4494 if (view_) | 4498 if (view_) |
4495 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); | 4499 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); |
4496 } | 4500 } |
4497 | 4501 |
4498 } // namespace content | 4502 } // namespace content |
OLD | NEW |