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

Side by Side Diff: chrome/browser/chromeos/login/ui/lock_window_aura.h

Issue 371923002: cros: Fixes the text input focus when screen is locked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed to use WidgetDelegate::GetInitiallyFocusedView. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/chromeos/login/ui/lock_window.h" 9 #include "chrome/browser/chromeos/login/ui/lock_window.h"
10 #include "ui/views/widget/widget.h" 10 #include "ui/views/widget/widget.h"
11 #include "ui/views/widget/widget_delegate.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 14
14 class LockWindowAura : public views::Widget, 15 class LockWindowAura : public views::Widget,
16 public views::WidgetDelegate,
15 public LockWindow { 17 public LockWindow {
16 public: 18 public:
17 // LockWindow implementation: 19 // LockWindow implementation:
18 virtual void Grab() OVERRIDE; 20 virtual void Grab() OVERRIDE;
19 virtual views::Widget* GetWidget() OVERRIDE; 21 virtual views::Widget* GetWidget() OVERRIDE;
20 22
23 // views::WidgetDelegate implementation:
24 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
25 virtual const views::Widget* GetWidget() const OVERRIDE;
26
21 private: 27 private:
22 friend class LockWindow; 28 friend class LockWindow;
23 29
24 LockWindowAura(); 30 LockWindowAura();
25 virtual ~LockWindowAura(); 31 virtual ~LockWindowAura();
26 32
27 // Initialize the Aura lock window. 33 // Initialize the Aura lock window.
28 void Init(); 34 void Init();
29 35
30 DISALLOW_COPY_AND_ASSIGN(LockWindowAura); 36 DISALLOW_COPY_AND_ASSIGN(LockWindowAura);
31 }; 37 };
32 38
33 } // namespace chromeos 39 } // namespace chromeos
34 40
35 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_ 41 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOCK_WINDOW_AURA_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/lock_window.cc ('k') | chrome/browser/chromeos/login/ui/lock_window_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698