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

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

Issue 46055: RSS feed support (part 1), 2nd attempt (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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
« no previous file with comments | « chrome/browser/tab_contents/web_contents.cc ('k') | chrome/browser/toolbar_model.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "skia/include/SkColor.h" 11 #include "skia/include/SkColor.h"
12 #include "webkit/glue/feed.h"
12 13
13 class NavigationController; 14 class NavigationController;
14 class NavigationEntry; 15 class NavigationEntry;
15 16
16 // This class is the model used by the toolbar, location bar and autocomplete 17 // 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 18 // edit. It populates its states from the current navigation entry retrieved
18 // from the navigation controller returned by GetNavigationController(). 19 // from the navigation controller returned by GetNavigationController().
19 // Sub-classes have only need to implement GetNavigationController(). 20 // Sub-classes have only need to implement GetNavigationController().
20 class ToolbarModel { 21 class ToolbarModel {
21 public: 22 public:
(...skipping 23 matching lines...) Expand all
45 // Returns the security level that should be used in the scheme part of the 46 // Returns the security level that should be used in the scheme part of the
46 // displayed URL. If SECURE, then the scheme is painted in green. If 47 // displayed URL. If SECURE, then the scheme is painted in green. If
47 // INSECURE, it is painted in red and stricken-out. 48 // INSECURE, it is painted in red and stricken-out.
48 // Default value: NORMAL. 49 // Default value: NORMAL.
49 virtual SecurityLevel GetSchemeSecurityLevel(); 50 virtual SecurityLevel GetSchemeSecurityLevel();
50 51
51 // Returns the icon that should be displayed on the right of the location bar. 52 // Returns the icon that should be displayed on the right of the location bar.
52 // Default value: NO_ICON. 53 // Default value: NO_ICON.
53 virtual Icon GetIcon(); 54 virtual Icon GetIcon();
54 55
56 // Returns an array of available feeds.
57 virtual scoped_refptr<FeedList> GetFeedList();
58
55 // Sets the text and color of the text displayed in the info bubble that 59 // Sets the text and color of the text displayed in the info bubble that
56 // appears when the user hovers the mouse over the icon. 60 // appears when the user hovers the mouse over the icon.
57 // Default value: empty string. 61 // Default value: empty string.
58 virtual void GetIconHoverText(std::wstring* text, SkColor* text_color); 62 virtual void GetIconHoverText(std::wstring* text, SkColor* text_color);
59 63
60 // 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
61 // 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
62 // when the mouse hover over that info label. 66 // when the mouse hover over that info label.
63 // Default value: empty string. 67 // Default value: empty string.
64 virtual void GetInfoText(std::wstring* text, 68 virtual void GetInfoText(std::wstring* text,
(...skipping 16 matching lines...) Expand all
81 // The message is set in |text|. 85 // The message is set in |text|.
82 void CreateErrorText(NavigationEntry* entry, std::wstring* text); 86 void CreateErrorText(NavigationEntry* entry, std::wstring* text);
83 87
84 // Whether the text in the location bar is currently being edited. 88 // Whether the text in the location bar is currently being edited.
85 bool input_in_progress_; 89 bool input_in_progress_;
86 90
87 DISALLOW_EVIL_CONSTRUCTORS(ToolbarModel); 91 DISALLOW_EVIL_CONSTRUCTORS(ToolbarModel);
88 }; 92 };
89 93
90 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__ 94 #endif // CHROME_BROWSER_TOOLBAR_MODEL_H__
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/web_contents.cc ('k') | chrome/browser/toolbar_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698