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

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

Issue 617543002: Disable overscroll on Windows machines w/o touchscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unwanted changes. Created 6 years, 2 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/browser_util.h"
6
7 void BrowserUtil::FormatTitleForDisplay(base::string16* title) {
8 size_t current_index = 0;
9 size_t match_index;
10 while ((match_index = title->find(L'\n', current_index)) !=
11 base::string16::npos) {
12 title->replace(match_index, 1, base::string16());
13 current_index = match_index;
14 }
15 }
16
17 #if !defined(OS_WIN)
18 bool BrowserUtil::IsOverscrollEnabledOnPlatform() {
19 #if defined(USE_AURA)
20 return true;
21 #else
22 return false;
23 #endif
24 }
25 #endif
26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698