From 40c15eb2c9d846fe70502e1f50ff7c2d6cb4ff67 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 26 Apr 2012 19:20:28 +0000 Subject: Make views_examples work in aura without ash. This required a ScreenImpl implementation for windows+aura. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10241005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134136 0039d316-1c4b-4281-b951-d872f2087c98 --- ui/base/view_prop.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui/base/view_prop.cc') diff --git a/ui/base/view_prop.cc b/ui/base/view_prop.cc index 119228f..cb58553 100644 --- a/ui/base/view_prop.cc +++ b/ui/base/view_prop.cc @@ -13,7 +13,7 @@ class ViewProp::Data : public base::RefCounted { public: // Returns the Data* for the view/key pair. If |create| is false and |Get| // has not been invoked for the view/key pair, NULL is returned. - static void Get(gfx::NativeView view, + static void Get(gfx::AcceleratedWidget view, const char* key, bool create, scoped_refptr* data) { @@ -51,7 +51,7 @@ class ViewProp::Data : public base::RefCounted { typedef std::set DataSet; - Data(gfx::NativeView view, const char* key) + Data(gfx::AcceleratedWidget view, const char* key) : view_(view), key_(key), data_(NULL) {} @@ -67,7 +67,7 @@ class ViewProp::Data : public base::RefCounted { // The existing set of Data is stored here. ~Data removes from the set. static DataSet* data_set_; - const gfx::NativeView view_; + const gfx::AcceleratedWidget view_; const char* key_; void* data_; @@ -77,7 +77,7 @@ class ViewProp::Data : public base::RefCounted { // static ViewProp::Data::DataSet* ViewProp::Data::data_set_ = NULL; -ViewProp::ViewProp(gfx::NativeView view, const char* key, void* data) { +ViewProp::ViewProp(gfx::AcceleratedWidget view, const char* key, void* data) { Data::Get(view, key, true, &data_); data_->set_data(data); } @@ -89,7 +89,7 @@ ViewProp::~ViewProp() { } // static -void* ViewProp::GetValue(gfx::NativeView view, const char* key) { +void* ViewProp::GetValue(gfx::AcceleratedWidget view, const char* key) { scoped_refptr data; Data::Get(view, key, false, &data); return data.get() ? data->data() : NULL; -- cgit v1.1