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

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

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_types.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/corewm/shadow_types.cc
===================================================================
--- ui/views/corewm/shadow_types.cc (revision 167460)
+++ ui/views/corewm/shadow_types.cc (working copy)
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ash/wm/shadow_types.h"
+#include "ui/views/corewm/shadow_types.h"
-#include "ash/wm/window_properties.h"
-#include "ui/aura/window.h"
+#include "ui/aura/window_property.h"
-namespace ash {
-namespace internal {
+DECLARE_WINDOW_PROPERTY_TYPE(views::corewm::ShadowType);
+namespace views {
+namespace corewm {
+
void SetShadowType(aura::Window* window, ShadowType shadow_type) {
window->SetProperty(kShadowTypeKey, shadow_type);
}
@@ -18,5 +19,7 @@
return window->GetProperty(kShadowTypeKey);
}
-} // namespace internal
-} // namespace ash
+DEFINE_WINDOW_PROPERTY_KEY(ShadowType, kShadowTypeKey, SHADOW_TYPE_NONE);
+
+} // namespace corewm
+} // namespace views
« no previous file with comments | « ui/views/corewm/shadow_types.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698