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

Unified Diff: ppapi/cpp/extensions/dict_field.h

Issue 13811036: Add Pepper API tests for chrome.socket. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 8 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
« no previous file with comments | « chrome/test/data/nacl/nacl_test_data.gyp ('k') | ppapi/ppapi_nacl_test_common.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/extensions/dict_field.h
diff --git a/ppapi/cpp/extensions/dict_field.h b/ppapi/cpp/extensions/dict_field.h
index 1a01e44c74c41213edafd8eeb4ef1e5ead3d15e9..5a085c3af82914453dc4f9ed2dd8dd2089544da6 100644
--- a/ppapi/cpp/extensions/dict_field.h
+++ b/ppapi/cpp/extensions/dict_field.h
@@ -28,8 +28,9 @@ class DictField {
const std::string& key() const { return key_; }
- T& value() { return value_; }
- const T& value() const { return value_; }
+ // Returns the value.
+ T& operator()() { return value_; }
+ const T& operator()() const { return value_; }
// Adds this field to the dictionary var.
bool AddTo(VarDictionary_Dev* dict) const {
@@ -66,8 +67,9 @@ class OptionalDictField {
const std::string& key() const { return key_; }
- Optional<T>& value() { return value_; }
- const Optional<T>& value() const { return value_; }
+ // Returns the value.
+ Optional<T>& operator()() { return value_; }
+ const Optional<T>& operator()() const { return value_; }
// Adds this field to the dictionary var, if |value| has been set.
bool MayAddTo(VarDictionary_Dev* dict) const {
« no previous file with comments | « chrome/test/data/nacl/nacl_test_data.gyp ('k') | ppapi/ppapi_nacl_test_common.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698