OLD | NEW |
(Empty) | |
| 1 // Copyright 2010 The Native Client SDK 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 #ifndef EXAMPLES_SRPC_DUALITY_DUALITY_H_ |
| 6 #define EXAMPLES_SRPC_DUALITY_DUALITY_H_ |
| 7 |
| 8 #include <examples/srpc/duality/scriptable.h> |
| 9 |
| 10 #include <nacl/nacl_srpc.h> |
| 11 |
| 12 #include <string> |
| 13 |
| 14 // Extends Scriptable and adds the plugin's specific functionality. |
| 15 class Duality : public Scriptable { |
| 16 public: |
| 17 Duality(); |
| 18 virtual ~Duality(); |
| 19 |
| 20 static bool SayHello(Scriptable * instance, |
| 21 const NPVariant* args, |
| 22 uint32_t arg_count, |
| 23 NPVariant* result); |
| 24 |
| 25 private: |
| 26 // Populates the method table with our specific interface. |
| 27 virtual void InitializeMethodTable(); |
| 28 // Populates the propert table with our specific interface. |
| 29 // Since this class has no visible properties the function does nothing. |
| 30 virtual void InitializePropertyTable() {} |
| 31 }; |
| 32 |
| 33 #endif // EXAMPLES_SRPC_DUALITY_DUALITY_H_ |
OLD | NEW |