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

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

Issue 808333004: virtual/override specifier cleanup in ui/ (mostly Ozone code). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/thread_task_runner_handle.h"
14 #include "ui/compositor/compositor.h" 14 #include "ui/compositor/compositor.h"
15 #include "ui/gfx/geometry/rect.h" 15 #include "ui/gfx/geometry/rect.h"
16 16
17 namespace ui { 17 namespace ui {
18 18
19 class TestCompositorHostOzone : public TestCompositorHost { 19 class TestCompositorHostOzone : public TestCompositorHost {
20 public: 20 public:
21 TestCompositorHostOzone(const gfx::Rect& bounds, 21 TestCompositorHostOzone(const gfx::Rect& bounds,
22 ui::ContextFactory* context_factory); 22 ui::ContextFactory* context_factory);
23 virtual ~TestCompositorHostOzone(); 23 ~TestCompositorHostOzone() override;
24 24
25 private: 25 private:
26 // Overridden from TestCompositorHost: 26 // Overridden from TestCompositorHost:
27 virtual void Show() override; 27 void Show() override;
28 virtual ui::Compositor* GetCompositor() override; 28 ui::Compositor* GetCompositor() override;
29 29
30 void Draw(); 30 void Draw();
31 31
32 gfx::Rect bounds_; 32 gfx::Rect bounds_;
33 33
34 ui::ContextFactory* context_factory_; 34 ui::ContextFactory* context_factory_;
35 35
36 scoped_ptr<ui::Compositor> compositor_; 36 scoped_ptr<ui::Compositor> compositor_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(TestCompositorHostOzone); 38 DISALLOW_COPY_AND_ASSIGN(TestCompositorHostOzone);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 // static 72 // static
73 TestCompositorHost* TestCompositorHost::Create( 73 TestCompositorHost* TestCompositorHost::Create(
74 const gfx::Rect& bounds, 74 const gfx::Rect& bounds,
75 ui::ContextFactory* context_factory) { 75 ui::ContextFactory* context_factory) {
76 return new TestCompositorHostOzone(bounds, context_factory); 76 return new TestCompositorHostOzone(bounds, context_factory);
77 } 77 }
78 78
79 } // namespace ui 79 } // namespace ui
OLDNEW
« no previous file with comments | « ui/base/dragdrop/os_exchange_data_provider_aura.h ('k') | ui/events/ozone/evdev/input_controller_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698