1 // Copyright (c) 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 CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_
10 class OmniboxEditController;
12 class OmniboxViewViews;
24 // Return |view| as an OmniboxViewViews, or NULL if it is of a different type.
25 OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view);
27 // Return |view| as an OmniboxViewWin, or NULL if it is of a different type.
28 OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view);
30 // Creates an OmniboxView of the appropriate type; Views or Win.
31 OmniboxView* CreateOmniboxView(OmniboxEditController* controller,
33 CommandUpdater* command_updater,
34 bool popup_window_mode,
35 LocationBarView* location_bar,
36 const gfx::FontList& font_list);
38 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_