Home | History | Annotate | Download | only in omnibox
      1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
      6 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
      7 #pragma once
      8 
      9 #include <string>
     10 
     11 class Profile;
     12 
     13 namespace location_bar_util {
     14 
     15 // Returns the short name for a keyword.
     16 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword);
     17 
     18 // Build a short string to use in keyword-search when the field isn't
     19 // very big.
     20 std::wstring CalculateMinString(const std::wstring& description);
     21 
     22 }  // namespace location_bar_util
     23 
     24 #endif  // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
     25