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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc

Issue 9253011: Pepper SRPC proxy style and type nits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix bad license to pass presubmit check 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc
index 2a148c252f5bd8e9b2ce482757bc9511b6ac1d25..5d840a5b6057ccfb0d5d9246dbb5745453038e7e 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_view.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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.
@@ -23,7 +23,7 @@ namespace {
class ViewGetter {
public:
ViewGetter(PP_Resource resource, const char* function_name) {
- DebugPrintf("PPB_View::%s: resource=%"NACL_PRIu32"\n",
+ DebugPrintf("PPB_View::%s: resource=%"NACL_PRId32"\n",
function_name,
resource);
view_ = PluginResource::GetAs<PluginView>(resource);
@@ -45,10 +45,9 @@ class ViewGetter {
}
PP_Bool IsView(PP_Resource resource) {
- DebugPrintf("PPB_View::IsView: resource=%"NACL_PRIu32"\n",
+ DebugPrintf("PPB_View::IsView: resource=%"NACL_PRId32"\n",
resource);
- return PluginResource::GetAs<PluginView>(resource).get()
- ? PP_TRUE : PP_FALSE;
+ return PP_FromBool(PluginResource::GetAs<PluginView>(resource).get());
}
PP_Bool GetRect(PP_Resource resource, PP_Rect* viewport) {

Powered by Google App Engine
This is Rietveld 408576698