HumanRender/human_render/CEF/WindowTestRunner.h

28 lines
987 B
C
Raw Normal View History

2024-12-19 17:46:41 +00:00
// 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.
#pragma once
#include "include/cef_browser.h"
// Implement this interface for different platforms. Methods will be called on
// the browser process UI thread unless otherwise indicated.
class WindowTestRunner {
public:
virtual void SetPos(CefRefPtr<CefBrowser> browser,
int x,
int y,
int width,
int height) = 0;
virtual void Minimize(CefRefPtr<CefBrowser> browser) = 0;
virtual void Maximize(CefRefPtr<CefBrowser> browser) = 0;
virtual void Restore(CefRefPtr<CefBrowser> browser) = 0;
// Fit |window| inside |display|. Coordinates are relative to the upper-left
// corner of the display.
static void ModifyBounds(const CefRect& display, CefRect& window);
virtual ~WindowTestRunner() {}
};