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

Side by Side Diff: ash/wm/always_on_top_controller.cc

Issue 115153002: wm: public window_types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ozone deps Created 7 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
« no previous file with comments | « ash/test/test_shelf_item_delegate.cc ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/wm/always_on_top_controller.h" 5 #include "ash/wm/always_on_top_controller.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 void AlwaysOnTopController::OnWillRemoveWindow(aura::Window* child) { 50 void AlwaysOnTopController::OnWillRemoveWindow(aura::Window* child) {
51 child->RemoveObserver(this); 51 child->RemoveObserver(this);
52 } 52 }
53 53
54 void AlwaysOnTopController::OnWindowPropertyChanged(aura::Window* window, 54 void AlwaysOnTopController::OnWindowPropertyChanged(aura::Window* window,
55 const void* key, 55 const void* key,
56 intptr_t old) { 56 intptr_t old) {
57 if (key == aura::client::kAlwaysOnTopKey) { 57 if (key == aura::client::kAlwaysOnTopKey) {
58 DCHECK(window->type() == aura::client::WINDOW_TYPE_NORMAL || 58 DCHECK(window->type() == ui::wm::WINDOW_TYPE_NORMAL ||
59 window->type() == aura::client::WINDOW_TYPE_POPUP); 59 window->type() == ui::wm::WINDOW_TYPE_POPUP);
60 aura::Window* container = GetContainer(window); 60 aura::Window* container = GetContainer(window);
61 if (window->parent() != container) 61 if (window->parent() != container)
62 container->AddChild(window); 62 container->AddChild(window);
63 } 63 }
64 } 64 }
65 65
66 void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) { 66 void AlwaysOnTopController::OnWindowDestroyed(aura::Window* window) {
67 if (window == always_on_top_container_) 67 if (window == always_on_top_container_)
68 always_on_top_container_ = NULL; 68 always_on_top_container_ = NULL;
69 } 69 }
70 70
71 } // namespace internal 71 } // namespace internal
72 } // namespace ash 72 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/test_shelf_item_delegate.cc ('k') | ash/wm/dock/docked_window_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698