OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 class AutocompleteEditController; | 9 class AutocompleteEditController; |
10 class CommandUpdater; | 10 class CommandUpdater; |
11 class LocationBarView; | 11 class LocationBarView; |
12 class OmniboxView; | 12 class OmniboxView; |
13 class OmniboxViewViews; | |
14 class OmniboxViewWin; | |
13 class Profile; | 15 class Profile; |
14 class ToolbarModel; | 16 class ToolbarModel; |
15 | 17 |
18 namespace views { | |
19 class View; | |
20 } | |
Peter Kasting
2012/06/29 20:15:28
Nit: This views::View forward declaration not need
msw
2012/06/29 20:20:29
Done.
| |
21 | |
22 // Returns true if OmniboxViewViews should be used (instead of OmniboxViewWin). | |
23 bool UseOmniboxViews(); | |
24 | |
25 // Return |view| as an OmniboxViewViews, or NULL if it is of a different type. | |
26 OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view); | |
27 | |
28 #if defined(OS_WIN) && !defined(USE_AURA) | |
29 // Return |view| as an OmniboxViewWin, or NULL if it is of a different type. | |
30 OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view); | |
31 #endif | |
32 | |
33 // Creates an OmniboxView of the appropriate type; Views or Win. | |
16 OmniboxView* CreateOmniboxView(AutocompleteEditController* controller, | 34 OmniboxView* CreateOmniboxView(AutocompleteEditController* controller, |
17 ToolbarModel* toolbar_model, | 35 ToolbarModel* toolbar_model, |
18 Profile* profile, | 36 Profile* profile, |
19 CommandUpdater* command_updater, | 37 CommandUpdater* command_updater, |
20 bool popup_window_mode, | 38 bool popup_window_mode, |
21 LocationBarView* location_bar); | 39 LocationBarView* location_bar); |
22 | 40 |
23 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ | 41 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ |
OLD | NEW |