Wrapper script for isolating telemetry_gpu_unittests.
[chromium-blink-merge.git] / ui / platform_window / stub / stub_window.cc
blobcace19809c7d8f228462746691e9ef8f00a0498f
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/platform_window/stub/stub_window.h"
7 #include "ui/platform_window/platform_window_delegate.h"
9 namespace ui {
11 StubWindow::StubWindow(PlatformWindowDelegate* delegate) : delegate_(delegate) {
12 delegate_->OnAcceleratedWidgetAvailable(gfx::kNullAcceleratedWidget, 1.f);
15 StubWindow::~StubWindow() {
18 void StubWindow::Show() {
21 void StubWindow::Hide() {
24 void StubWindow::Close() {
25 delegate_->OnClosed();
28 void StubWindow::SetBounds(const gfx::Rect& bounds) {
29 if (bounds_ == bounds)
30 return;
31 bounds_ = bounds;
32 delegate_->OnBoundsChanged(bounds);
35 gfx::Rect StubWindow::GetBounds() {
36 return bounds_;
39 void StubWindow::SetCapture() {
42 void StubWindow::ReleaseCapture() {
45 void StubWindow::ToggleFullscreen() {
48 void StubWindow::Maximize() {
51 void StubWindow::Minimize() {
54 void StubWindow::Restore() {
57 void StubWindow::SetCursor(PlatformCursor cursor) {
60 void StubWindow::MoveCursorTo(const gfx::Point& location) {
63 void StubWindow::ConfineCursorToBounds(const gfx::Rect& bounds) {
66 } // namespace ui