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 | 7 |
8 class CommandUpdater; | 8 class CommandUpdater; |
9 class LocationBarView; | 9 class LocationBarView; |
10 class OmniboxEditController; | 10 class OmniboxEditController; |
(...skipping 11 matching lines...) Expand all Loading... |
22 bool UseOmniboxViews(); | 22 bool UseOmniboxViews(); |
23 | 23 |
24 // Return |view| as an OmniboxViewViews, or NULL if it is of a different type. | 24 // Return |view| as an OmniboxViewViews, or NULL if it is of a different type. |
25 OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view); | 25 OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view); |
26 | 26 |
27 #if defined(OS_WIN) && !defined(USE_AURA) | 27 #if defined(OS_WIN) && !defined(USE_AURA) |
28 // Return |view| as an OmniboxViewWin, or NULL if it is of a different type. | 28 // Return |view| as an OmniboxViewWin, or NULL if it is of a different type. |
29 OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view); | 29 OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view); |
30 #endif | 30 #endif |
31 | 31 |
| 32 enum OmniboxWindowMode { |
| 33 OMNIBOX_WINDOW_MODE_NORMAL, |
| 34 OMNIBOX_WINDOW_MODE_POPUP, |
| 35 OMNIBOX_WINDOW_MODE_DISABLED, |
| 36 }; |
| 37 |
32 // Creates an OmniboxView of the appropriate type; Views or Win. | 38 // Creates an OmniboxView of the appropriate type; Views or Win. |
33 OmniboxView* CreateOmniboxView(OmniboxEditController* controller, | 39 OmniboxView* CreateOmniboxView(OmniboxEditController* controller, |
34 ToolbarModel* toolbar_model, | 40 ToolbarModel* toolbar_model, |
35 Profile* profile, | 41 Profile* profile, |
36 CommandUpdater* command_updater, | 42 CommandUpdater* command_updater, |
37 bool popup_window_mode, | 43 OmniboxWindowMode popup_window_mode, |
38 LocationBarView* location_bar, | 44 LocationBarView* location_bar, |
39 views::View* popup_parent_view); | 45 views::View* popup_parent_view); |
40 | 46 |
41 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ | 47 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_ |
OLD | NEW |