1 // Copyright 2014 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 #ifndef UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_
6 #define UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_
8 #include "ui/gfx/geometry/rect.h"
9 #include "ui/platform_window/platform_window.h"
10 #include "ui/platform_window/stub/stub_window_export.h"
14 class STUB_WINDOW_EXPORT StubWindow
: public PlatformWindow
{
16 explicit StubWindow(PlatformWindowDelegate
* delegate
);
17 ~StubWindow() override
;
23 void Close() override
;
24 void SetBounds(const gfx::Rect
& bounds
) override
;
25 gfx::Rect
GetBounds() override
;
26 void SetTitle(const base::string16
& title
) override
;
27 void SetCapture() override
;
28 void ReleaseCapture() override
;
29 void ToggleFullscreen() override
;
30 void Maximize() override
;
31 void Minimize() override
;
32 void Restore() override
;
33 void SetCursor(PlatformCursor cursor
) override
;
34 void MoveCursorTo(const gfx::Point
& location
) override
;
35 void ConfineCursorToBounds(const gfx::Rect
& bounds
) override
;
36 PlatformImeController
* GetPlatformImeController() override
;
38 PlatformWindowDelegate
* delegate_
;
41 DISALLOW_COPY_AND_ASSIGN(StubWindow
);
46 #endif // UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_