Commit 83da0ec5 by Jamie Madill

Add OSWindow::setVisible.

BUG=angle:730 Change-Id: I9c9e2f3b694ba57df359906cd8517ede60af632d Reviewed-on: https://chromium-review.googlesource.com/213294Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 25f0e5e3
......@@ -34,6 +34,7 @@ class OSWindow
virtual void setMousePosition(int x, int y) = 0;
virtual bool resize(int width, int height) = 0;
virtual bool setVisible(bool isVisible) = 0;
protected:
int mWidth;
......
......@@ -493,3 +493,8 @@ bool Win32Window::resize(int width, int height)
return true;
}
bool Win32Window::setVisible(bool isVisible)
{
return (ShowWindow(mNativeWindow, isVisible ? SW_SHOW : SW_HIDE) == TRUE);
}
......@@ -30,6 +30,7 @@ class Win32Window : public OSWindow
void setMousePosition(int x, int y);
bool resize(int width, int height);
bool setVisible(bool isVisible);
private:
std::string mClassName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment