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

Unified Diff: ppapi/native_client/tests/ppapi_test_lib/module_instance.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
Index: ppapi/native_client/tests/ppapi_test_lib/module_instance.cc
===================================================================
--- ppapi/native_client/tests/ppapi_test_lib/module_instance.cc (revision 98942)
+++ ppapi/native_client/tests/ppapi_test_lib/module_instance.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.
//
@@ -93,31 +93,31 @@
return PP_TRUE;
}
-namespace {
-
-void DidDestroy(PP_Instance /*instance*/) {
+void DidDestroyDefault(PP_Instance /*instance*/) {
}
-void DidChangeView(PP_Instance /*instance*/,
- const struct PP_Rect* /*position*/,
- const struct PP_Rect* /*clip*/) {
+void DidChangeViewDefault(PP_Instance /*instance*/,
+ const struct PP_Rect* /*position*/,
+ const struct PP_Rect* /*clip*/) {
}
-void DidChangeFocus(PP_Instance /*instance*/,
- PP_Bool /*has_focus*/) {
+void DidChangeFocusDefault(PP_Instance /*instance*/,
+ PP_Bool /*has_focus*/) {
}
-PP_Bool HandleDocumentLoad(PP_Instance instance,
- PP_Resource url_loader) {
+PP_Bool HandleDocumentLoadDefault(PP_Instance instance,
+ PP_Resource url_loader) {
return PP_TRUE;
}
+namespace {
+
const PPP_Instance ppp_instance_interface = {
DidCreateDefault,
- DidDestroy,
- DidChangeView,
- DidChangeFocus,
- HandleDocumentLoad
+ DidDestroyDefault,
+ DidChangeViewDefault,
+ DidChangeFocusDefault,
+ HandleDocumentLoadDefault
};
///////////////////////////////////////////////////////////////////////////////

Powered by Google App Engine
This is Rietveld 408576698