]> git.sesse.net Git - casparcg/blob - dependencies64/cef/linux/include/capi/cef_client_capi.h
9feddf59b9b97cbd4b001b1dd92846977f0a66cb
[casparcg] / dependencies64 / cef / linux / include / capi / cef_client_capi.h
1 // Copyright (c) 2017 Marshall A. Greenblatt. All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
7 //    * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 //    * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
12 // distribution.
13 //    * Neither the name of Google Inc. nor the name Chromium Embedded
14 // Framework nor the names of its contributors may be used to endorse
15 // or promote products derived from this software without specific prior
16 // written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 //
30 // ---------------------------------------------------------------------------
31 //
32 // This file was generated by the CEF translator tool and should not edited
33 // by hand. See the translator.README.txt file in the tools directory for
34 // more information.
35 //
36
37 #ifndef CEF_INCLUDE_CAPI_CEF_CLIENT_CAPI_H_
38 #define CEF_INCLUDE_CAPI_CEF_CLIENT_CAPI_H_
39 #pragma once
40
41 #include "include/capi/cef_base_capi.h"
42 #include "include/capi/cef_context_menu_handler_capi.h"
43 #include "include/capi/cef_dialog_handler_capi.h"
44 #include "include/capi/cef_display_handler_capi.h"
45 #include "include/capi/cef_download_handler_capi.h"
46 #include "include/capi/cef_drag_handler_capi.h"
47 #include "include/capi/cef_find_handler_capi.h"
48 #include "include/capi/cef_focus_handler_capi.h"
49 #include "include/capi/cef_geolocation_handler_capi.h"
50 #include "include/capi/cef_jsdialog_handler_capi.h"
51 #include "include/capi/cef_keyboard_handler_capi.h"
52 #include "include/capi/cef_life_span_handler_capi.h"
53 #include "include/capi/cef_load_handler_capi.h"
54 #include "include/capi/cef_process_message_capi.h"
55 #include "include/capi/cef_render_handler_capi.h"
56 #include "include/capi/cef_request_handler_capi.h"
57
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61
62
63 ///
64 // Implement this structure to provide handler implementations.
65 ///
66 typedef struct _cef_client_t {
67   ///
68   // Base structure.
69   ///
70   cef_base_ref_counted_t base;
71
72   ///
73   // Return the handler for context menus. If no handler is provided the default
74   // implementation will be used.
75   ///
76   struct _cef_context_menu_handler_t* (CEF_CALLBACK *get_context_menu_handler)(
77       struct _cef_client_t* self);
78
79   ///
80   // Return the handler for dialogs. If no handler is provided the default
81   // implementation will be used.
82   ///
83   struct _cef_dialog_handler_t* (CEF_CALLBACK *get_dialog_handler)(
84       struct _cef_client_t* self);
85
86   ///
87   // Return the handler for browser display state events.
88   ///
89   struct _cef_display_handler_t* (CEF_CALLBACK *get_display_handler)(
90       struct _cef_client_t* self);
91
92   ///
93   // Return the handler for download events. If no handler is returned downloads
94   // will not be allowed.
95   ///
96   struct _cef_download_handler_t* (CEF_CALLBACK *get_download_handler)(
97       struct _cef_client_t* self);
98
99   ///
100   // Return the handler for drag events.
101   ///
102   struct _cef_drag_handler_t* (CEF_CALLBACK *get_drag_handler)(
103       struct _cef_client_t* self);
104
105   ///
106   // Return the handler for find result events.
107   ///
108   struct _cef_find_handler_t* (CEF_CALLBACK *get_find_handler)(
109       struct _cef_client_t* self);
110
111   ///
112   // Return the handler for focus events.
113   ///
114   struct _cef_focus_handler_t* (CEF_CALLBACK *get_focus_handler)(
115       struct _cef_client_t* self);
116
117   ///
118   // Return the handler for geolocation permissions requests. If no handler is
119   // provided geolocation access will be denied by default.
120   ///
121   struct _cef_geolocation_handler_t* (CEF_CALLBACK *get_geolocation_handler)(
122       struct _cef_client_t* self);
123
124   ///
125   // Return the handler for JavaScript dialogs. If no handler is provided the
126   // default implementation will be used.
127   ///
128   struct _cef_jsdialog_handler_t* (CEF_CALLBACK *get_jsdialog_handler)(
129       struct _cef_client_t* self);
130
131   ///
132   // Return the handler for keyboard events.
133   ///
134   struct _cef_keyboard_handler_t* (CEF_CALLBACK *get_keyboard_handler)(
135       struct _cef_client_t* self);
136
137   ///
138   // Return the handler for browser life span events.
139   ///
140   struct _cef_life_span_handler_t* (CEF_CALLBACK *get_life_span_handler)(
141       struct _cef_client_t* self);
142
143   ///
144   // Return the handler for browser load status events.
145   ///
146   struct _cef_load_handler_t* (CEF_CALLBACK *get_load_handler)(
147       struct _cef_client_t* self);
148
149   ///
150   // Return the handler for off-screen rendering events.
151   ///
152   struct _cef_render_handler_t* (CEF_CALLBACK *get_render_handler)(
153       struct _cef_client_t* self);
154
155   ///
156   // Return the handler for browser request events.
157   ///
158   struct _cef_request_handler_t* (CEF_CALLBACK *get_request_handler)(
159       struct _cef_client_t* self);
160
161   ///
162   // Called when a new message is received from a different process. Return true
163   // (1) if the message was handled or false (0) otherwise. Do not keep a
164   // reference to or attempt to access the message outside of this callback.
165   ///
166   int (CEF_CALLBACK *on_process_message_received)(struct _cef_client_t* self,
167       struct _cef_browser_t* browser, cef_process_id_t source_process,
168       struct _cef_process_message_t* message);
169 } cef_client_t;
170
171
172 #ifdef __cplusplus
173 }
174 #endif
175
176 #endif  // CEF_INCLUDE_CAPI_CEF_CLIENT_CAPI_H_