- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / views / omnibox / omnibox_views.h
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.
4
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_
7
8 class CommandUpdater;
9 class LocationBarView;
10 class OmniboxEditController;
11 class OmniboxView;
12 class OmniboxViewViews;
13 class OmniboxViewWin;
14 class Profile;
15
16 namespace gfx {
17 class FontList;
18 }
19
20 namespace views {
21 class View;
22 }
23
24 // Return |view| as an OmniboxViewViews, or NULL if it is of a different type.
25 OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view);
26
27 // Return |view| as an OmniboxViewWin, or NULL if it is of a different type.
28 OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view);
29
30 // Creates an OmniboxView of the appropriate type; Views or Win.
31 OmniboxView* CreateOmniboxView(OmniboxEditController* controller,
32                                Profile* profile,
33                                CommandUpdater* command_updater,
34                                bool popup_window_mode,
35                                LocationBarView* location_bar,
36                                const gfx::FontList& font_list);
37
38 #endif  // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_