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

Side by Side Diff: content/test/cpp_binding_example.cc

Issue 25378002: Move the rest of source files from webkit/renderer to content/renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/test/cpp_binding_example.h" 5 #include "content/test/cpp_binding_example.h"
6 6
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 11
12 using webkit_glue::CppArgumentList;
13 using webkit_glue::CppBoundClass;
14 using webkit_glue::CppVariant;
15
16 namespace content { 12 namespace content {
17 13
18 namespace { 14 namespace {
19 15
20 class PropertyCallbackExample : public CppBoundClass::PropertyCallback { 16 class PropertyCallbackExample : public CppBoundClass::PropertyCallback {
21 public: 17 public:
22 virtual bool GetValue(CppVariant* value) OVERRIDE { 18 virtual bool GetValue(CppVariant* value) OVERRIDE {
23 value->Set(value_); 19 value->Set(value_);
24 return true; 20 return true;
25 } 21 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 void CppBindingExample::same(CppVariant* result) { 125 void CppBindingExample::same(CppVariant* result) {
130 result->Set(42); 126 result->Set(42);
131 } 127 }
132 128
133 void CppBindingExample::fallbackMethod(const CppArgumentList& args, 129 void CppBindingExample::fallbackMethod(const CppArgumentList& args,
134 CppVariant* result) { 130 CppVariant* result) {
135 printf("Error: unknown JavaScript method invoked.\n"); 131 printf("Error: unknown JavaScript method invoked.\n");
136 } 132 }
137 133
138 } // namespace content 134 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698