Fix search results being clipped in app list.
[chromium-blink-merge.git] / ui / ozone / platform / test / test_window.h
blobaaeb00369a8d899b59bf7b7b1abd39ce27d40dbd
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_OZONE_PLATFORM_TEST_TEST_WINDOW_H_
6 #define UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_
8 #include "base/files/file_path.h"
9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/native_widget_types.h"
11 #include "ui/platform_window/platform_window.h"
13 namespace ui {
15 class PlatformWindowDelegate;
16 class TestWindowManager;
18 class TestWindow : public PlatformWindow {
19 public:
20 TestWindow(PlatformWindowDelegate* delegate,
21 TestWindowManager* manager,
22 const gfx::Rect& bounds);
23 ~TestWindow() override;
25 // Path for image file for this window.
26 base::FilePath path();
28 // PlatformWindow:
29 gfx::Rect GetBounds() override;
30 void SetBounds(const gfx::Rect& bounds) override;
31 void Show() override;
32 void Hide() override;
33 void Close() override;
34 void SetCapture() override;
35 void ReleaseCapture() override;
36 void ToggleFullscreen() override;
37 void Maximize() override;
38 void Minimize() override;
39 void Restore() override;
40 void SetCursor(PlatformCursor cursor) override;
41 void MoveCursorTo(const gfx::Point& location) override;
42 void ConfineCursorToBounds(const gfx::Rect& bounds) override;
44 private:
45 PlatformWindowDelegate* delegate_;
46 TestWindowManager* manager_;
47 gfx::Rect bounds_;
48 gfx::AcceleratedWidget widget_;
50 DISALLOW_COPY_AND_ASSIGN(TestWindow);
53 } // namespace ui
55 #endif // UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_