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/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
656 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, | 656 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, |
657 OnUpdateContentRestrictions) | 657 OnUpdateContentRestrictions) |
658 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 658 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
659 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 659 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
660 IPC_MESSAGE_HANDLER(ViewHostMsg_SaveURLAs, OnSaveURL) | 660 IPC_MESSAGE_HANDLER(ViewHostMsg_SaveURLAs, OnSaveURL) |
661 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 661 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
662 IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory) | 662 IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory) |
663 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 663 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
664 OnRegisterProtocolHandler) | 664 OnRegisterProtocolHandler) |
665 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 665 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
| 666 IPC_MESSAGE_HANDLER(ViewHostMsg_DidProgrammaticallyScroll, |
| 667 OnDidProgrammaticallyScroll) |
666 IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin) | 668 IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin) |
667 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 669 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
668 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser) | 670 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser) |
669 IPC_MESSAGE_HANDLER(ViewHostMsg_EndColorChooser, OnEndColorChooser) | 671 IPC_MESSAGE_HANDLER(ViewHostMsg_EndColorChooser, OnEndColorChooser) |
670 IPC_MESSAGE_HANDLER(ViewHostMsg_SetSelectedColorInColorChooser, | 672 IPC_MESSAGE_HANDLER(ViewHostMsg_SetSelectedColorInColorChooser, |
671 OnSetSelectedColorInColorChooser) | 673 OnSetSelectedColorInColorChooser) |
672 IPC_MESSAGE_HANDLER(ViewHostMsg_PepperPluginHung, OnPepperPluginHung) | 674 IPC_MESSAGE_HANDLER(ViewHostMsg_PepperPluginHung, OnPepperPluginHung) |
673 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 675 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
674 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, | 676 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, |
675 OnRequestPpapiBrokerPermission) | 677 OnRequestPpapiBrokerPermission) |
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2282 int number_of_matches, | 2284 int number_of_matches, |
2283 const gfx::Rect& selection_rect, | 2285 const gfx::Rect& selection_rect, |
2284 int active_match_ordinal, | 2286 int active_match_ordinal, |
2285 bool final_update) { | 2287 bool final_update) { |
2286 if (delegate_) { | 2288 if (delegate_) { |
2287 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, | 2289 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, |
2288 active_match_ordinal, final_update); | 2290 active_match_ordinal, final_update); |
2289 } | 2291 } |
2290 } | 2292 } |
2291 | 2293 |
| 2294 void WebContentsImpl::OnDidProgrammaticallyScroll( |
| 2295 const gfx::Vector2d& scroll_point) { |
| 2296 if (delegate_) |
| 2297 delegate_->DidProgrammaticallyScroll(this, scroll_point); |
| 2298 } |
| 2299 |
2292 #if defined(OS_ANDROID) | 2300 #if defined(OS_ANDROID) |
2293 void WebContentsImpl::OnFindMatchRectsReply( | 2301 void WebContentsImpl::OnFindMatchRectsReply( |
2294 int version, | 2302 int version, |
2295 const std::vector<gfx::RectF>& rects, | 2303 const std::vector<gfx::RectF>& rects, |
2296 const gfx::RectF& active_rect) { | 2304 const gfx::RectF& active_rect) { |
2297 if (delegate_) | 2305 if (delegate_) |
2298 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2306 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2299 } | 2307 } |
2300 | 2308 |
2301 void WebContentsImpl::OnOpenDateTimeDialog( | 2309 void WebContentsImpl::OnOpenDateTimeDialog( |
(...skipping 1215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3517 } | 3525 } |
3518 | 3526 |
3519 BrowserPluginGuestManager* | 3527 BrowserPluginGuestManager* |
3520 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3528 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3521 return static_cast<BrowserPluginGuestManager*>( | 3529 return static_cast<BrowserPluginGuestManager*>( |
3522 GetBrowserContext()->GetUserData( | 3530 GetBrowserContext()->GetUserData( |
3523 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3531 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3524 } | 3532 } |
3525 | 3533 |
3526 } // namespace content | 3534 } // namespace content |
OLD | NEW |