mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Adds new CefDisplayHandler::OnContentsBoundsChange and CefDisplayHandler::GetRootWindowScreenRect callbacks. cefclient: Implement the above callbacks and call CefBrowserHost::NotifyScreenInfoChanged when the root window bounds change. cefclient: osr: Use real screen bounds by default. Pass `--fake-screen-bounds` for the old default behavior. Load https://tests/window in cefclient for additional implementation details and usage examples.
27 lines
877 B
C++
27 lines
877 B
C++
// Copyright (c) 2016 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_WINDOW_TEST_RUNNER_WIN_H_
|
|
#define CEF_TESTS_CEFCLIENT_BROWSER_WINDOW_TEST_RUNNER_WIN_H_
|
|
#pragma once
|
|
|
|
#include "tests/cefclient/browser/window_test_runner.h"
|
|
|
|
namespace client::window_test {
|
|
|
|
// Windows platform implementation. Methods are safe to call on any browser
|
|
// process thread.
|
|
class WindowTestRunnerWin : public WindowTestRunner {
|
|
public:
|
|
WindowTestRunnerWin();
|
|
|
|
void Minimize(CefRefPtr<CefBrowser> browser) override;
|
|
void Maximize(CefRefPtr<CefBrowser> browser) override;
|
|
void Restore(CefRefPtr<CefBrowser> browser) override;
|
|
};
|
|
|
|
} // namespace client::window_test
|
|
|
|
#endif // CEF_TESTS_CEFCLIENT_BROWSER_WINDOW_TEST_RUNNER_WIN_H_
|