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

Side by Side Diff: chrome/browser/views/autocomplete/autocomplete_popup_contents_view.h

Issue 113441: ChromeFont->gfx::Font... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 7 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS_VIEW_H_
7 7
8 #include "app/gfx/chrome_font.h" 8 #include "app/gfx/chrome_font.h"
9 #include "chrome/browser/autocomplete/autocomplete.h" 9 #include "chrome/browser/autocomplete/autocomplete.h"
10 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" 10 #include "chrome/browser/autocomplete/autocomplete_popup_model.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // Called when the line at the specified index should be shown as selected. 40 // Called when the line at the specified index should be shown as selected.
41 virtual void SetSelectedLine(size_t index, bool revert_to_default) = 0; 41 virtual void SetSelectedLine(size_t index, bool revert_to_default) = 0;
42 }; 42 };
43 43
44 // A view representing the contents of the autocomplete popup. 44 // A view representing the contents of the autocomplete popup.
45 class AutocompletePopupContentsView : public views::View, 45 class AutocompletePopupContentsView : public views::View,
46 public AutocompleteResultViewModel, 46 public AutocompleteResultViewModel,
47 public AutocompletePopupView { 47 public AutocompletePopupView {
48 public: 48 public:
49 AutocompletePopupContentsView(const ChromeFont& font, 49 AutocompletePopupContentsView(const gfx::Font& font,
50 AutocompleteEditViewWin* edit_view, 50 AutocompleteEditViewWin* edit_view,
51 AutocompleteEditModel* edit_model, 51 AutocompleteEditModel* edit_model,
52 Profile* profile, 52 Profile* profile,
53 AutocompletePopupPositioner* popup_positioner); 53 AutocompletePopupPositioner* popup_positioner);
54 virtual ~AutocompletePopupContentsView() {} 54 virtual ~AutocompletePopupContentsView() {}
55 55
56 // Update the presentation with the latest result. 56 // Update the presentation with the latest result.
57 void UpdateResultViewsFromResult(const AutocompleteResult& result); 57 void UpdateResultViewsFromResult(const AutocompleteResult& result);
58 58
59 // Returns the bounds the popup should be shown at. This is the display bounds 59 // Returns the bounds the popup should be shown at. This is the display bounds
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 scoped_ptr<AutocompletePopupModel> model_; 98 scoped_ptr<AutocompletePopupModel> model_;
99 99
100 // The edit view that invokes us. 100 // The edit view that invokes us.
101 AutocompleteEditViewWin* edit_view_; 101 AutocompleteEditViewWin* edit_view_;
102 102
103 // An object that tells the popup how to position itself. 103 // An object that tells the popup how to position itself.
104 AutocompletePopupPositioner* popup_positioner_; 104 AutocompletePopupPositioner* popup_positioner_;
105 105
106 // The font that we should use for result rows. This is based on the font used 106 // The font that we should use for result rows. This is based on the font used
107 // by the edit that created us. 107 // by the edit that created us.
108 ChromeFont result_font_; 108 gfx::Font result_font_;
109 109
110 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView); 110 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupContentsView);
111 }; 111 };
112 112
113 113
114 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS _VIEW_H_ 114 #endif // #ifndef CHROME_BROWSER_VIEWS_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_CONTENTS _VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/about_chrome_view.cc ('k') | chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698