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

Unified Diff: chrome/browser/fullscreen_aura.cc

Issue 8528017: Temporarfy fix for IsFullscreenMode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/fullscreen_aura.cc
diff --git a/chrome/browser/fullscreen_aura.cc b/chrome/browser/fullscreen_aura.cc
index 593748769794c23a6c1cc7141d25b147d17ddb1b..7dc8d024a2a857a12dadb498e013dd743c3d4d5e 100644
--- a/chrome/browser/fullscreen_aura.cc
+++ b/chrome/browser/fullscreen_aura.cc
@@ -5,12 +5,31 @@
#include "chrome/browser/fullscreen.h"
#include "base/logging.h"
+#include "ui/aura/client/aura_constants.h"
#include "ui/aura/desktop.h"
#include "ui/aura/window.h"
+#include "ui/base/ui_base_types.h"
+
+namespace {
+
+bool CheckIfFullscreenWindowExists(aura::Window* window) {
+ if (window->GetIntProperty(aura::kShowStateKey) == ui::SHOW_STATE_FULLSCREEN)
+ return true;
+ aura::Window::Windows children = window->children();
+ for (aura::Window::Windows::const_iterator i = children.begin();
+ i != children.end();
+ ++i) {
+ if (CheckIfFullscreenWindowExists(*i))
+ return true;
+ }
+ return false;
+}
+
+} // namespace
bool IsFullScreenMode() {
// This is used only by notification_ui_manager.cc. On aura, notification
- // will be managed in panel and no need to provide this functionality.
- NOTREACHED();
- return false;
+ // will be managed in panel. This is temporary to get certain feature running
+ // until we implement it for aura.
+ return CheckIfFullscreenWindowExists(aura::Desktop::GetInstance());
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698