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

Unified Diff: ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.cc

Issue 7740062: NaCl PPAPI Test Lib: Make PPP_Instance function defaults available via the (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/native_client/tests/ppapi_test_lib/module_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.cc
===================================================================
--- ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.cc (revision 98942)
+++ ppapi/native_client/tests/ppapi_browser/extension_mime_handler/ppapi_extension_mime_handler.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Native Client Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -54,33 +54,6 @@
"This is not an actual pdf file, just a "
"test file so we can verify HandleDocumentLoad.";
-
-PP_Bool DidCreate(PP_Instance instance,
- uint32_t argc,
- const char* argn[],
- const char* argv[]) {
- PP_Bool status = DidCreateDefault(instance, argc, argn, argv);
- printf("DidCreate! %d\n", static_cast<int>(instance));
- return status;
-}
-
-void DidDestroy(PP_Instance /* instance */) {
-}
-
-void DidChangeView(PP_Instance /* instance */,
- const struct PP_Rect* /* position */,
- const struct PP_Rect* /* clip */) {
-}
-
-void DidChangeFocus(PP_Instance /* instance */,
- PP_Bool /* has_focus */) {
-}
-
-PP_Bool HandleInputEvent(PP_Instance /* instance */,
- const struct PP_InputEvent* /* event */) {
- return PP_FALSE;
-}
-
void ReadCallback(void* user_data, int32_t pp_error_or_bytes) {
PP_Resource url_loader = reinterpret_cast<PP_Resource>(user_data);
@@ -127,10 +100,10 @@
}
const PPP_Instance ppp_instance_interface = {
- DidCreate,
- DidDestroy,
- DidChangeView,
- DidChangeFocus,
+ DidCreateDefault,
+ DidDestroyDefault,
+ DidChangeViewDefault,
+ DidChangeFocusDefault,
HandleDocumentLoad
};
« no previous file with comments | « no previous file | ppapi/native_client/tests/ppapi_test_lib/module_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698