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

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

Issue 8951014: Change the DidChangeView update to take a new ViewChanged resource. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More nacl fixes Created 8 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 20 matching lines...) Expand all
31 PP_Bool Instance_DidCreate(PP_Instance pp_instance, 31 PP_Bool Instance_DidCreate(PP_Instance pp_instance,
32 uint32_t argc, 32 uint32_t argc,
33 const char* argn[], 33 const char* argn[],
34 const char* argv[]) { 34 const char* argv[]) {
35 return PP_TRUE; 35 return PP_TRUE;
36 } 36 }
37 37
38 void Instance_DidDestroy(PP_Instance instance) { 38 void Instance_DidDestroy(PP_Instance instance) {
39 } 39 }
40 40
41 void Instance_DidChangeView(PP_Instance pp_instance, 41 void Instance_DidChangeView(PP_Instance pp_instance, PP_Resource view) {
42 const PP_Rect* position,
43 const PP_Rect* clip) {
44 } 42 }
45 43
46 void Instance_DidChangeFocus(PP_Instance pp_instance, PP_Bool has_focus) { 44 void Instance_DidChangeFocus(PP_Instance pp_instance, PP_Bool has_focus) {
47 } 45 }
48 46
49 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance, 47 PP_Bool Instance_HandleDocumentLoad(PP_Instance pp_instance,
50 PP_Resource pp_url_loader) { 48 PP_Resource pp_url_loader) {
51 return PP_FALSE; 49 return PP_FALSE;
52 } 50 }
53 51
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 reset_result(); 156 reset_result();
159 PpapiInterfaceFactoryManager::GetInstance()->UnregisterFactory( 157 PpapiInterfaceFactoryManager::GetInstance()->UnregisterFactory(
160 PpapiCustomInterfaceFactoryTest::InterfaceFactory); 158 PpapiCustomInterfaceFactoryTest::InterfaceFactory);
161 159
162 (*PluginModule::GetLocalGetInterfaceFunc())("DummyInterface"); 160 (*PluginModule::GetLocalGetInterfaceFunc())("DummyInterface");
163 EXPECT_FALSE(result()); 161 EXPECT_FALSE(result());
164 } 162 }
165 163
166 } // namespace ppapi 164 } // namespace ppapi
167 } // namespace webkit 165 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698