Disable flaky test ExtensionActionContextMenuTest.RunInspectPopup
[chromium-blink-merge.git] / ui / gfx / text_utils.h
blob274664f4e23d4bdda80f0847a5e6bbc9d849defd
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
3 // found in the LICENSE file.
5 #ifndef UI_GFX_TEXT_UTILS_H_
6 #define UI_GFX_TEXT_UTILS_H_
8 #include "base/string16.h"
9 #include "ui/base/ui_export.h"
11 namespace gfx {
13 // Strip the accelerator char (typically '&') from a menu string. A double
14 // accelerator char ('&&') will be converted to a single char. The out params
15 // |accelerated_char_pos| and |accelerated_char_span| will be set to the index
16 // and span of the last accelerated character, respectively, or -1 and 0 if
17 // there was none.
18 UI_EXPORT string16 RemoveAcceleratorChar(const string16& s,
19 char16 accelerator_char,
20 int* accelerated_char_pos,
21 int* accelerated_char_span);
23 } // namespace gfx
25 #endif // UI_GFX_TEXT_UTILS_H_