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

Unified Diff: ui/app_list/search/tokenized_string.h

Issue 522683003: Move basic string operations to ui/app_list/search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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
« no previous file with comments | « ui/app_list/search/term_break_iterator_unittest.cc ('k') | ui/app_list/search/tokenized_string.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search/tokenized_string.h
diff --git a/chrome/browser/ui/app_list/search/tokenized_string.h b/ui/app_list/search/tokenized_string.h
similarity index 83%
rename from chrome/browser/ui/app_list/search/tokenized_string.h
rename to ui/app_list/search/tokenized_string.h
index abc2ec2548a95e719d79e366da01e093bcc6f65b..1af03f6202fec4956348e7ad59b084423f9a24a8 100644
--- a/chrome/browser/ui/app_list/search/tokenized_string.h
+++ b/ui/app_list/search/tokenized_string.h
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_APP_LIST_SEARCH_TOKENIZED_STRING_H_
-#define CHROME_BROWSER_UI_APP_LIST_SEARCH_TOKENIZED_STRING_H_
+#ifndef UI_APP_LIST_SEARCH_TOKENIZED_STRING_H_
+#define UI_APP_LIST_SEARCH_TOKENIZED_STRING_H_
#include <vector>
#include "base/basictypes.h"
#include "base/strings/string16.h"
+#include "ui/app_list/app_list_export.h"
#include "ui/gfx/range/range.h"
namespace app_list {
@@ -16,7 +17,7 @@ namespace app_list {
// TokenizedString takes a string and breaks it down into token words. It
// first breaks using BreakIterator to get all the words. Then it breaks
// the words again at camel case boundaries and alpha/number boundaries.
-class TokenizedString {
+class APP_LIST_EXPORT TokenizedString {
public:
typedef std::vector<base::string16> Tokens;
typedef std::vector<gfx::Range> Mappings;
@@ -43,4 +44,4 @@ class TokenizedString {
} // namespace app_list
-#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_TOKENIZED_STRING_H_
+#endif // UI_APP_LIST_SEARCH_TOKENIZED_STRING_H_
« no previous file with comments | « ui/app_list/search/term_break_iterator_unittest.cc ('k') | ui/app_list/search/tokenized_string.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698