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 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, | 663 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateContentRestrictions, |
664 OnUpdateContentRestrictions) | 664 OnUpdateContentRestrictions) |
665 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) | 665 IPC_MESSAGE_HANDLER(ViewHostMsg_GoToEntryAtOffset, OnGoToEntryAtOffset) |
666 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) | 666 IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateZoomLimits, OnUpdateZoomLimits) |
667 IPC_MESSAGE_HANDLER(ViewHostMsg_SaveURLAs, OnSaveURL) | 667 IPC_MESSAGE_HANDLER(ViewHostMsg_SaveURLAs, OnSaveURL) |
668 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) | 668 IPC_MESSAGE_HANDLER(ViewHostMsg_EnumerateDirectory, OnEnumerateDirectory) |
669 IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory) | 669 IPC_MESSAGE_HANDLER(ViewHostMsg_JSOutOfMemory, OnJSOutOfMemory) |
670 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, | 670 IPC_MESSAGE_HANDLER(ViewHostMsg_RegisterProtocolHandler, |
671 OnRegisterProtocolHandler) | 671 OnRegisterProtocolHandler) |
672 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) | 672 IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply) |
| 673 IPC_MESSAGE_HANDLER(ViewHostMsg_DidProgrammaticallyScroll, |
| 674 OnDidProgrammaticallyScroll) |
673 IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin) | 675 IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin) |
674 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) | 676 IPC_MESSAGE_HANDLER(ViewHostMsg_AppCacheAccessed, OnAppCacheAccessed) |
675 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser) | 677 IPC_MESSAGE_HANDLER(ViewHostMsg_OpenColorChooser, OnOpenColorChooser) |
676 IPC_MESSAGE_HANDLER(ViewHostMsg_EndColorChooser, OnEndColorChooser) | 678 IPC_MESSAGE_HANDLER(ViewHostMsg_EndColorChooser, OnEndColorChooser) |
677 IPC_MESSAGE_HANDLER(ViewHostMsg_SetSelectedColorInColorChooser, | 679 IPC_MESSAGE_HANDLER(ViewHostMsg_SetSelectedColorInColorChooser, |
678 OnSetSelectedColorInColorChooser) | 680 OnSetSelectedColorInColorChooser) |
679 IPC_MESSAGE_HANDLER(ViewHostMsg_PepperPluginHung, OnPepperPluginHung) | 681 IPC_MESSAGE_HANDLER(ViewHostMsg_PepperPluginHung, OnPepperPluginHung) |
680 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) | 682 IPC_MESSAGE_HANDLER(ViewHostMsg_WebUISend, OnWebUISend) |
681 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, | 683 IPC_MESSAGE_HANDLER(ViewHostMsg_RequestPpapiBrokerPermission, |
682 OnRequestPpapiBrokerPermission) | 684 OnRequestPpapiBrokerPermission) |
(...skipping 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2266 int number_of_matches, | 2268 int number_of_matches, |
2267 const gfx::Rect& selection_rect, | 2269 const gfx::Rect& selection_rect, |
2268 int active_match_ordinal, | 2270 int active_match_ordinal, |
2269 bool final_update) { | 2271 bool final_update) { |
2270 if (delegate_) { | 2272 if (delegate_) { |
2271 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, | 2273 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, |
2272 active_match_ordinal, final_update); | 2274 active_match_ordinal, final_update); |
2273 } | 2275 } |
2274 } | 2276 } |
2275 | 2277 |
| 2278 void WebContentsImpl::OnDidProgrammaticallyScroll( |
| 2279 const gfx::Point& scroll_point) { |
| 2280 if (delegate_) |
| 2281 delegate_->DidProgrammaticallyScroll(this, scroll_point); |
| 2282 } |
| 2283 |
2276 #if defined(OS_ANDROID) | 2284 #if defined(OS_ANDROID) |
2277 void WebContentsImpl::OnFindMatchRectsReply( | 2285 void WebContentsImpl::OnFindMatchRectsReply( |
2278 int version, | 2286 int version, |
2279 const std::vector<gfx::RectF>& rects, | 2287 const std::vector<gfx::RectF>& rects, |
2280 const gfx::RectF& active_rect) { | 2288 const gfx::RectF& active_rect) { |
2281 if (delegate_) | 2289 if (delegate_) |
2282 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2290 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
2283 } | 2291 } |
2284 | 2292 |
2285 void WebContentsImpl::OnOpenDateTimeDialog( | 2293 void WebContentsImpl::OnOpenDateTimeDialog( |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3435 } | 3443 } |
3436 | 3444 |
3437 BrowserPluginGuestManager* | 3445 BrowserPluginGuestManager* |
3438 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3446 WebContentsImpl::GetBrowserPluginGuestManager() const { |
3439 return static_cast<BrowserPluginGuestManager*>( | 3447 return static_cast<BrowserPluginGuestManager*>( |
3440 GetBrowserContext()->GetUserData( | 3448 GetBrowserContext()->GetUserData( |
3441 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3449 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
3442 } | 3450 } |
3443 | 3451 |
3444 } // namespace content | 3452 } // namespace content |
OLD | NEW |