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

Side by Side Diff: webkit/plugins/ppapi/ppapi_unittest.cc

Issue 6538028: A proposal for an initial postMessage interface. This will allow JavaScript ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "webkit/plugins/ppapi/ppapi_unittest.h" 5 #include "webkit/plugins/ppapi/ppapi_unittest.h"
6 6
7 #include "ppapi/c/pp_var.h" 7 #include "ppapi/c/pp_var.h"
8 #include "ppapi/c/ppp_instance.h" 8 #include "ppapi/c/ppp_instance.h"
9 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" 9 #include "webkit/plugins/ppapi/mock_plugin_delegate.h"
10 #include "webkit/plugins/ppapi/plugin_module.h" 10 #include "webkit/plugins/ppapi/plugin_module.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, 53 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
54 PP_Resource pp_url_loader) { 54 PP_Resource pp_url_loader) {
55 return PP_FALSE; 55 return PP_FALSE;
56 } 56 }
57 57
58 PP_Var Instance_GetInstanceObject(PP_Instance pp_instance) { 58 PP_Var Instance_GetInstanceObject(PP_Instance pp_instance) {
59 return PP_MakeUndefined(); 59 return PP_MakeUndefined();
60 } 60 }
61 61
62 void Instance_HandleMessage(PP_Instance pp_instance, PP_Var message) {
63 return;
64 }
65
62 static PPP_Instance mock_instance_interface = { 66 static PPP_Instance mock_instance_interface = {
63 &Instance_DidCreate, 67 &Instance_DidCreate,
64 &Instance_DidDestroy, 68 &Instance_DidDestroy,
65 &Instance_DidChangeView, 69 &Instance_DidChangeView,
66 &Instance_DidChangeFocus, 70 &Instance_DidChangeFocus,
67 &Instance_HandleInputEvent, 71 &Instance_HandleInputEvent,
68 &Instance_HandleDocumentLoad, 72 &Instance_HandleDocumentLoad,
69 &Instance_GetInstanceObject 73 &Instance_GetInstanceObject,
74 &Instance_HandleMessage
70 }; 75 };
71 76
72 } // namespace 77 } // namespace
73 78
74 // PpapiUnittest -------------------------------------------------------------- 79 // PpapiUnittest --------------------------------------------------------------
75 80
76 PpapiUnittest::PpapiUnittest() { 81 PpapiUnittest::PpapiUnittest() {
77 DCHECK(!current_unittest); 82 DCHECK(!current_unittest);
78 current_unittest = this; 83 current_unittest = this;
79 } 84 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 DCHECK(module_->HasOneRef()); 121 DCHECK(module_->HasOneRef());
117 module_ = NULL; 122 module_ = NULL;
118 } 123 }
119 124
120 void PpapiUnittest::PluginModuleDead(PluginModule* /* dead_module */) { 125 void PpapiUnittest::PluginModuleDead(PluginModule* /* dead_module */) {
121 // Nothing needed (this is necessary to make the module compile). 126 // Nothing needed (this is necessary to make the module compile).
122 } 127 }
123 128
124 } // namespace ppapi 129 } // namespace ppapi
125 } // namespace webkit 130 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698