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 CommandUpdater; | 9 class CommandUpdater; |
10 class LocationBarView; | 10 class LocationBarView; |
11 class OmniboxEditController; | 11 class OmniboxEditController; |
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 |
16 namespace views { | 18 namespace views { |
17 class View; | 19 class View; |
18 } | 20 } |
19 | 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. |
20 OmniboxView* CreateOmniboxView(OmniboxEditController* controller, | 34 OmniboxView* CreateOmniboxView(OmniboxEditController* controller, |
21 ToolbarModel* toolbar_model, | 35 ToolbarModel* toolbar_model, |
22 Profile* profile, | 36 Profile* profile, |
23 CommandUpdater* command_updater, | 37 CommandUpdater* command_updater, |
24 bool popup_window_mode, | 38 bool popup_window_mode, |
25 LocationBarView* location_bar, | 39 LocationBarView* location_bar, |
26 views::View* popup_parent_view); | 40 views::View* popup_parent_view); |
27 | 41 |
28 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ | 42 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ |
OLD | NEW |