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

Unified Diff: chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h

Issue 1016003002: Show the password bubble even if the browser window has no focus. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed the comments from sky@ Created 5 years, 9 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/views/passwords/manage_passwords_bubble_view.h
diff --git a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
index 34874f4b85ee1aad3ab74d237942dfe87c3d6767..e40a5aa48bf0ea79d2c2b654109d938d4f0ed33f 100644
--- a/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
+++ b/chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h
@@ -45,10 +45,16 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble,
content::WebContents* web_contents() const;
+#if defined(UNIT_TEST)
const View* initially_focused_view() const {
return initially_focused_view_;
}
+ static void set_auto_signin_toast_timeout(int seconds) {
+ auto_signin_toast_timeout_ = seconds;
+ }
+#endif
+
private:
class AccountChooserView;
class AutoSigninView;
@@ -100,6 +106,9 @@ class ManagePasswordsBubbleView : public ManagePasswordsBubble,
// be deleted when the bubble closes.
static ManagePasswordsBubbleView* manage_passwords_bubble_;
+ // The timeout in seconds for the auto sign-in toast.
+ static int auto_signin_toast_timeout_;
+
ManagePasswordsIconView* anchor_view_;
views::View* initially_focused_view_;
« no previous file with comments | « chrome/browser/ui/browser_commands.cc ('k') | chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698