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

Side by Side Diff: ui/compositor/test/test_compositor_host_win.cc

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 years, 3 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
« no previous file with comments | « ui/base/win/window_impl.cc ('k') | ui/gfx/canvas_paint_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/compositor/test/test_compositor_host.h" 5 #include "ui/compositor/test/test_compositor_host.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/base/win/window_impl.h"
10 #include "ui/compositor/compositor.h" 9 #include "ui/compositor/compositor.h"
10 #include "ui/gfx/win/window_impl.h"
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class TestCompositorHostWin : public TestCompositorHost, 14 class TestCompositorHostWin : public TestCompositorHost,
15 public WindowImpl, 15 public gfx::WindowImpl,
16 public CompositorDelegate { 16 public CompositorDelegate {
17 public: 17 public:
18 TestCompositorHostWin(const gfx::Rect& bounds) { 18 TestCompositorHostWin(const gfx::Rect& bounds) {
19 Init(NULL, bounds); 19 Init(NULL, bounds);
20 compositor_.reset(new ui::Compositor(this, hwnd())); 20 compositor_.reset(new ui::Compositor(this, hwnd()));
21 compositor_->SetScaleAndSize(1.0f, GetSize()); 21 compositor_->SetScaleAndSize(1.0f, GetSize());
22 } 22 }
23 23
24 virtual ~TestCompositorHostWin() { 24 virtual ~TestCompositorHostWin() {
25 DestroyWindow(hwnd()); 25 DestroyWindow(hwnd());
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 scoped_ptr<ui::Compositor> compositor_; 60 scoped_ptr<ui::Compositor> compositor_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(TestCompositorHostWin); 62 DISALLOW_COPY_AND_ASSIGN(TestCompositorHostWin);
63 }; 63 };
64 64
65 TestCompositorHost* TestCompositorHost::Create(const gfx::Rect& bounds) { 65 TestCompositorHost* TestCompositorHost::Create(const gfx::Rect& bounds) {
66 return new TestCompositorHostWin(bounds); 66 return new TestCompositorHostWin(bounds);
67 } 67 }
68 68
69 } // namespace ui 69 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/win/window_impl.cc ('k') | ui/gfx/canvas_paint_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698