blob: 6fd63fe6e4d01b4253b9a1056fe5e6eb624af8ca [file] [log] [blame]
[email protected]493d14212011-07-07 15:38:481// Copyright (c) 2011 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
[email protected]9a578392011-12-07 18:59:275#ifndef PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_
6#define PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_
[email protected]493d14212011-07-07 15:38:487
[email protected]a9b16dd2012-01-31 05:00:268#include "base/compiler_specific.h"
[email protected]493d14212011-07-07 15:38:489#include "ppapi/c/pp_stdint.h"
[email protected]f0a04c42011-08-26 22:43:2010#include "ppapi/shared_impl/ppapi_shared_export.h"
[email protected]a9b16dd2012-01-31 05:00:2611#include "ppapi/thunk/ppb_instance_api.h"
[email protected]493d14212011-07-07 15:38:4812
13namespace ppapi {
14
Nico Weber43ddd7a32017-08-15 19:19:2715class PPAPI_SHARED_EXPORT PPB_Instance_Shared : public thunk::PPB_Instance_API {
[email protected]493d14212011-07-07 15:38:4816 public:
nicke4784432015-04-23 14:01:4817 ~PPB_Instance_Shared() override;
[email protected]493d14212011-07-07 15:38:4818
[email protected]a9b16dd2012-01-31 05:00:2619 // Implementation of some shared PPB_Instance_FunctionAPI functions.
nicke4784432015-04-23 14:01:4820 void Log(PP_Instance instance, PP_LogLevel log_level, PP_Var value) override;
21 void LogWithSource(PP_Instance instance,
22 PP_LogLevel log_level,
23 PP_Var source,
24 PP_Var value) override;
[email protected]a9b16dd2012-01-31 05:00:2625
[email protected]493d14212011-07-07 15:38:4826 // Error checks the given resquest to Request[Filtering]InputEvents. Returns
27 // PP_OK if the given classes are all valid, PP_ERROR_NOTSUPPORTED if not.
28 int32_t ValidateRequestInputEvents(bool is_filtering, uint32_t event_classes);
[email protected]33ec50562012-04-08 20:28:4329
30 bool ValidateSetCursorParams(PP_MouseCursor_Type type,
[email protected]faf06b032012-04-11 22:41:5031 PP_Resource image,
32 const PP_Point* hot_spot);
[email protected]877c69e2012-04-12 18:59:1533
34 // The length of text to request as a surrounding context of selection.
35 // For now, the value is copied from the one with render_view_impl.cc.
36 // TODO(kinaba) implement a way to dynamically sync the requirement.
37 static const int kExtraCharsForTextInput;
[email protected]493d14212011-07-07 15:38:4838};
39
40} // namespace ppapi
41
[email protected]9a578392011-12-07 18:59:2742#endif // PPAPI_SHARED_IMPL_PPB_INSTANCE_SHARED_H_