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

Unified Diff: ui/aura/window_port.h

Issue 2632543003: Refactor and push window properties up to class properties. (Closed)
Patch Set: More build fixes 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: ui/aura/window_port.h
diff --git a/ui/aura/window_port.h b/ui/aura/window_port.h
index b82305d2206d07bb9c13d90de7e01b41552fede0..cc1ee5471588fca664cf796f38743235995bffe5 100644
--- a/ui/aura/window_port.h
+++ b/ui/aura/window_port.h
@@ -13,6 +13,7 @@
#include "base/observer_list.h"
#include "base/strings/string16.h"
#include "ui/aura/aura_export.h"
+#include "ui/base/class_property.h"
namespace gfx {
class Rect;
@@ -23,11 +24,6 @@ namespace aura {
class Window;
class WindowObserver;
-// See comments in OnWillChangeProperty() for details.
-struct AURA_EXPORT WindowPortPropertyData {
- virtual ~WindowPortPropertyData() {}
-};
-
// WindowPort defines an interface to enable Window to be used with or without
// mus. WindowPort is owned by Window and called at key points in Windows
// lifetime that enable Window to be used in both environments.
@@ -65,14 +61,14 @@ class AURA_EXPORT WindowPort {
// Called before a property is changed. The return value from this is supplied
// into OnPropertyChanged() so that WindowPort may pass data between the two
// calls.
- virtual std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty(
+ virtual std::unique_ptr<ui::PropertyData> OnWillChangeProperty(
const void* key) = 0;
// Called after a property changes, but before observers are notified. |data|
// is the return value from OnWillChangeProperty().
virtual void OnPropertyChanged(
const void* key,
- std::unique_ptr<WindowPortPropertyData> data) = 0;
+ std::unique_ptr<ui::PropertyData> data) = 0;
protected:
// Returns the WindowPort associated with a Window.
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_port_local.h » ('j') | ui/base/class_property.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698