Pepper_47_C++_interfaces
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
core.cc
Go to the documentation of this file.
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
3
// found in the LICENSE file.
4
5
#include "
ppapi/cpp/core.h
"
6
7
#include "
ppapi/cpp/completion_callback.h
"
8
9
namespace
pp {
10
11
// This function is implemented in the .cc file to avoid including completion
12
// callback all over the project.
13
void
Core::CallOnMainThread
(
int32_t
delay_in_milliseconds,
14
const
CompletionCallback
& callback,
15
int32_t
result) {
16
return
interface_->CallOnMainThread(delay_in_milliseconds,
17
callback.
pp_completion_callback
(),
18
result);
19
}
20
21
bool
Core::IsMainThread
() {
22
return
PP_ToBool(interface_->IsMainThread());
23
}
24
25
}
// namespace pp
core.h
completion_callback.h
pp::CompletionCallback::pp_completion_callback
const PP_CompletionCallback & pp_completion_callback() const
Definition:
completion_callback.h:122
pp::CompletionCallback
Definition:
completion_callback.h:24
pp::Core::CallOnMainThread
void CallOnMainThread(int32_t delay_in_milliseconds, const CompletionCallback &callback, int32_t result=0)
Definition:
core.cc:13
int32_t
pp::Core::IsMainThread
bool IsMainThread()
Definition:
core.cc:21
Generated on Wed Apr 5 2017 11:09:27 for Pepper_47_C++_interfaces by
1.8.6