| OLD | NEW | 
|    1 // Copyright 2016 The Chromium Authors. All rights reserved. |    1 // Copyright 2016 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/aura/wm_window_aura.h" |    5 #include "ash/aura/wm_window_aura.h" | 
|    6  |    6  | 
|    7 #include "ash/aura/aura_layout_manager_adapter.h" |    7 #include "ash/aura/aura_layout_manager_adapter.h" | 
|    8 #include "ash/aura/wm_root_window_controller_aura.h" |    8 #include "ash/aura/wm_root_window_controller_aura.h" | 
|    9 #include "ash/aura/wm_shell_aura.h" |    9 #include "ash/aura/wm_shell_aura.h" | 
|   10 #include "ash/common/ash_constants.h" |   10 #include "ash/common/ash_constants.h" | 
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  181 } |  181 } | 
|  182  |  182  | 
|  183 int WmWindowAura::GetShellWindowId() const { |  183 int WmWindowAura::GetShellWindowId() const { | 
|  184   return window_->id(); |  184   return window_->id(); | 
|  185 } |  185 } | 
|  186  |  186  | 
|  187 ui::wm::WindowType WmWindowAura::GetType() const { |  187 ui::wm::WindowType WmWindowAura::GetType() const { | 
|  188   return window_->type(); |  188   return window_->type(); | 
|  189 } |  189 } | 
|  190  |  190  | 
 |  191 int WmWindowAura::GetAppType() const { | 
 |  192   return window_->GetProperty(aura::client::kAppType); | 
 |  193 } | 
 |  194  | 
 |  195 void WmWindowAura::SetAppType(int app_type) const { | 
 |  196   window_->SetProperty(aura::client::kAppType, app_type); | 
 |  197 } | 
 |  198  | 
|  191 bool WmWindowAura::IsBubble() { |  199 bool WmWindowAura::IsBubble() { | 
|  192   views::Widget* widget = views::Widget::GetWidgetForNativeView(window_); |  200   views::Widget* widget = views::Widget::GetWidgetForNativeView(window_); | 
|  193   return widget->widget_delegate()->AsBubbleDialogDelegate() != nullptr; |  201   return widget->widget_delegate()->AsBubbleDialogDelegate() != nullptr; | 
|  194 } |  202 } | 
|  195  |  203  | 
|  196 ui::Layer* WmWindowAura::GetLayer() { |  204 ui::Layer* WmWindowAura::GetLayer() { | 
|  197   return window_->layer(); |  205   return window_->layer(); | 
|  198 } |  206 } | 
|  199  |  207  | 
|  200 display::Display WmWindowAura::GetDisplayNearestWindow() { |  208 display::Display WmWindowAura::GetDisplayNearestWindow() { | 
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  884                     OnTransientChildAdded(this, Get(transient))); |  892                     OnTransientChildAdded(this, Get(transient))); | 
|  885 } |  893 } | 
|  886  |  894  | 
|  887 void WmWindowAura::OnTransientChildRemoved(aura::Window* window, |  895 void WmWindowAura::OnTransientChildRemoved(aura::Window* window, | 
|  888                                            aura::Window* transient) { |  896                                            aura::Window* transient) { | 
|  889   FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, |  897   FOR_EACH_OBSERVER(WmTransientWindowObserver, transient_observers_, | 
|  890                     OnTransientChildRemoved(this, Get(transient))); |  898                     OnTransientChildRemoved(this, Get(transient))); | 
|  891 } |  899 } | 
|  892  |  900  | 
|  893 }  // namespace ash |  901 }  // namespace ash | 
| OLD | NEW |