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

Unified Diff: chrome/browser/chromeos/login/screen_locker_tester.cc

Issue 2832063: Exit Fullscreen when screen is locked (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: minor change to fix edge case. Created 10 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
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_tester.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/screen_locker_tester.cc
diff --git a/chrome/browser/chromeos/login/screen_locker_tester.cc b/chrome/browser/chromeos/login/screen_locker_tester.cc
index b399baaa665e9bfa7bab45801f27cbcba001a122..8172fb9cf379137d3250232101e24b840ff18727 100644
--- a/chrome/browser/chromeos/login/screen_locker_tester.cc
+++ b/chrome/browser/chromeos/login/screen_locker_tester.cc
@@ -15,6 +15,7 @@
#include "views/controls/label.h"
#include "views/controls/textfield/textfield.h"
#include "views/widget/widget_gtk.h"
+#include "views/widget/root_view.h"
namespace chromeos {
@@ -24,8 +25,9 @@ test::ScreenLockerTester* ScreenLocker::GetTester() {
namespace test {
-bool ScreenLockerTester::IsOpen() {
- return chromeos::ScreenLocker::screen_locker_ != NULL;
+bool ScreenLockerTester::IsLocked() {
+ return ScreenLocker::screen_locker_ != NULL &&
+ ScreenLocker::screen_locker_->lock_widget_->GetRootView()->IsVisible();
}
void ScreenLockerTester::InjectMockAuthenticator(
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_tester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698