#ifndef UI_GL_CHILD_WINDOW_WIN_H_
#define UI_GL_CHILD_WINDOW_WIN_H_
#include <windows.h>
#include "base/memory/scoped_refptr.h"
#include "base/task/task_runner.h"
#include "ui/gl/gl_export.h"
namespace gfx {
class Size;
}
namespace gl {
class GL_EXPORT ChildWindowWin {
public:
ChildWindowWin();
ChildWindowWin(const ChildWindowWin&) = delete;
ChildWindowWin& operator=(const ChildWindowWin&) = delete;
~ChildWindowWin();
void Initialize();
HWND window() const { return window_; }
void Resize(const gfx::Size& size);
scoped_refptr<base::TaskRunner> GetTaskRunnerForTesting();
private:
class ChildWindowThread;
HWND window_ = nullptr;
HWND initial_parent_window_ = nullptr;
};
}
#endif