Lines Matching full:data
11 // Maints the actual view, key and data.
12 class ViewProp::Data : public base::RefCounted<ViewProp::Data> {
14 // Returns the Data* for the view/key pair. If |create| is false and |Get|
19 scoped_refptr<Data>* data) {
22 scoped_refptr<Data> new_data(new Data(view, key));
25 *data = *i;
31 *data = new_data.get();
34 // The data.
35 void set_data(void* data) { data_ = data; }
36 void* data() const { return data_; }
41 friend class base::RefCounted<Data>;
43 // Used to order the Data in the map.
46 bool operator()(const Data* d1, const Data* d2) const {
52 typedef std::set<Data*, DataComparator> DataSet;
54 Data(gfx::AcceleratedWidget view, const char* key)
59 ~Data() {
67 // The existing set of Data is stored here. ~Data removes from the set.
74 DISALLOW_COPY_AND_ASSIGN(Data);
78 ViewProp::Data::DataSet* ViewProp::Data::data_set_ = NULL;
80 ViewProp::ViewProp(gfx::AcceleratedWidget view, const char* key, void* data) {
81 Data::Get(view, key, true, &data_);
82 data_->set_data(data);
93 scoped_refptr<Data> data;
94 Data::Get(view, key, false, &data);
95 return data.get() ? data->data() : NULL;