Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_views.h

Issue 10854017: Basic metro snap view omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix chromeos compilation. Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698