2015-01-30 19:07:13 +01:00
|
|
|
// 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.
|
|
|
|
|
2015-01-31 01:55:56 +01:00
|
|
|
#ifndef CEF_TESTS_CEFCLIENT_BROWSER_BROWSER_WINDOW_STD_MAC_H_
|
|
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_BROWSER_WINDOW_STD_MAC_H_
|
|
|
|
#pragma once
|
2015-01-30 19:07:13 +01:00
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#include "tests/cefclient/browser/browser_window.h"
|
2015-01-30 19:07:13 +01:00
|
|
|
|
|
|
|
namespace client {
|
|
|
|
|
|
|
|
// Represents a native child window hosting a single windowed browser instance.
|
|
|
|
// The methods of this class must be called on the main thread unless otherwise
|
|
|
|
// indicated.
|
|
|
|
class BrowserWindowStdMac : public BrowserWindow {
|
|
|
|
public:
|
|
|
|
// Constructor may be called on any thread.
|
|
|
|
// |delegate| must outlive this object.
|
2017-05-17 11:29:28 +02:00
|
|
|
BrowserWindowStdMac(Delegate* delegate, const std::string& startup_url);
|
2015-01-30 19:07:13 +01:00
|
|
|
|
|
|
|
// BrowserWindow methods.
|
|
|
|
void CreateBrowser(ClientWindowHandle parent_handle,
|
|
|
|
const CefRect& rect,
|
2015-02-14 00:17:08 +01:00
|
|
|
const CefBrowserSettings& settings,
|
2019-03-19 10:42:54 +01:00
|
|
|
CefRefPtr<CefDictionaryValue> extra_info,
|
2015-02-14 00:17:08 +01:00
|
|
|
CefRefPtr<CefRequestContext> request_context) OVERRIDE;
|
2015-01-30 19:07:13 +01:00
|
|
|
void GetPopupConfig(CefWindowHandle temp_handle,
|
|
|
|
CefWindowInfo& windowInfo,
|
|
|
|
CefRefPtr<CefClient>& client,
|
|
|
|
CefBrowserSettings& settings) OVERRIDE;
|
|
|
|
void ShowPopup(ClientWindowHandle parent_handle,
|
2017-05-17 11:29:28 +02:00
|
|
|
int x,
|
|
|
|
int y,
|
|
|
|
size_t width,
|
|
|
|
size_t height) OVERRIDE;
|
2015-01-30 19:07:13 +01:00
|
|
|
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:
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(BrowserWindowStdMac);
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace client
|
|
|
|
|
2015-01-31 01:55:56 +01:00
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_BROWSER_WINDOW_STD_MAC_H_
|