| 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 1605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2288 int number_of_matches, | 2290 int number_of_matches, |
| 2289 const gfx::Rect& selection_rect, | 2291 const gfx::Rect& selection_rect, |
| 2290 int active_match_ordinal, | 2292 int active_match_ordinal, |
| 2291 bool final_update) { | 2293 bool final_update) { |
| 2292 if (delegate_) { | 2294 if (delegate_) { |
| 2293 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, | 2295 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, |
| 2294 active_match_ordinal, final_update); | 2296 active_match_ordinal, final_update); |
| 2295 } | 2297 } |
| 2296 } | 2298 } |
| 2297 | 2299 |
| 2300 void WebContentsImpl::OnDidProgrammaticallyScroll( |
| 2301 const gfx::Vector2d& scroll_point) { |
| 2302 if (delegate_) |
| 2303 delegate_->DidProgrammaticallyScroll(this, scroll_point); |
| 2304 } |
| 2305 |
| 2298 #if defined(OS_ANDROID) | 2306 #if defined(OS_ANDROID) |
| 2299 void WebContentsImpl::OnFindMatchRectsReply( | 2307 void WebContentsImpl::OnFindMatchRectsReply( |
| 2300 int version, | 2308 int version, |
| 2301 const std::vector<gfx::RectF>& rects, | 2309 const std::vector<gfx::RectF>& rects, |
| 2302 const gfx::RectF& active_rect) { | 2310 const gfx::RectF& active_rect) { |
| 2303 if (delegate_) | 2311 if (delegate_) |
| 2304 delegate_->FindMatchRectsReply(this, version, rects, active_rect); | 2312 delegate_->FindMatchRectsReply(this, version, rects, active_rect); |
| 2305 } | 2313 } |
| 2306 | 2314 |
| 2307 void WebContentsImpl::OnOpenDateTimeDialog( | 2315 void WebContentsImpl::OnOpenDateTimeDialog( |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3457 } | 3465 } |
| 3458 | 3466 |
| 3459 BrowserPluginGuestManager* | 3467 BrowserPluginGuestManager* |
| 3460 WebContentsImpl::GetBrowserPluginGuestManager() const { | 3468 WebContentsImpl::GetBrowserPluginGuestManager() const { |
| 3461 return static_cast<BrowserPluginGuestManager*>( | 3469 return static_cast<BrowserPluginGuestManager*>( |
| 3462 GetBrowserContext()->GetUserData( | 3470 GetBrowserContext()->GetUserData( |
| 3463 browser_plugin::kBrowserPluginGuestManagerKeyName)); | 3471 browser_plugin::kBrowserPluginGuestManagerKeyName)); |
| 3464 } | 3472 } |
| 3465 | 3473 |
| 3466 } // namespace content | 3474 } // namespace content |
| OLD | NEW |