FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cefpython/src/client_handler/dialog_handler_gtk.h at cefpython56 · pythonthings/cefpython · GitHub
pythonthings
cefpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cefpython
/
src
/
client_handler
/
dialog_handler_gtk.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
59 lines (48 loc) · 2.13 KB
Breadcrumbs
cefpython
/
src
/
client_handler
/
dialog_handler_gtk.h
Copy path
File metadata and controls
59 lines (48 loc) · 2.13 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
Default dialog handler implementation on Linux.
//
Copied from upstream cefclient with changes:
//
- Removed "client" namespace
//
Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
//
reserved. Use of this source code is governed by a BSD-style license that
//
can be found in the LICENSE file.
#
ifndef
CEF_TESTS_CEFCLIENT_BROWSER_DIALOG_HANDLER_GTK_H_
#
define
CEF_TESTS_CEFCLIENT_BROWSER_DIALOG_HANDLER_GTK_H_
#
pragma
once
#
include
<
gtk/gtk.h
>
#
include
"
include/cef_dialog_handler.h
"
#
include
"
include/cef_jsdialog_handler.h
"
class
ClientDialogHandlerGtk
:
public
CefDialogHandler
,
public CefJSDialogHandler {
public:
ClientDialogHandlerGtk
();
//
CefDialogHandler methods.
bool
OnFileDialog
(CefRefPtr<CefBrowser> browser,
FileDialogMode mode,
const
CefString& title,
const
CefString& default_file_path,
const
std::vector<CefString>& accept_filters,
int
selected_accept_filter,
CefRefPtr<CefFileDialogCallback> callback) OVERRIDE;
//
CefJSDialogHandler methods.
bool
OnJSDialog
(CefRefPtr<CefBrowser> browser,
const
CefString& origin_url,
JSDialogType dialog_type,
const
CefString& message_text,
const
CefString& default_prompt_text,
CefRefPtr<CefJSDialogCallback> callback,
bool
& suppress_message) OVERRIDE;
bool
OnBeforeUnloadDialog
(
CefRefPtr<CefBrowser> browser,
const
CefString& message_text,
bool
is_reload,
CefRefPtr<CefJSDialogCallback> callback) OVERRIDE;
void
OnResetDialogState
(CefRefPtr<CefBrowser> browser) OVERRIDE;
private:
static
void
OnDialogResponse
(GtkDialog *dialog,
gint response_id,
ClientDialogHandlerGtk* handler);
GtkWidget* gtk_dialog_;
CefRefPtr<CefJSDialogCallback> js_dialog_callback_;
IMPLEMENT_REFCOUNTING
(ClientDialogHandlerGtk);
DISALLOW_COPY_AND_ASSIGN
(ClientDialogHandlerGtk);
};
#
endif
//
CEF_TESTS_CEFCLIENT_BROWSER_DIALOG_HANDLER_GTK_H_
Back
|
FazBrowse Home
|
New Git URL