diff options
author | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 20:16:34 +0000 |
---|---|---|
committer | dglazkov@chromium.org <dglazkov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-13 20:16:34 +0000 |
commit | 55a75d99c6609ed4f6dc7052fcf3d907efaf7137 (patch) | |
tree | 39a50ac51abdbee695ce494cfecefbbebfb38248 /webkit/glue/cpp_binding_example.h | |
parent | 4eeb018cc6f4b3a1d6715facaa3a3c54a22b4951 (diff) | |
download | chromium_src-55a75d99c6609ed4f6dc7052fcf3d907efaf7137.zip chromium_src-55a75d99c6609ed4f6dc7052fcf3d907efaf7137.tar.gz chromium_src-55a75d99c6609ed4f6dc7052fcf3d907efaf7137.tar.bz2 |
Implement getter/setter-based bound properties for CppBoundClass.
This is necessary for AccessibilityController, which has non-trivial
property accessors.
R=darin
BUG=10322
TEST=CppBoundClassTest.SetAndGetPropertiesWithCallbacks
Review URL: http://codereview.chromium.org/243064
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28872 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/cpp_binding_example.h')
-rw-r--r-- | webkit/glue/cpp_binding_example.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/cpp_binding_example.h b/webkit/glue/cpp_binding_example.h index c89e814..a663682 100644 --- a/webkit/glue/cpp_binding_example.h +++ b/webkit/glue/cpp_binding_example.h @@ -63,6 +63,9 @@ class CppBindingExample : public CppBoundClass { // numbers (integers or doubles). Otherwise returns null. void plus(const CppArgumentList& args, CppVariant* result); + // Always returns the same value -- an example of a read-only property. + void same(CppVariant* result); + // Invoked when a nonexistent method is called on this example object, this // prints an error message. void fallbackMethod(const CppArgumentList& args, CppVariant* result); |