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

Side by Side Diff: components/native_viewport/platform_viewport_headless.h

Issue 1131523007: Move NativeViewport service into view_manager. This is a file move only. Further merging will happe… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_
6 #define COMPONENTS_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_
7
8 #include "base/macros.h"
9 #include "components/native_viewport/platform_viewport.h"
10 #include "ui/gfx/geometry/rect.h"
11
12 namespace native_viewport {
13
14 class PlatformViewportHeadless : public PlatformViewport {
15 public:
16 ~PlatformViewportHeadless() override;
17
18 static scoped_ptr<PlatformViewport> Create(Delegate* delegate);
19
20 private:
21 explicit PlatformViewportHeadless(Delegate* delegate);
22
23 // Overridden from PlatformViewport:
24 void Init(const gfx::Rect& bounds) override;
25 void Show() override;
26 void Hide() override;
27 void Close() override;
28 gfx::Size GetSize() override;
29 void SetBounds(const gfx::Rect& bounds) override;
30
31 Delegate* delegate_;
32 mojo::ViewportMetricsPtr metrics_;
33
34 DISALLOW_COPY_AND_ASSIGN(PlatformViewportHeadless);
35 };
36
37 } // namespace native_viewport
38
39 #endif // COMPONENTS_NATIVE_VIEWPORT_PLATFORM_VIEWPORT_HEADLESS_H_
OLDNEW
« no previous file with comments | « components/native_viewport/platform_viewport_android.cc ('k') | components/native_viewport/platform_viewport_headless.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698