Home | History | Annotate | Download | only in corewm
      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
      3 // found in the LICENSE file.
      4 
      5 #include "ui/views/corewm/shadow_types.h"
      6 
      7 #include "ui/aura/window_property.h"
      8 
      9 DECLARE_WINDOW_PROPERTY_TYPE(views::corewm::ShadowType);
     10 
     11 namespace views {
     12 namespace corewm {
     13 
     14 void SetShadowType(aura::Window* window, ShadowType shadow_type) {
     15   window->SetProperty(kShadowTypeKey, shadow_type);
     16 }
     17 
     18 ShadowType GetShadowType(aura::Window* window) {
     19   return window->GetProperty(kShadowTypeKey);
     20 }
     21 
     22 DEFINE_WINDOW_PROPERTY_KEY(ShadowType, kShadowTypeKey, SHADOW_TYPE_NONE);
     23 
     24 }  // namespace corewm
     25 }  // namespace views
     26