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

Side by Side Diff: content/browser/tab_contents/tab_contents.cc

Issue 7324001: Revert 89864 - Don't rely on user gestures for deciding when to dismiss infobars. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/tab_contents/navigation_details.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/tab_contents/tab_contents.h" 5 #include "content/browser/tab_contents/tab_contents.h"
6 6
7 #include <cmath> 7 #include <cmath>
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 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 GetWebUIFactory()->CreateWebUIForURL(this, GetURL()); 1068 GetWebUIFactory()->CreateWebUIForURL(this, GetURL());
1069 // web_ui might be NULL if the URL refers to a non-existent extension. 1069 // web_ui might be NULL if the URL refers to a non-existent extension.
1070 if (web_ui) { 1070 if (web_ui) {
1071 render_manager_.SetWebUIPostCommit(web_ui); 1071 render_manager_.SetWebUIPostCommit(web_ui);
1072 web_ui->RenderViewCreated(render_view_host()); 1072 web_ui->RenderViewCreated(render_view_host());
1073 } 1073 }
1074 } 1074 }
1075 opener_web_ui_type_ = WebUI::kNoWebUI; 1075 opener_web_ui_type_ = WebUI::kNoWebUI;
1076 } 1076 }
1077 1077
1078 if (details.is_navigation_to_different_page()) { 1078 if (details.is_user_initiated_main_frame_load()) {
1079 // Clear the status bubble. This is a workaround for a bug where WebKit 1079 // Clear the status bubble. This is a workaround for a bug where WebKit
1080 // doesn't let us know that the cursor left an element during a 1080 // doesn't let us know that the cursor left an element during a
1081 // transition (this is also why the mouse cursor remains as a hand after 1081 // transition (this is also why the mouse cursor remains as a hand after
1082 // clicking on a link); see bugs 1184641 and 980803. We don't want to 1082 // clicking on a link); see bugs 1184641 and 980803. We don't want to
1083 // clear the bubble when a user navigates to a named anchor in the same 1083 // clear the bubble when a user navigates to a named anchor in the same
1084 // page. 1084 // page.
1085 UpdateTargetURL(details.entry->page_id(), GURL()); 1085 UpdateTargetURL(details.entry->page_id(), GURL());
1086 } 1086 }
1087 1087
1088 if (!details.is_in_page) { 1088 if (!details.is_in_page) {
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
1839 1839
1840 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) { 1840 void TabContents::CreateViewAndSetSizeForRVH(RenderViewHost* rvh) {
1841 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh); 1841 RenderWidgetHostView* rwh_view = view()->CreateViewForWidget(rvh);
1842 rwh_view->SetSize(view()->GetContainerSize()); 1842 rwh_view->SetSize(view()->GetContainerSize());
1843 } 1843 }
1844 1844
1845 void TabContents::OnOnlineStateChanged(bool online) { 1845 void TabContents::OnOnlineStateChanged(bool online) {
1846 render_view_host()->Send(new ViewMsg_NetworkStateChanged( 1846 render_view_host()->Send(new ViewMsg_NetworkStateChanged(
1847 render_view_host()->routing_id(), online)); 1847 render_view_host()->routing_id(), online));
1848 } 1848 }
OLDNEW
« no previous file with comments | « content/browser/tab_contents/navigation_details.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698