OLD | NEW |
(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 |
OLD | NEW |