Chromium Code Reviews| Index: chrome/browser/ui/browser_util.h |
| diff --git a/chrome/browser/ui/browser_util.h b/chrome/browser/ui/browser_util.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4c54981e365abb3be2b85713932ee709a6e9ef35 |
| --- /dev/null |
| +++ b/chrome/browser/ui/browser_util.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright (c) 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. |
| + |
| +#ifndef CHROME_BROWSER_UI_BROWSER_UTIL_H_ |
| +#define CHROME_BROWSER_UI_BROWSER_UTIL_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/strings/string16.h" |
| + |
| +// Contains helper functions used by the Browser. |
| +class BrowserUtil { |
|
sky
2014/10/01 20:05:04
Sorry. I had thought there was already a browser_u
|
| + public: |
| + // Returns true if the overscrolling browser contents is enabled on the |
| + // current platform. |
| + static bool IsOverscrollEnabledOnPlatform(); |
| + |
| + // Prepares a title string for display (removes embedded newlines, etc). |
| + static void FormatTitleForDisplay(base::string16* title); |
| + |
| + DISALLOW_IMPLICIT_CONSTRUCTORS(BrowserUtil); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_BROWSER_UTIL_H_ |