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

Side by Side Diff: chrome/browser/ui/toolbar/toolbar_model_impl.h

Issue 1410293003: Vectorize LocationIconView icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review Created 5 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 private: 36 private:
37 // ToolbarModel: 37 // ToolbarModel:
38 base::string16 GetText() const override; 38 base::string16 GetText() const override;
39 base::string16 GetFormattedURL(size_t* prefix_end) const override; 39 base::string16 GetFormattedURL(size_t* prefix_end) const override;
40 base::string16 GetCorpusNameForMobile() const override; 40 base::string16 GetCorpusNameForMobile() const override;
41 GURL GetURL() const override; 41 GURL GetURL() const override;
42 bool WouldPerformSearchTermReplacement(bool ignore_editing) const override; 42 bool WouldPerformSearchTermReplacement(bool ignore_editing) const override;
43 SecurityStateModel::SecurityLevel GetSecurityLevel( 43 SecurityStateModel::SecurityLevel GetSecurityLevel(
44 bool ignore_editing) const override; 44 bool ignore_editing) const override;
45 int GetIcon() const override; 45 int GetIcon() const override;
46 gfx::VectorIconId GetVectorIcon() const override;
46 base::string16 GetEVCertName() const override; 47 base::string16 GetEVCertName() const override;
47 bool ShouldDisplayURL() const override; 48 bool ShouldDisplayURL() const override;
48 49
49 // As |GetIcon()|, but returns the icon only taking into account the security 50 // As |GetIcon()|, but returns the icon only taking into account the security
50 // level| given, ignoring search term replacement state. 51 // level| given, ignoring search term replacement state.
51 int GetIconForSecurityLevel(SecurityStateModel::SecurityLevel level) const; 52 int GetIconForSecurityLevel(SecurityStateModel::SecurityLevel level) const;
53 gfx::VectorIconId GetVectorIconForSecurityLevel(
54 SecurityStateModel::SecurityLevel level) const;
52 55
53 // Returns the navigation controller used to retrieve the navigation entry 56 // Returns the navigation controller used to retrieve the navigation entry
54 // from which the states are retrieved. 57 // from which the states are retrieved.
55 // If this returns NULL, default values are used. 58 // If this returns NULL, default values are used.
56 content::NavigationController* GetNavigationController() const; 59 content::NavigationController* GetNavigationController() const;
57 60
58 // Helper method to extract the profile from the navigation controller. 61 // Helper method to extract the profile from the navigation controller.
59 Profile* GetProfile() const; 62 Profile* GetProfile() const;
60 63
61 // Returns search terms as in search::GetSearchTerms() if such terms should 64 // Returns search terms as in search::GetSearchTerms() if such terms should
62 // appear in the omnibox (i.e. the page is sufficiently secure, search term 65 // appear in the omnibox (i.e. the page is sufficiently secure, search term
63 // replacement is enabled, editing is not in progress, etc.). If 66 // replacement is enabled, editing is not in progress, etc.). If
64 // |ignore_editing| is true, the "editing not in progress" check is skipped. 67 // |ignore_editing| is true, the "editing not in progress" check is skipped.
65 base::string16 GetSearchTerms(bool ignore_editing) const; 68 base::string16 GetSearchTerms(bool ignore_editing) const;
66 69
67 ToolbarModelDelegate* delegate_; 70 ToolbarModelDelegate* delegate_;
68 71
69 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl); 72 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarModelImpl);
70 }; 73 };
71 74
72 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_ 75 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_MODEL_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/toolbar/toolbar_model_impl.cc » ('j') | chrome/browser/ui/toolbar/toolbar_model_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698