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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/fullscreen.h" 5 #include "chrome/browser/fullscreen.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/client/aura_constants.h"
8 #include "ui/aura/desktop.h" 9 #include "ui/aura/desktop.h"
9 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
11 #include "ui/base/ui_base_types.h"
12
13 namespace {
14
15 bool CheckIfFullscreenWindowExists(aura::Window* window) {
16 if (window->GetIntProperty(aura::kShowStateKey) == ui::SHOW_STATE_FULLSCREEN)
17 return true;
18 aura::Window::Windows children = window->children();
19 for (aura::Window::Windows::const_iterator i = children.begin();
20 i != children.end();
21 ++i) {
22 if (CheckIfFullscreenWindowExists(*i))
23 return true;
24 }
25 return false;
26 }
27
28 } // namespace
10 29
11 bool IsFullScreenMode() { 30 bool IsFullScreenMode() {
12 // This is used only by notification_ui_manager.cc. On aura, notification 31 // This is used only by notification_ui_manager.cc. On aura, notification
13 // will be managed in panel and no need to provide this functionality. 32 // will be managed in panel. This is temporary to get certain feature running
14 NOTREACHED(); 33 // until we implement it for aura.
15 return false; 34 return CheckIfFullscreenWindowExists(aura::Desktop::GetInstance());
16 } 35 }
OLDNEW
« 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