Home | History | Annotate | Download | only in omnibox
      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 class ToolbarModel;
     16 
     17 namespace gfx {
     18 class FontList;
     19 }
     20 
     21 namespace views {
     22 class View;
     23 }
     24 
     25 // Return |view| as an OmniboxViewViews, or NULL if it is of a different type.
     26 OmniboxViewViews* GetOmniboxViewViews(OmniboxView* view);
     27 
     28 // Return |view| as an OmniboxViewWin, or NULL if it is of a different type.
     29 OmniboxViewWin* GetOmniboxViewWin(OmniboxView* view);
     30 
     31 // Creates an OmniboxView of the appropriate type; Views or Win.
     32 OmniboxView* CreateOmniboxView(OmniboxEditController* controller,
     33                                ToolbarModel* toolbar_model,
     34                                Profile* profile,
     35                                CommandUpdater* command_updater,
     36                                bool popup_window_mode,
     37                                LocationBarView* location_bar,
     38                                const gfx::FontList& font_list,
     39                                int font_y_offset);
     40 
     41 #endif  // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEWS_H_
     42