OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/aura/window_property.h" |
| 6 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" |
| 7 |
| 8 DECLARE_WINDOW_PROPERTY_TYPE(views::DesktopNativeWidgetAura*); |
| 9 |
| 10 namespace views { |
| 11 |
| 12 DEFINE_WINDOW_PROPERTY_KEY(DesktopNativeWidgetAura*, |
| 13 kDesktopNativeWidgetAuraKey, NULL); |
| 14 |
| 15 // static |
| 16 DesktopNativeWidgetAura* DesktopNativeWidgetAura::ForWindow( |
| 17 aura::Window* window) { |
| 18 return window->GetProperty(kDesktopNativeWidgetAuraKey); |
| 19 } |
| 20 |
| 21 // static |
| 22 void DesktopNativeWidgetAura::SetForWindow( |
| 23 aura::Window* window, |
| 24 DesktopNativeWidgetAura* desktop_native_widget) { |
| 25 window->SetProperty(kDesktopNativeWidgetAuraKey, desktop_native_widget); |
| 26 } |
| 27 |
| 28 } // namespace views |
OLD | NEW |