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

Unified Diff: components/exo/surface.cc

Issue 2632543003: Refactor and push window properties up to class properties. (Closed)
Patch Set: Created 3 years, 11 months 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
Index: components/exo/surface.cc
diff --git a/components/exo/surface.cc b/components/exo/surface.cc
index dffcaee6487592251ba2233159b312b3e5792e16..d6fc7455239a5ac3efa9b5b4ecf84c925ec249e8 100644
--- a/components/exo/surface.cc
+++ b/components/exo/surface.cc
@@ -26,8 +26,8 @@
#include "third_party/khronos/GLES2/gl2.h"
#include "ui/aura/env.h"
#include "ui/aura/window_delegate.h"
-#include "ui/aura/window_property.h"
#include "ui/aura/window_targeter.h"
+#include "ui/base/class_property.h"
#include "ui/base/cursor/cursor.h"
#include "ui/base/hit_test.h"
#include "ui/compositor/layer.h"
@@ -41,14 +41,14 @@
#include "ui/gfx/transform_util.h"
#include "ui/views/widget/widget.h"
-DECLARE_WINDOW_PROPERTY_TYPE(exo::Surface*);
+DECLARE_CLASS_PROPERTY_TYPE(exo::Surface*);
namespace exo {
namespace {
// A property key containing the surface that is associated with
// window. If unset, no surface is associated with window.
-DEFINE_WINDOW_PROPERTY_KEY(Surface*, kSurfaceKey, nullptr);
+DEFINE_CLASS_PROPERTY_KEY(Surface*, kSurfaceKey, nullptr);
// Helper function that returns an iterator to the first entry in |list|
// with |key|.
« no previous file with comments | « ash/wm/window_properties.cc ('k') | ui/aura/client/aura_constants.cc » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698