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

Unified Diff: ui/app_list/search/tokenized_string_match.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
Index: ui/app_list/search/tokenized_string_match.h
diff --git a/chrome/browser/ui/app_list/search/tokenized_string_match.h b/ui/app_list/search/tokenized_string_match.h
similarity index 86%
rename from chrome/browser/ui/app_list/search/tokenized_string_match.h
rename to ui/app_list/search/tokenized_string_match.h
index 3c9ceb8ea6109b90733084b5e6e111dfaf57b862..e00425a6e1d211540fe9b3036f2659838b497587 100644
--- a/chrome/browser/ui/app_list/search/tokenized_string_match.h
+++ b/ui/app_list/search/tokenized_string_match.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_MATCH_H_
-#define CHROME_BROWSER_UI_APP_LIST_SEARCH_TOKENIZED_STRING_MATCH_H_
+#ifndef UI_APP_LIST_SEARCH_TOKENIZED_STRING_MATCH_H_
+#define UI_APP_LIST_SEARCH_TOKENIZED_STRING_MATCH_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 {
@@ -21,7 +22,7 @@ class TokenizedString;
// of text. A relevance of zero means the two are completely different to each
// other. The higher the relevance score, the better the two strings are
// matched. Matched portions of text are stored as index ranges.
-class TokenizedStringMatch {
+class APP_LIST_EXPORT TokenizedStringMatch {
public:
typedef std::vector<gfx::Range> Hits;
@@ -50,4 +51,4 @@ class TokenizedStringMatch {
} // namespace app_list
-#endif // CHROME_BROWSER_UI_APP_LIST_SEARCH_TOKENIZED_STRING_MATCH_H_
+#endif // UI_APP_LIST_SEARCH_TOKENIZED_STRING_MATCH_H_
« no previous file with comments | « ui/app_list/search/tokenized_string_char_iterator_unittest.cc ('k') | ui/app_list/search/tokenized_string_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698