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

Side by Side Diff: chrome/browser/platform_util_aura.cc

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 12 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 unified diff | Download patch | Annotate | Revision Log
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/platform_util.h" 5 #include "chrome/browser/platform_util.h"
6 6
7 #include "ash/wm/window_util.h" 7 #include "ash/wm/window_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 10
11 namespace platform_util { 11 namespace platform_util {
12 12
13 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { 13 gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
14 return view->GetToplevelWindow(); 14 return view->GetToplevelWindow();
15 } 15 }
16 16
17 gfx::NativeView GetParent(gfx::NativeView view) { 17 gfx::NativeView GetParent(gfx::NativeView view) {
18 return view->parent(); 18 return view->parent();
19 } 19 }
20 20
21 bool IsWindowActive(gfx::NativeWindow window) { 21 bool IsWindowActive(gfx::NativeWindow window) {
22 return aura_shell::IsActiveWindow(window); 22 return ash::IsActiveWindow(window);
23 } 23 }
24 24
25 void ActivateWindow(gfx::NativeWindow window) { 25 void ActivateWindow(gfx::NativeWindow window) {
26 aura_shell::ActivateWindow(window); 26 ash::ActivateWindow(window);
27 } 27 }
28 28
29 bool IsVisible(gfx::NativeView view) { 29 bool IsVisible(gfx::NativeView view) {
30 return view->IsVisible(); 30 return view->IsVisible();
31 } 31 }
32 32
33 } // namespace platform_util 33 } // namespace platform_util
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698