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

Side by Side Diff: experimental/c_salt/property.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 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 unified diff | Download patch
« no previous file with comments | « experimental/c_salt/property.h ('k') | experimental/c_salt/rect.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2010 The Ginsu Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4
5 #include "c_salt/property.h"
6
7 namespace c_salt {
8 Property::Property(const PropertyAttributes& attributes)
9 : name_(attributes.name_),
10 is_static_(attributes.is_static_),
11 is_mutable_(attributes.is_mutable_),
12 value_(attributes.value_) {
13 }
14
15 SharedVariant Property::GetValue() const {
16 // TODO(dspringer,dmichael): Add the observer calls here. boost::signals2?
17 // observers.WillGetProperty(this, value_);
18 return value_;
19 }
20
21 void Property::SetValue(const SharedVariant& new_value) {
22 // TODO(dspringer,dmichael): Add the observer calls here. boost::signals2?
23 // observers.WillSetProperty(this, value_, new_value);
24 value_ = new_value;
25 // observers.DidSetProperty(this, new_value);
26 }
27 } // namespace c_salt
OLDNEW
« no previous file with comments | « experimental/c_salt/property.h ('k') | experimental/c_salt/rect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698