Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 14139013: Hide location bar on Javascript-initiated scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync, merge, address style nits. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after
2287 int number_of_matches, 2289 int number_of_matches,
2288 const gfx::Rect& selection_rect, 2290 const gfx::Rect& selection_rect,
2289 int active_match_ordinal, 2291 int active_match_ordinal,
2290 bool final_update) { 2292 bool final_update) {
2291 if (delegate_) { 2293 if (delegate_) {
2292 delegate_->FindReply(this, request_id, number_of_matches, selection_rect, 2294 delegate_->FindReply(this, request_id, number_of_matches, selection_rect,
2293 active_match_ordinal, final_update); 2295 active_match_ordinal, final_update);
2294 } 2296 }
2295 } 2297 }
2296 2298
2299 void WebContentsImpl::OnDidProgrammaticallyScroll(
2300 const gfx::Vector2d& scroll_point) {
2301 if (delegate_)
2302 delegate_->DidProgrammaticallyScroll(this, scroll_point);
2303 }
2304
2297 #if defined(OS_ANDROID) 2305 #if defined(OS_ANDROID)
2298 void WebContentsImpl::OnFindMatchRectsReply( 2306 void WebContentsImpl::OnFindMatchRectsReply(
2299 int version, 2307 int version,
2300 const std::vector<gfx::RectF>& rects, 2308 const std::vector<gfx::RectF>& rects,
2301 const gfx::RectF& active_rect) { 2309 const gfx::RectF& active_rect) {
2302 if (delegate_) 2310 if (delegate_)
2303 delegate_->FindMatchRectsReply(this, version, rects, active_rect); 2311 delegate_->FindMatchRectsReply(this, version, rects, active_rect);
2304 } 2312 }
2305 2313
2306 void WebContentsImpl::OnOpenDateTimeDialog( 2314 void WebContentsImpl::OnOpenDateTimeDialog(
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
3523 } 3531 }
3524 3532
3525 BrowserPluginGuestManager* 3533 BrowserPluginGuestManager*
3526 WebContentsImpl::GetBrowserPluginGuestManager() const { 3534 WebContentsImpl::GetBrowserPluginGuestManager() const {
3527 return static_cast<BrowserPluginGuestManager*>( 3535 return static_cast<BrowserPluginGuestManager*>(
3528 GetBrowserContext()->GetUserData( 3536 GetBrowserContext()->GetUserData(
3529 browser_plugin::kBrowserPluginGuestManagerKeyName)); 3537 browser_plugin::kBrowserPluginGuestManagerKeyName));
3530 } 3538 }
3531 3539
3532 } // namespace content 3540 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698