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

Unified Diff: chrome/browser/ui/views/chrome_views_delegate_chromeos.cc

Issue 2279163002: cros: Bind password echo with TouchView mode
Patch Set: fix typo Created 4 years, 4 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
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_views_delegate_chromeos.cc
diff --git a/chrome/browser/ui/views/chrome_views_delegate_chromeos.cc b/chrome/browser/ui/views/chrome_views_delegate_chromeos.cc
index c02b480d014ad3313d2fca93ff61a46fb6927ece..ead72958b877c017a535a9bcd50f0931a2c33582 100644
--- a/chrome/browser/ui/views/chrome_views_delegate_chromeos.cc
+++ b/chrome/browser/ui/views/chrome_views_delegate_chromeos.cc
@@ -4,8 +4,20 @@
#include "chrome/browser/ui/views/chrome_views_delegate.h"
+#include "base/time/time.h"
+#include "chrome/browser/chromeos/ui/password_echo_controller.h"
+
views::Widget::InitParams::WindowOpacity
ChromeViewsDelegate::GetOpacityForInitParams(
const views::Widget::InitParams& params) {
return views::Widget::InitParams::TRANSLUCENT_WINDOW;
}
+
+base::TimeDelta ChromeViewsDelegate::GetTextfieldPasswordRevealDuration() {
+ const base::TimeDelta kTextfieldPasswordRevealDuration =
sky 2016/08/26 22:48:00 Did you consider doing this if the mouse recent po
xiyuan 2016/08/26 23:20:31 I see your point. The part that I am not sure is h
+ base::TimeDelta::FromSeconds(1);
+ chromeos::PasswordEchoController* const controller =
+ chromeos::PasswordEchoController::Get();
+ return controller && controller->enabled() ? kTextfieldPasswordRevealDuration
+ : base::TimeDelta();
+}
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698