view_constants_aura.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. // Copyright 2013 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. #ifndef UI_VIEWS_VIEW_CONSTANTS_AURA_H_
  5. #define UI_VIEWS_VIEW_CONSTANTS_AURA_H_
  6. #include "ui/aura/window.h"
  7. #include "ui/views/views_export.h"
  8. namespace views {
  9. class View;
  10. // A property key to indicate the view the window is associated with. If
  11. // specified, the z-order of the view, relative to other views, dictates the
  12. // z-order of the window and its associated layer. The associated view must
  13. // have the same parent widget as the window on which the property is set.
  14. VIEWS_EXPORT extern const aura::WindowProperty<View*>* const kHostViewKey;
  15. } // namespace views
  16. // Declaring the template specialization here to make sure that the
  17. // compiler in all builds, including jumbo builds, always knows about
  18. // the specialization before the first template instance use. Using a
  19. // template instance before its specialization is declared in a
  20. // translation unit is a C++ error.
  21. DECLARE_EXPORTED_UI_CLASS_PROPERTY_TYPE(VIEWS_EXPORT, views::View*)
  22. #endif // UI_VIEWS_VIEW_CONSTANTS_AURA_H_