Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / platform_window / stub / stub_window.h
bloba17812ab5a4e8b0fc8004ed79ac5e041038c0aa8
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"
12 namespace ui {
14 class STUB_WINDOW_EXPORT StubWindow : public PlatformWindow {
15 public:
16 explicit StubWindow(PlatformWindowDelegate* delegate);
17 ~StubWindow() override;
19 private:
20 // PlatformWindow:
21 void Show() override;
22 void Hide() 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_;
39 gfx::Rect bounds_;
41 DISALLOW_COPY_AND_ASSIGN(StubWindow);
44 } // namespace ui
46 #endif // UI_PLATFORM_WINDOW_STUB_STUB_WINDOW_H_