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

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

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_KEYWORD_HINT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_KEYWORD_HINT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_KEYWORD_HINT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_KEYWORD_HINT_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 38
39 void SetKeyword(const string16& keyword); 39 void SetKeyword(const string16& keyword);
40 string16 keyword() const { return keyword_; } 40 string16 keyword() const { return keyword_; }
41 41
42 virtual void OnPaint(gfx::Canvas* canvas); 42 virtual void OnPaint(gfx::Canvas* canvas);
43 virtual gfx::Size GetPreferredSize(); 43 virtual gfx::Size GetPreferredSize();
44 // The minimum size is just big enough to show the tab. 44 // The minimum size is just big enough to show the tab.
45 virtual gfx::Size GetMinimumSize(); 45 virtual gfx::Size GetMinimumSize();
46 virtual void Layout(); 46 virtual void Layout();
47 47
48 void set_profile(Profile* profile) { profile_ = profile; }
49
50 private: 48 private:
51 views::Label* leading_label_; 49 views::Label* leading_label_;
52 views::Label* trailing_label_; 50 views::Label* trailing_label_;
53 51
54 // The keyword. 52 // The keyword.
55 string16 keyword_; 53 string16 keyword_;
56 54
57 Profile* profile_; 55 Profile* profile_;
58 56
59 DISALLOW_IMPLICIT_CONSTRUCTORS(KeywordHintView); 57 DISALLOW_IMPLICIT_CONSTRUCTORS(KeywordHintView);
60 }; 58 };
61 59
62 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_KEYWORD_HINT_VIEW_H_ 60 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_KEYWORD_HINT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698