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

Unified Diff: chrome/browser/ui/toolbar/test_toolbar_model.h

Issue 1566563002: Vectorize CrOS window control icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dummy GetIcon impl in TestToolbarModel Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/toolbar/test_toolbar_model.h
diff --git a/chrome/browser/ui/toolbar/test_toolbar_model.h b/chrome/browser/ui/toolbar/test_toolbar_model.h
index e563403bf9e6c54bffe2c337fa1411415e42b932..c1fbc3abc25887c4ca93d24de2245da1ce38f62b 100644
--- a/chrome/browser/ui/toolbar/test_toolbar_model.h
+++ b/chrome/browser/ui/toolbar/test_toolbar_model.h
@@ -12,6 +12,10 @@
#include "base/strings/string16.h"
#include "chrome/browser/ui/toolbar/chrome_toolbar_model.h"
+namespace gfx {
+enum class VectorIconId;
+}
+
// A ToolbarModel that is backed by instance variables, which are initialized
// with some basic values that can be changed with the provided setters. This
// should be used only for testing.
@@ -40,7 +44,7 @@ class TestToolbarModel : public ChromeToolbarModel {
void set_security_level(SecurityStateModel::SecurityLevel security_level) {
security_level_ = security_level;
}
- void set_icon(int icon) { icon_ = icon; }
+ void set_icon(gfx::VectorIconId icon) { icon_ = icon; }
void set_ev_cert_name(const base::string16& ev_cert_name) {
ev_cert_name_ = ev_cert_name;
}
@@ -53,7 +57,7 @@ class TestToolbarModel : public ChromeToolbarModel {
GURL url_;
bool perform_search_term_replacement_;
SecurityStateModel::SecurityLevel security_level_;
- int icon_;
+ gfx::VectorIconId icon_;
base::string16 ev_cert_name_;
bool should_display_url_;

Powered by Google App Engine
This is Rietveld 408576698