mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Simplify ClientPrintHandlerGtk for single browser usage (see issue #2196)
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#define CEF_TESTS_CEFCLIENT_BROWSER_PRINT_HANDLER_GTK_H_
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <memory>
|
||||
|
||||
#include "include/cef_print_handler.h"
|
||||
|
||||
@@ -37,11 +37,7 @@ class ClientPrintHandlerGtk : public CefPrintHandler {
|
||||
private:
|
||||
// Print handler.
|
||||
struct PrintHandler;
|
||||
PrintHandler* GetPrintHandler(CefRefPtr<CefBrowser> browser);
|
||||
|
||||
// Map of browser ID to print handler.
|
||||
typedef std::map<int, PrintHandler*> PrintHandlerMap;
|
||||
PrintHandlerMap print_handler_map_;
|
||||
std::unique_ptr<PrintHandler> print_handler_;
|
||||
|
||||
IMPLEMENT_REFCOUNTING(ClientPrintHandlerGtk);
|
||||
DISALLOW_COPY_AND_ASSIGN(ClientPrintHandlerGtk);
|
||||
|
Reference in New Issue
Block a user