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

Unified Diff: ui/views/corewm/shadow_types.h

Issue 11275296: Move shadow code to views\corewm (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/corewm/shadow_controller_unittest.cc ('k') | ui/views/corewm/shadow_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/shadow_types.h
===================================================================
--- ui/views/corewm/shadow_types.h (revision 167460)
+++ ui/views/corewm/shadow_types.h (working copy)
@@ -2,17 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_SHADOW_TYPES_H_
-#define ASH_WM_SHADOW_TYPES_H_
+#ifndef UI_VIEWS_COREWM_SHADOW_TYPES_H_
+#define UI_VIEWS_COREWM_SHADOW_TYPES_H_
-#include "ash/ash_export.h"
+#include "ui/aura/window.h"
+#include "ui/views/views_export.h"
namespace aura {
class Window;
}
-namespace ash {
-namespace internal {
+namespace views {
+namespace corewm {
// Different types of drop shadows that can be drawn under a window by the
// shell. Used as a value for the kShadowTypeKey property.
@@ -22,10 +23,14 @@
SHADOW_TYPE_RECTANGULAR,
};
-ASH_EXPORT void SetShadowType(aura::Window* window, ShadowType shadow_type);
-ASH_EXPORT ShadowType GetShadowType(aura::Window* window);
+VIEWS_EXPORT void SetShadowType(aura::Window* window, ShadowType shadow_type);
+VIEWS_EXPORT ShadowType GetShadowType(aura::Window* window);
-} // namespace internal
-} // namespace ash
+// A property key describing the drop shadow that should be displayed under the
+// window. If unset, no shadow is displayed.
+extern const aura::WindowProperty<ShadowType>* const kShadowTypeKey;
-#endif // ASH_WM_SHADOW_TYPES_H_
+} // namespace corewm
+} // namespace views
+
+#endif // UI_VIEWS_COREWM_SHADOW_TYPES_H_
« no previous file with comments | « ui/views/corewm/shadow_controller_unittest.cc ('k') | ui/views/corewm/shadow_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698