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

Side by Side Diff: chrome/browser/ui/views/location_bar/selected_keyword_view.h

Issue 23537056: Fix typo leading to the use of the wrong font in location bar bubbles. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 3 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_LOCATION_BAR_SELECTED_KEYWORD_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SELECTED_KEYWORD_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SELECTED_KEYWORD_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SELECTED_KEYWORD_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" 11 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h"
12 #include "ui/views/controls/label.h" 12 #include "ui/views/controls/label.h"
13 13
14 class Profile; 14 class Profile;
15 namespace gfx { 15 namespace gfx {
16 class Font; 16 class FontList;
17 class Size; 17 class Size;
18 } 18 }
19 19
20 // SelectedKeywordView displays the tab-to-search UI in the location bar view. 20 // SelectedKeywordView displays the tab-to-search UI in the location bar view.
21 class SelectedKeywordView : public IconLabelBubbleView { 21 class SelectedKeywordView : public IconLabelBubbleView {
22 public: 22 public:
23 SelectedKeywordView(const gfx::Font& font, 23 SelectedKeywordView(const gfx::FontList& font_list,
24 int font_y_offset, 24 int font_y_offset,
25 SkColor text_color, 25 SkColor text_color,
26 SkColor parent_background_color, 26 SkColor parent_background_color,
27 Profile* profile); 27 Profile* profile);
28 virtual ~SelectedKeywordView(); 28 virtual ~SelectedKeywordView();
29 29
30 virtual gfx::Size GetPreferredSize() OVERRIDE; 30 virtual gfx::Size GetPreferredSize() OVERRIDE;
31 virtual gfx::Size GetMinimumSize() OVERRIDE; 31 virtual gfx::Size GetMinimumSize() OVERRIDE;
32 virtual void Layout() OVERRIDE; 32 virtual void Layout() OVERRIDE;
33 33
(...skipping 13 matching lines...) Expand all
47 // enough room to display the complete description. 47 // enough room to display the complete description.
48 views::Label full_label_; 48 views::Label full_label_;
49 views::Label partial_label_; 49 views::Label partial_label_;
50 50
51 Profile* profile_; 51 Profile* profile_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(SelectedKeywordView); 53 DISALLOW_COPY_AND_ASSIGN(SelectedKeywordView);
54 }; 54 };
55 55
56 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SELECTED_KEYWORD_VIEW_H_ 56 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_SELECTED_KEYWORD_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698