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

Side by Side Diff: chrome/browser/chromeos/login/screen_locker_views.h

Issue 8557005: Rebase the MessageBubble on the new views bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 9 years 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SCREEN_LOCKER_VIEWS_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_VIEWS_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_VIEWS_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/chromeos/login/captcha_view.h" 9 #include "chrome/browser/chromeos/login/captcha_view.h"
10 #include "chrome/browser/chromeos/login/message_bubble.h" 10 #include "chrome/browser/chromeos/login/message_bubble.h"
11 #include "chrome/browser/chromeos/login/screen_locker_delegate.h" 11 #include "chrome/browser/chromeos/login/screen_locker_delegate.h"
12 12
13 #if defined(TOOLKIT_USES_GTK)
14 #include "ui/base/gtk/gtk_signal.h"
15 #endif
16
13 namespace chromeos { 17 namespace chromeos {
14 18
15 class BackgroundView; 19 class BackgroundView;
16 class InputEventObserver; 20 class InputEventObserver;
17 class LockerInputEventObserver; 21 class LockerInputEventObserver;
18 class MessageBubble; 22 class MessageBubble;
19 class MouseEventRelay; 23 class MouseEventRelay;
20 class ScreenLocker; 24 class ScreenLocker;
21 class ScreenLockView; 25 class ScreenLockView;
22 26
23 namespace test { 27 namespace test {
24 class ScreenLockerTester; 28 class ScreenLockerTester;
25 } 29 }
26 30
27 // This version of ScreenLockerDelegate displays a views interface. This class 31 // This version of ScreenLockerDelegate displays a views interface. This class
28 // shows a BackgroundView and a Signout button as well as creating a 32 // shows a BackgroundView and a Signout button as well as creating a
29 // ScreenLockView to allow the user to log in. 33 // ScreenLockView to allow the user to log in.
30 class ScreenLockerViews : public ScreenLockerDelegate, 34 class ScreenLockerViews : public ScreenLockerDelegate,
31 public MessageBubbleDelegate,
32 public CaptchaView::Delegate, 35 public CaptchaView::Delegate,
33 public ui::AcceleratorTarget { 36 public ui::AcceleratorTarget,
37 public views::Widget::Observer {
34 public: 38 public:
35 // Interface that helps switching from ScreenLockView to CaptchaView. 39 // Interface that helps switching from ScreenLockView to CaptchaView.
36 class ScreenLockViewContainer { 40 class ScreenLockViewContainer {
37 public: 41 public:
38 virtual void SetScreenLockView(views::View* screen_lock_view) = 0; 42 virtual void SetScreenLockView(views::View* screen_lock_view) = 0;
39 43
40 protected: 44 protected:
41 virtual ~ScreenLockViewContainer(); 45 virtual ~ScreenLockViewContainer();
42 }; 46 };
43 47
(...skipping 16 matching lines...) Expand all
60 virtual void ScreenLockReady() OVERRIDE; 64 virtual void ScreenLockReady() OVERRIDE;
61 virtual void OnAuthenticate() OVERRIDE; 65 virtual void OnAuthenticate() OVERRIDE;
62 virtual void SetInputEnabled(bool enabled) OVERRIDE; 66 virtual void SetInputEnabled(bool enabled) OVERRIDE;
63 virtual void SetSignoutEnabled(bool enabled) OVERRIDE; 67 virtual void SetSignoutEnabled(bool enabled) OVERRIDE;
64 virtual void ShowErrorMessage(const string16& message, 68 virtual void ShowErrorMessage(const string16& message,
65 bool sign_out_only) OVERRIDE; 69 bool sign_out_only) OVERRIDE;
66 virtual void ShowCaptchaAndErrorMessage(const GURL& captcha_url, 70 virtual void ShowCaptchaAndErrorMessage(const GURL& captcha_url,
67 const string16& message) OVERRIDE; 71 const string16& message) OVERRIDE;
68 virtual void ClearErrors() OVERRIDE; 72 virtual void ClearErrors() OVERRIDE;
69 73
70 // Overridden from views::BubbleDelegate. 74 // views::Widget::Observer implementation:
71 virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) OVERRIDE; 75 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
72 virtual bool CloseOnEscape() OVERRIDE;
73 virtual bool FadeInOnShow() OVERRIDE;
74 virtual void OnLinkActivated(size_t index) OVERRIDE;
75 76
76 // CaptchaView::Delegate implementation: 77 // CaptchaView::Delegate implementation:
77 virtual void OnCaptchaEntered(const std::string& captcha) OVERRIDE; 78 virtual void OnCaptchaEntered(const std::string& captcha) OVERRIDE;
78 79
79 private: 80 private:
80 friend class LockerInputEventObserver; 81 friend class LockerInputEventObserver;
81 friend class test::ScreenLockerTester; 82 friend class test::ScreenLockerTester;
82 83
83 virtual ~ScreenLockerViews(); 84 virtual ~ScreenLockerViews();
84 85
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 148
148 // True if both mouse input and keyboard input are grabbed. 149 // True if both mouse input and keyboard input are grabbed.
149 bool input_grabbed_; 150 bool input_grabbed_;
150 151
151 DISALLOW_COPY_AND_ASSIGN(ScreenLockerViews); 152 DISALLOW_COPY_AND_ASSIGN(ScreenLockerViews);
152 }; 153 };
153 154
154 } // namespace chromeos 155 } // namespace chromeos
155 156
156 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_VIEWS_H_ 157 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SCREEN_LOCKER_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_lock_view.cc ('k') | chrome/browser/chromeos/login/screen_locker_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698