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

Unified Diff: chrome/browser/chromeos/cros/screen_lock_library.h

Issue 7524014: cros: Remove the unneed default ctor from ScreenLockLibrary interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/cros/screen_lock_library.h
diff --git a/chrome/browser/chromeos/cros/screen_lock_library.h b/chrome/browser/chromeos/cros/screen_lock_library.h
index 5bc70c73b593fa62eef2dfef78d0f888708f468e..730f9501c20d8cf9509600f78562abdb09d29a91 100644
--- a/chrome/browser/chromeos/cros/screen_lock_library.h
+++ b/chrome/browser/chromeos/cros/screen_lock_library.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// 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.
@@ -6,33 +6,34 @@
#define CHROME_BROWSER_CHROMEOS_CROS_SCREEN_LOCK_LIBRARY_H_
#pragma once
-#include "base/observer_list.h"
-#include "third_party/cros/chromeos_screen_lock.h"
-
namespace chromeos {
-// This interface defines interaction with the ChromeOS screen lock
-// APIs.
+// This interface handles the interaction with the ChromeOS screen lock API.
class ScreenLockLibrary {
public:
class Observer {
public:
virtual ~Observer() {}
+
virtual void LockScreen(ScreenLockLibrary* obj) = 0;
virtual void UnlockScreen(ScreenLockLibrary* obj) = 0;
virtual void UnlockScreenFailed(ScreenLockLibrary* obj) = 0;
};
- ScreenLockLibrary() {}
+
virtual ~ScreenLockLibrary() {}
+
virtual void AddObserver(Observer* observer) = 0;
virtual void RemoveObserver(Observer* observer) = 0;
// Notifies PowerManager that screen lock has been completed.
virtual void NotifyScreenLockCompleted() = 0;
+
// Notifies PowerManager that a user requested to lock the screen.
virtual void NotifyScreenLockRequested() = 0;
+
// Notifies PowerManager that a user unlocked the screen.
virtual void NotifyScreenUnlockRequested() = 0;
+
// Notifies PowerManager that screen is unlocked.
virtual void NotifyScreenUnlockCompleted() = 0;

Powered by Google App Engine
This is Rietveld 408576698