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

Side by Side Diff: sky/engine/bindings/nullable.h

Issue 915293003: Rename sky/engine/bindings2 to sky/engine/bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more better Created 5 years, 10 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 | « sky/engine/bindings/mojo_natives.cc ('k') | sky/engine/bindings/scheduled_action.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SKY_ENGINE_BINDINGS2_NULLABLE_H_ 5 #ifndef SKY_ENGINE_BINDINGS_NULLABLE_H_
6 #define SKY_ENGINE_BINDINGS2_NULLABLE_H_ 6 #define SKY_ENGINE_BINDINGS_NULLABLE_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 template <typename T> 12 template <typename T>
13 class Nullable { 13 class Nullable {
14 public: 14 public:
15 Nullable() : value_(), is_null_(true) {} 15 Nullable() : value_(), is_null_(true) {}
16 Nullable(const T& value) : value_(value), is_null_(false) {} 16 Nullable(const T& value) : value_(value), is_null_(false) {}
(...skipping 27 matching lines...) Expand all
44 (!is_null_ && !other.is_null_ && value_ == other.value_); 44 (!is_null_ && !other.is_null_ && value_ == other.value_);
45 } 45 }
46 46
47 private: 47 private:
48 T value_; 48 T value_;
49 bool is_null_; 49 bool is_null_;
50 }; 50 };
51 51
52 } // namespace blink 52 } // namespace blink
53 53
54 #endif // SKY_ENGINE_BINDINGS2_NULLABLE_H_ 54 #endif // SKY_ENGINE_BINDINGS_NULLABLE_H_
OLDNEW
« no previous file with comments | « sky/engine/bindings/mojo_natives.cc ('k') | sky/engine/bindings/scheduled_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698