-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathclient_util.h
More file actions
31 lines (21 loc) · 1.01 KB
/
client_util.h
File metadata and controls
31 lines (21 loc) · 1.01 KB
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
// Copyright (c) 2017 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_EXAMPLES_SHARED_CLIENT_BASE_H_
#define CEF_EXAMPLES_SHARED_CLIENT_BASE_H_
#include "include/cef_client.h"
namespace shared {
// This file provides functionality common to all CefClient example
// implementations.
// Called from CefDisplayHandler methods:
void OnTitleChange(CefRefPtr<CefBrowser> browser, const CefString& title);
// Called from CefLifeSpanHandler methods:
void OnAfterCreated(CefRefPtr<CefBrowser> browser);
bool DoClose(CefRefPtr<CefBrowser> browser);
void OnBeforeClose(CefRefPtr<CefBrowser> browser);
// Platform-specific implementation.
void PlatformTitleChange(CefRefPtr<CefBrowser> browser, const CefString& title);
// Returns the contents of |request| as a string.
std::string DumpRequestContents(CefRefPtr<CefRequest> request);
} // namespace shared
#endif // CEF_EXAMPLES_SHARED_CLIENT_BASE_H_