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

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

Issue 8711003: Enable WebUI ScreenLocker for aura by abstracting lock window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup unnecessary forward references. 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_
7 #pragma once
8
9 class DOMView;
10
11 namespace views {
12 class Widget;
13 }
14
15 namespace chromeos {
16
17 // This is the interface which lock windows used for the WebUI screen locker
18 // implement.
19 class LockWindow {
20 public:
21 // This class provides an interface for the lock window to notify an observer
22 // about its status.
23 class Observer {
24 public:
25 // This method will be called when the lock window has finished all
26 // initialization.
27 virtual void OnLockWindowReady() = 0;
28 };
29
30 LockWindow();
31
32 // Attempt to grab inputs on |dom_view|, the actual view displaying the lock
33 // screen DOM.
34 virtual void Grab(DOMView* dom_view) = 0;
35
36 // Returns the actual widget for the lock window.
37 virtual views::Widget* GetWidget() = 0;
38
39 // Sets the observer class which is notified on lock window events.
40 void set_observer(Observer* observer) {
41 observer_ = observer;
42 }
43
44 // Creates an instance of the platform specific lock window.
45 static LockWindow* Create();
46
47 protected:
48 // The observer's OnLockWindowReady method will be called when the lock
49 // window has finished all initialization.
50 Observer* observer_;
51 };
52
53 } // namespace chromeos
54
55 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698