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

Side by Side Diff: mojo/services/native_viewport/platform_viewport_headless.h

Issue 623573002: Mojo: Convert the remaining OVERRIDEs to override in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « mojo/services/native_viewport/platform_viewport_android.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/macros.h"
5 #include "mojo/services/native_viewport/platform_viewport.h" 6 #include "mojo/services/native_viewport/platform_viewport.h"
6 #include "ui/gfx/rect.h" 7 #include "ui/gfx/rect.h"
7 8
8 namespace mojo { 9 namespace mojo {
9 10
10 class PlatformViewportHeadless : public PlatformViewport { 11 class PlatformViewportHeadless : public PlatformViewport {
11 public: 12 public:
12 virtual ~PlatformViewportHeadless(); 13 virtual ~PlatformViewportHeadless();
13 14
14 static scoped_ptr<PlatformViewport> Create(Delegate* delegate); 15 static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
15 16
16 private: 17 private:
17 explicit PlatformViewportHeadless(Delegate* delegate); 18 explicit PlatformViewportHeadless(Delegate* delegate);
18 19
19 // Overridden from PlatformViewport: 20 // Overridden from PlatformViewport:
20 virtual void Init(const gfx::Rect& bounds) OVERRIDE; 21 virtual void Init(const gfx::Rect& bounds) override;
21 virtual void Show() OVERRIDE; 22 virtual void Show() override;
22 virtual void Hide() OVERRIDE; 23 virtual void Hide() override;
23 virtual void Close() OVERRIDE; 24 virtual void Close() override;
24 virtual gfx::Size GetSize() OVERRIDE; 25 virtual gfx::Size GetSize() override;
25 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 26 virtual void SetBounds(const gfx::Rect& bounds) override;
26 virtual void SetCapture() OVERRIDE; 27 virtual void SetCapture() override;
27 virtual void ReleaseCapture() OVERRIDE; 28 virtual void ReleaseCapture() override;
28 29
29 Delegate* delegate_; 30 Delegate* delegate_;
30 gfx::Rect bounds_; 31 gfx::Rect bounds_;
31 32
32 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless); 33 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless);
33 }; 34 };
34 35
35 } // namespace mojo 36 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/platform_viewport_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698