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

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

Issue 377973005: ozone: test: Convert to PlatformWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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/native_widget_types.h"
10 #include "ui/ozone/common/platform_window_base.h"
11
12 namespace gfx {
13 class Rect;
14 }
15
16 namespace ui {
17
18 class PlatformWindowDelegate;
19 class TestWindowManager;
20
21 class TestWindow : public PlatformWindowBase {
22 public:
23 TestWindow(PlatformWindowDelegate* delegate,
24 TestWindowManager* manager,
25 const gfx::Rect& bounds);
26 virtual ~TestWindow();
27
28 // Path for image file for this window.
29 base::FilePath path();
30
31 // PlatformWindow:
32 virtual gfx::Rect GetBounds() const OVERRIDE;
33 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE;
34 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
35
36 private:
37 PlatformWindowDelegate* delegate_;
38 TestWindowManager* manager_;
39 gfx::Rect bounds_;
40 gfx::AcceleratedWidget widget_;
41
42 DISALLOW_COPY_AND_ASSIGN(TestWindow);
43 };
44
45 } // namespace ui
46
47 #endif // UI_OZONE_PLATFORM_TEST_TEST_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698