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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate_chromeos.cc

Issue 2279163002: cros: Bind password echo with TouchView mode
Patch Set: do not run for mash to fix mash test 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 | « chrome/browser/ui/views/chrome_views_delegate.h ('k') | chrome/chrome_browser_chromeos.gypi » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "chrome/browser/ui/views/chrome_views_delegate.h" 5 #include "chrome/browser/ui/views/chrome_views_delegate.h"
6 6
7 #include "base/time/time.h"
8 #include "chrome/browser/chromeos/ui/password_echo_controller.h"
9
7 views::Widget::InitParams::WindowOpacity 10 views::Widget::InitParams::WindowOpacity
8 ChromeViewsDelegate::GetOpacityForInitParams( 11 ChromeViewsDelegate::GetOpacityForInitParams(
9 const views::Widget::InitParams& params) { 12 const views::Widget::InitParams& params) {
10 return views::Widget::InitParams::TRANSLUCENT_WINDOW; 13 return views::Widget::InitParams::TRANSLUCENT_WINDOW;
11 } 14 }
15
16 base::TimeDelta ChromeViewsDelegate::GetTextfieldPasswordRevealDuration() {
17 const base::TimeDelta kTextfieldPasswordRevealDuration =
18 base::TimeDelta::FromSeconds(1);
19 chromeos::PasswordEchoController* const controller =
20 chromeos::PasswordEchoController::Get();
21 return controller && controller->enabled() ? kTextfieldPasswordRevealDuration
22 : base::TimeDelta();
23 }
OLDNEW
« 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