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

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

Issue 2144903004: New location security strings and animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor responses Created 4 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
« no previous file with comments | « components/toolbar/test_toolbar_model.cc ('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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 // Returns the resource_id of the icon to show to the left of the address, 46 // Returns the resource_id of the icon to show to the left of the address,
47 // based on the current URL. When search term replacement is active, this 47 // based on the current URL. When search term replacement is active, this
48 // returns a search icon. This doesn't cover specialized icons while the 48 // returns a search icon. This doesn't cover specialized icons while the
49 // user is editing; see OmniboxView::GetIcon(). 49 // user is editing; see OmniboxView::GetIcon().
50 virtual int GetIcon() const = 0; 50 virtual int GetIcon() const = 0;
51 51
52 // Like GetIcon(), but gets the vector asset ID. 52 // Like GetIcon(), but gets the vector asset ID.
53 virtual gfx::VectorIconId GetVectorIcon() const = 0; 53 virtual gfx::VectorIconId GetVectorIcon() const = 0;
54 54
55 // Returns text for the omnibox secure verbose chip.
56 virtual base::string16 GetSecureVerboseText() const = 0;
57
55 // Returns the name of the EV cert holder. This returns an empty string if 58 // Returns the name of the EV cert holder. This returns an empty string if
56 // the security level is not EV_SECURE. 59 // the security level is not EV_SECURE.
57 virtual base::string16 GetEVCertName() const = 0; 60 virtual base::string16 GetEVCertName() const = 0;
58 61
59 // Returns whether the URL for the current navigation entry should be 62 // Returns whether the URL for the current navigation entry should be
60 // in the location bar. 63 // in the location bar.
61 virtual bool ShouldDisplayURL() const = 0; 64 virtual bool ShouldDisplayURL() const = 0;
62 65
63 // Whether the text in the omnibox is currently being edited. 66 // Whether the text in the omnibox is currently being edited.
64 void set_input_in_progress(bool input_in_progress) { 67 void set_input_in_progress(bool input_in_progress) {
(...skipping 14 matching lines...) Expand all
79 ToolbarModel(); 82 ToolbarModel();
80 83
81 private: 84 private:
82 bool input_in_progress_; 85 bool input_in_progress_;
83 bool url_replacement_enabled_; 86 bool url_replacement_enabled_;
84 87
85 DISALLOW_COPY_AND_ASSIGN(ToolbarModel); 88 DISALLOW_COPY_AND_ASSIGN(ToolbarModel);
86 }; 89 };
87 90
88 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_ 91 #endif // COMPONENTS_TOOLBAR_TOOLBAR_MODEL_H_
OLDNEW
« no previous file with comments | « components/toolbar/test_toolbar_model.cc ('k') | components/toolbar/toolbar_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698