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

Unified 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, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_util.cc
diff --git a/chrome/browser/ui/browser_util.cc b/chrome/browser/ui/browser_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2e89ff47c76be0745424ca9822f91a2604ec9dad
--- /dev/null
+++ b/chrome/browser/ui/browser_util.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/ui/browser_util.h"
+
+void BrowserUtil::FormatTitleForDisplay(base::string16* title) {
+ size_t current_index = 0;
+ size_t match_index;
+ while ((match_index = title->find(L'\n', current_index)) !=
+ base::string16::npos) {
+ title->replace(match_index, 1, base::string16());
+ current_index = match_index;
+ }
+}
+
+#if !defined(OS_WIN)
+bool BrowserUtil::IsOverscrollEnabledOnPlatform() {
+#if defined(USE_AURA)
+ return true;
+#else
+ return false;
+#endif
+}
+#endif
+

Powered by Google App Engine
This is Rietveld 408576698