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

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 16387003: Merge 203791 "gesture nav: Disable for M28." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
Patch Set: Created 7 years, 6 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 | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "chrome/browser/ui/browser.h" 5 #include "chrome/browser/ui/browser.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // defined(OS_WIN) 10 #endif // defined(OS_WIN)
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 FROM_HERE, base::Bind(&Browser::CloseFrame, weak_factory_.GetWeakPtr())); 1154 FROM_HERE, base::Bind(&Browser::CloseFrame, weak_factory_.GetWeakPtr()));
1155 1155
1156 // Instant may have visible WebContents that need to be detached before the 1156 // Instant may have visible WebContents that need to be detached before the
1157 // window system closes. 1157 // window system closes.
1158 instant_controller_.reset(); 1158 instant_controller_.reset();
1159 } 1159 }
1160 1160
1161 bool Browser::CanOverscrollContent() const { 1161 bool Browser::CanOverscrollContent() const {
1162 #if defined(USE_AURA) 1162 #if defined(USE_AURA)
1163 bool overscroll_enabled = CommandLine::ForCurrentProcess()-> 1163 bool overscroll_enabled = CommandLine::ForCurrentProcess()->
1164 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) != "0"; 1164 GetSwitchValueASCII(switches::kOverscrollHistoryNavigation) == "1";
1165 if (!overscroll_enabled) 1165 if (!overscroll_enabled)
1166 return false; 1166 return false;
1167 if (is_app() || is_devtools() || !is_type_tabbed()) 1167 if (is_app() || is_devtools() || !is_type_tabbed())
1168 return false; 1168 return false;
1169 1169
1170 // The detached bookmark bar has appearance of floating above the 1170 // The detached bookmark bar has appearance of floating above the
1171 // web-contents. This does not play nicely with overscroll navigation 1171 // web-contents. This does not play nicely with overscroll navigation
1172 // gestures. So disable overscroll navigation when the bookmark bar is in the 1172 // gestures. So disable overscroll navigation when the bookmark bar is in the
1173 // detached state. 1173 // detached state.
1174 if (bookmark_bar_state_ == BookmarkBar::DETACHED) 1174 if (bookmark_bar_state_ == BookmarkBar::DETACHED)
(...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 if (contents && !allow_js_access) { 2262 if (contents && !allow_js_access) {
2263 contents->web_contents()->GetController().LoadURL( 2263 contents->web_contents()->GetController().LoadURL(
2264 target_url, 2264 target_url,
2265 content::Referrer(), 2265 content::Referrer(),
2266 content::PAGE_TRANSITION_LINK, 2266 content::PAGE_TRANSITION_LINK,
2267 std::string()); // No extra headers. 2267 std::string()); // No extra headers.
2268 } 2268 }
2269 2269
2270 return contents != NULL; 2270 return contents != NULL;
2271 } 2271 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698