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

Unified Diff: chrome/browser/ui/passwords/manage_passwords_icon.cc

Issue 322253006: Password bubble: Add an "active" icon state, and a new disabled icon. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 500s. Created 6 years, 6 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/passwords/manage_passwords_icon.cc
diff --git a/chrome/browser/ui/passwords/manage_passwords_icon.cc b/chrome/browser/ui/passwords/manage_passwords_icon.cc
index cba65c1ce7787a8fb72486f6452ec09d423a066f..26f2a011ff481fa00d753f522d14eefc46f5b9ca 100644
--- a/chrome/browser/ui/passwords/manage_passwords_icon.cc
+++ b/chrome/browser/ui/passwords/manage_passwords_icon.cc
@@ -5,12 +5,20 @@
#include "chrome/browser/ui/passwords/manage_passwords_icon.h"
ManagePasswordsIcon::ManagePasswordsIcon()
- : state_(password_manager::ui::INACTIVE_STATE) {
+ : state_(password_manager::ui::INACTIVE_STATE),
+ active_(false) {
}
ManagePasswordsIcon::~ManagePasswordsIcon() {
}
+void ManagePasswordsIcon::SetActive(bool active) {
+ if (active_ == active)
+ return;
+ active_ = active;
+ UpdateVisibleUI();
+}
+
void ManagePasswordsIcon::SetState(password_manager::ui::State state) {
if (state_ == state)
return;
« no previous file with comments | « chrome/browser/ui/passwords/manage_passwords_icon.h ('k') | chrome/browser/ui/passwords/manage_passwords_ui_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698