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

Side by Side Diff: components/toolbar/toolbar_model.h

Issue 2152823004: [Material][Mac] Animation for Omnibox Verbose State Chips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaning up Created 4 years, 5 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
« no previous file with comments | « components/omnibox_strings.grdp ('k') | components/toolbar/toolbar_model_impl.h » ('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 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 COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 5 #ifndef COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 6 #define COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Returns the resource_id of the icon to show to the left of the address, 68 // Returns the resource_id of the icon to show to the left of the address,
69 // based on the current URL. When search term replacement is active, this 69 // based on the current URL. When search term replacement is active, this
70 // returns a search icon. This doesn't cover specialized icons while the 70 // returns a search icon. This doesn't cover specialized icons while the
71 // user is editing; see OmniboxView::GetIcon(). 71 // user is editing; see OmniboxView::GetIcon().
72 virtual int GetIcon() const = 0; 72 virtual int GetIcon() const = 0;
73 73
74 // Like GetIcon(), but gets the vector asset ID. 74 // Like GetIcon(), but gets the vector asset ID.
75 virtual gfx::VectorIconId GetVectorIcon() const = 0; 75 virtual gfx::VectorIconId GetVectorIcon() const = 0;
76 76
77 // Returns text for the omnibox secure verbose chip.
78 virtual base::string16 GetSecureVerboseText() const = 0;
79
77 // Returns the name of the EV cert holder. This returns an empty string if 80 // Returns the name of the EV cert holder. This returns an empty string if
78 // the security level is not EV_SECURE. 81 // the security level is not EV_SECURE.
79 virtual base::string16 GetEVCertName() const = 0; 82 virtual base::string16 GetEVCertName() const = 0;
80 83
81 // Returns whether the URL for the current navigation entry should be 84 // Returns whether the URL for the current navigation entry should be
82 // in the location bar. 85 // in the location bar.
83 virtual bool ShouldDisplayURL() const = 0; 86 virtual bool ShouldDisplayURL() const = 0;
84 87
85 // Whether the text in the omnibox is currently being edited. 88 // Whether the text in the omnibox is currently being edited.
86 void set_input_in_progress(bool input_in_progress) { 89 void set_input_in_progress(bool input_in_progress) {
(...skipping 13 matching lines...) Expand all
100 ToolbarModel(); 103 ToolbarModel();
101 104
102 private: 105 private:
103 bool input_in_progress_; 106 bool input_in_progress_;
104 bool url_replacement_enabled_; 107 bool url_replacement_enabled_;
105 108
106 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); 109 DISALLOW_COPY_AND_ASSIGN(ToolbarModel);
107 }; 110 };
108 111
109 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 112 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
OLDNEW
« no previous file with comments | « components/omnibox_strings.grdp ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698