#ifndef CEF_TESTS_CEFCLIENT_BROWSER_BROWSER_WINDOW_STD_GTK_H_
#define CEF_TESTS_CEFCLIENT_BROWSER_BROWSER_WINDOW_STD_GTK_H_
#pragma once
#include "tests/cefclient/browser/browser_window.h"
namespace client {
class BrowserWindowStdGtk : public BrowserWindow {
public:
BrowserWindowStdGtk(Delegate* delegate, const std::string& startup_url);
void set_xdisplay(XDisplay* xdisplay);
void CreateBrowser(ClientWindowHandle parent_handle,
const CefRect& rect,
const CefBrowserSettings& settings,
CefRefPtr<CefDictionaryValue> extra_info,
CefRefPtr<CefRequestContext> request_context) override;
void GetPopupConfig(CefWindowHandle temp_handle,
CefWindowInfo& windowInfo,
CefRefPtr<CefClient>& client,
CefBrowserSettings& settings) override;
void ShowPopup(ClientWindowHandle parent_handle,
int x,
int y,
size_t width,
size_t height) override;
void Show() override;
void Hide() override;
void SetBounds(int x, int y, size_t width, size_t height) override;
void SetFocus(bool focus) override;
ClientWindowHandle GetWindowHandle() const override;
private:
XDisplay* xdisplay_;
DISALLOW_COPY_AND_ASSIGN(BrowserWindowStdGtk);
};
}
#endif