Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: ui/ozone/platform/test/test_window.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/test/test.gypi ('k') | ui/ozone/platform/test/test_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_
6 #define UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_
7
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"
12
13 namespace ui {
14
15 class PlatformWindowDelegate;
16 class TestWindowManager;
17
18 class TestWindow : public PlatformWindow {
19 public:
20 TestWindow(PlatformWindowDelegate* delegate,
21 TestWindowManager* manager,
22 const gfx::Rect& bounds);
23 virtual ~TestWindow();
24
25 // Path for image file for this window.
26 base::FilePath path();
27
28 // PlatformWindow:
29 virtual gfx::Rect GetBounds() override;
30 virtual void SetBounds(const gfx::Rect& bounds) override;
31 virtual void Show() override;
32 virtual void Hide() override;
33 virtual void Close() override;
34 virtual void SetCapture() override;
35 virtual void ReleaseCapture() override;
36 virtual void ToggleFullscreen() override;
37 virtual void Maximize() override;
38 virtual void Minimize() override;
39 virtual void Restore() override;
40 virtual void SetCursor(PlatformCursor cursor) override;
41 virtual void MoveCursorTo(const gfx::Point& location) override;
42
43 private:
44 PlatformWindowDelegate* delegate_;
45 TestWindowManager* manager_;
46 gfx::Rect bounds_;
47 gfx::AcceleratedWidget widget_;
48
49 DISALLOW_COPY_AND_ASSIGN(TestWindow);
50 };
51
52 } // namespace ui
53
54 #endif // UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/test/test.gypi ('k') | ui/ozone/platform/test/test_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698