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

Side by Side Diff: chrome/browser/toolbar_model.h

Issue 200009: Use system themes where possible in Omnibox, dropdown, and security info bubb... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TOOLBAR_MODEL_H__ 5 #ifndef CHROME_BROWSER_TOOLBAR_MODEL_H__
6 #define CHROME_BROWSER_TOOLBAR_MODEL_H__ 6 #define CHROME_BROWSER_TOOLBAR_MODEL_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "third_party/skia/include/core/SkColor.h"
12 11
13 class NavigationController; 12 class NavigationController;
14 class NavigationEntry; 13 class NavigationEntry;
15 14
16 // This class is the model used by the toolbar, location bar and autocomplete 15 // This class is the model used by the toolbar, location bar and autocomplete
17 // edit. It populates its states from the current navigation entry retrieved 16 // edit. It populates its states from the current navigation entry retrieved
18 // from the navigation controller returned by GetNavigationController(). 17 // from the navigation controller returned by GetNavigationController().
19 // Sub-classes have only need to implement GetNavigationController(). 18 // Sub-classes have only need to implement GetNavigationController().
20 class ToolbarModel { 19 class ToolbarModel {
21 public: 20 public:
(...skipping 28 matching lines...) Expand all
50 // Returns the security level that should be used in the scheme part of the 49 // Returns the security level that should be used in the scheme part of the
51 // displayed URL. If SECURE, then the scheme is painted in green. If 50 // displayed URL. If SECURE, then the scheme is painted in green. If
52 // INSECURE, it is painted in red and stricken-out. 51 // INSECURE, it is painted in red and stricken-out.
53 // Default value: NORMAL. 52 // Default value: NORMAL.
54 virtual SecurityLevel GetSchemeSecurityLevel(); 53 virtual SecurityLevel GetSchemeSecurityLevel();
55 54
56 // Returns the icon that should be displayed on the right of the location bar. 55 // Returns the icon that should be displayed on the right of the location bar.
57 // Default value: NO_ICON. 56 // Default value: NO_ICON.
58 virtual Icon GetIcon(); 57 virtual Icon GetIcon();
59 58
60 // Sets the text and color of the text displayed in the info bubble that 59 // Sets the text displayed in the info bubble that appears when the user
61 // appears when the user hovers the mouse over the icon. 60 // hovers the mouse over the icon.
62 // Default value: empty string. 61 // Default value: empty string.
63 virtual void GetIconHoverText(std::wstring* text, SkColor* text_color); 62 virtual void GetIconHoverText(std::wstring* text);
64 63
65 // Sets |text| to contain the text that should be displayed on the right of 64 // Sets |text| to contain the text that should be displayed on the right of
66 // the location bar, and |tooltip| to the tooltip text that should be shown 65 // the location bar, and |tooltip| to the tooltip text that should be shown
67 // when the mouse hover over that info label. 66 // when the mouse hover over that info label.
68 // Default value: NO_INFO and empty string for |text| and |tooltip|. 67 // Default value: NO_INFO and empty string for |text| and |tooltip|.
69 virtual InfoTextType GetInfoText(std::wstring* text, 68 virtual InfoTextType GetInfoText(std::wstring* text,
70 std::wstring* tooltip); 69 std::wstring* tooltip);
71 70
72 // Getter/setter of whether the text in location bar is currently being 71 // Getter/setter of whether the text in location bar is currently being
73 // edited. 72 // edited.
(...skipping 11 matching lines...) Expand all
85 // The message is set in |text|. 84 // The message is set in |text|.
86 void CreateErrorText(NavigationEntry* entry, std::wstring* text); 85 void CreateErrorText(NavigationEntry* entry, std::wstring* text);
87 86
88 // Whether the text in the location bar is currently being edited. 87 // Whether the text in the location bar is currently being edited.
89 bool input_in_progress_; 88 bool input_in_progress_;
90 89
91 DISALLOW_EVIL_CONSTRUCTORS(ToolbarModel); 90 DISALLOW_EVIL_CONSTRUCTORS(ToolbarModel);
92 }; 91 };
93 92
94 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__ 93 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_win.cc ('k') | chrome/browser/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698