blob: 8701dc990b6f66d4b60ab80942b713eb914448d2 [file] [log] [blame]
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
#include <windows.h>
namespace webrtc {
typedef unsigned char uint8_t;
// Define an arbitrary color for the test window with unique R, G, and B values
// so consumers can verify captured content in tests.
const uint8_t kTestWindowRValue = 191;
const uint8_t kTestWindowGValue = 99;
const uint8_t kTestWindowBValue = 12;
struct WindowInfo {
HWND hwnd;
HINSTANCE window_instance;
ATOM window_class;
WindowInfo CreateTestWindow(const WCHAR* window_title,
const int height = 0,
const int width = 0,
const LONG extended_styles = 0);
void ResizeTestWindow(const HWND hwnd, const int width, const int height);
void MoveTestWindow(const HWND hwnd, const int x, const int y);
void MinimizeTestWindow(const HWND hwnd);
void UnminimizeTestWindow(const HWND hwnd);
void DestroyTestWindow(WindowInfo info);
} // namespace webrtc