| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "components/infobars/core/infobar_delegate.h" | 9 #include "components/infobars/core/infobar_delegate.h" |
| 10 #include "components/omnibox/browser/autocomplete_match.h" | 10 #include "components/omnibox/browser/autocomplete_match.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const base::string16& text, | 36 const base::string16& text, |
| 37 const AutocompleteMatch& match, | 37 const AutocompleteMatch& match, |
| 38 const GURL& search_url); | 38 const GURL& search_url); |
| 39 | 39 |
| 40 // Returns an alternate nav infobar that owns |delegate|. | 40 // Returns an alternate nav infobar that owns |delegate|. |
| 41 static scoped_ptr<infobars::InfoBar> CreateInfoBar( | 41 static scoped_ptr<infobars::InfoBar> CreateInfoBar( |
| 42 scoped_ptr<AlternateNavInfoBarDelegate> delegate); | 42 scoped_ptr<AlternateNavInfoBarDelegate> delegate); |
| 43 | 43 |
| 44 // InfoBarDelegate: | 44 // InfoBarDelegate: |
| 45 Type GetInfoBarType() const override; | 45 Type GetInfoBarType() const override; |
| 46 std::string GetIdentifier() const override; |
| 46 int GetIconId() const override; | 47 int GetIconId() const override; |
| 47 gfx::VectorIconId GetVectorIconId() const override; | 48 gfx::VectorIconId GetVectorIconId() const override; |
| 48 | 49 |
| 49 Profile* profile_; | 50 Profile* profile_; |
| 50 const base::string16 text_; | 51 const base::string16 text_; |
| 51 const AutocompleteMatch match_; | 52 const AutocompleteMatch match_; |
| 52 const GURL search_url_; | 53 const GURL search_url_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(AlternateNavInfoBarDelegate); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 #endif // CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ | 58 #endif // CHROME_BROWSER_UI_OMNIBOX_ALTERNATE_NAV_INFOBAR_DELEGATE_H_ |
| OLD | NEW |