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

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

Issue 8926004: Revert 114095 - Move the concept of Activation to the Shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 "base/logging.h" 7 #include "base/logging.h"
8 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
9 #include "ui/aura_shell/window_util.h"
10 9
11 namespace platform_util { 10 namespace platform_util {
12 11
13 gfx::NativeWindow GetTopLevel(gfx::NativeView view) { 12 gfx::NativeWindow GetTopLevel(gfx::NativeView view) {
14 return view->GetToplevelWindow(); 13 return view->GetToplevelWindow();
15 } 14 }
16 15
17 gfx::NativeView GetParent(gfx::NativeView view) { 16 gfx::NativeView GetParent(gfx::NativeView view) {
18 return view->parent(); 17 return view->parent();
19 } 18 }
20 19
21 bool IsWindowActive(gfx::NativeWindow window) { 20 bool IsWindowActive(gfx::NativeWindow window) {
22 return aura_shell::IsActiveWindow(window); 21 return window->IsActive();
23 } 22 }
24 23
25 void ActivateWindow(gfx::NativeWindow window) { 24 void ActivateWindow(gfx::NativeWindow window) {
26 aura_shell::ActivateWindow(window); 25 window->Activate();
27 } 26 }
28 27
29 bool IsVisible(gfx::NativeView view) { 28 bool IsVisible(gfx::NativeView view) {
30 return view->IsVisible(); 29 return view->IsVisible();
31 } 30 }
32 31
33 } // namespace platform_util 32 } // namespace platform_util
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider_aura.cc ('k') | chrome/browser/ui/views/aura/chrome_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698