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

Unified 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: Reviewer comments. Created 9 years, 1 month 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/chromeos/cros_stubs_aura.cc ('k') | chrome/browser/chromeos/login/lock_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/lock_window.h
diff --git a/chrome/browser/chromeos/login/lock_window.h b/chrome/browser/chromeos/login/lock_window.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f4189b4bb5cf5e54f0a8a97c61f6c1c39da43ac
--- /dev/null
+++ b/chrome/browser/chromeos/login/lock_window.h
@@ -0,0 +1,59 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_
+#define CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_
+#pragma once
+
+#include "base/basictypes.h"
+
+class DOMView;
+
+namespace views {
+class Widget;
+}
+
+namespace chromeos {
+
+// This is the interface which lock windows used for the WebUI screen locker
+// implement.
+class LockWindow {
+ public:
+ // This class provides an interface for the lock window to notify an observer
+ // about its status.
+ class Observer {
+ public:
+ // This method will be called when the lock window has finished all
+ // initialization.
+ virtual void OnLockWindowReady() = 0;
+ };
+
+ LockWindow();
+
+ // Attempt to grab inputs on |dom_view|, the actual view displaying the lock
+ // screen DOM.
+ virtual void Grab(DOMView* dom_view) = 0;
+
+ // Returns the actual widget for the lock window.
+ virtual views::Widget* GetWidget() = 0;
+
+ // Sets the observer class which is notified on lock window events.
+ void set_observer(Observer* observer) {
+ observer_ = observer;
+ }
+
+ // Creates an instance of the platform specific lock window.
+ static LockWindow* Create();
+
+ protected:
+ // The observer's OnLockWindowReady method will be called when the lock
+ // window has finished all initialization.
+ Observer* observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(LockWindow);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOCK_WINDOW_H_
« no previous file with comments | « chrome/browser/chromeos/cros_stubs_aura.cc ('k') | chrome/browser/chromeos/login/lock_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698