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

Side by Side Diff: ppapi/cpp/core.cc

Issue 7237039: Remove PPBoolToBool and BoolToPPBool and use PP_FromBool and PP_ToBool instead. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « no previous file | ppapi/cpp/dev/find_dev.cc » ('j') | ppapi/cpp/dev/find_dev.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "ppapi/cpp/core.h" 5 #include "ppapi/cpp/core.h"
6 6
7 #include "ppapi/cpp/common.h"
8 #include "ppapi/cpp/completion_callback.h" 7 #include "ppapi/cpp/completion_callback.h"
9 8
10 namespace pp { 9 namespace pp {
11 10
12 // This function is implemented in the .cc file to avoid including completion 11 // This function is implemented in the .cc file to avoid including completion
13 // callback all over the project. 12 // callback all over the project.
14 void Core::CallOnMainThread(int32_t delay_in_milliseconds, 13 void Core::CallOnMainThread(int32_t delay_in_milliseconds,
15 const CompletionCallback& callback, 14 const CompletionCallback& callback,
16 int32_t result) { 15 int32_t result) {
17 return interface_->CallOnMainThread(delay_in_milliseconds, 16 return interface_->CallOnMainThread(delay_in_milliseconds,
18 callback.pp_completion_callback(), 17 callback.pp_completion_callback(),
19 result); 18 result);
20 } 19 }
21 20
22 bool Core::IsMainThread() { 21 bool Core::IsMainThread() {
23 return PPBoolToBool(interface_->IsMainThread()); 22 return PP_ToBool(interface_->IsMainThread());
24 } 23 }
25 24
26 } // namespace pp 25 } // namespace pp
OLDNEW
« no previous file with comments | « no previous file | ppapi/cpp/dev/find_dev.cc » ('j') | ppapi/cpp/dev/find_dev.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698