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

Side by Side Diff: chromecast/graphics/cast_window_manager_aura.h

Issue 2643553002: [Chromecast] Reuse the Aura window manager across receiver apps. (Closed)
Patch Set: applied reviewer feedback Created 3 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
(Empty)
1 // Copyright 2017 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 CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
6 #define CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "base/observer_list.h"
12 #include "chromecast/graphics/cast_vsync_settings.h"
13 #include "chromecast/graphics/cast_window_manager.h"
14
15 namespace aura {
16 class Window;
17 namespace client {
18 class DefaultCaptureClient;
19 } // namespace client
20 } // namespace aura
21
22 namespace chromecast {
23
24 class CastWindowTreeHost;
25
26 class CastWindowManagerAura : public CastWindowManager,
27 private CastVSyncSettings::Observer {
28 public:
29 ~CastWindowManagerAura() override;
30
31 // CastWindowManager implementation:
32 void TearDown() override;
33 void AddWindow(gfx::NativeView window) override;
34
35 private:
36 friend class CastWindowManager;
37
38 // This class should only be instantiated by CastWindowManager::Create.
39 explicit CastWindowManagerAura(bool enable_input);
40
41 // CastVSyncSettings::Observer implementation:
42 void OnVSyncIntervalChanged(base::TimeDelta interval) override;
43
44 void Setup();
45
46 const bool enable_input_;
47 std::unique_ptr<CastWindowTreeHost> window_tree_host_;
48 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_;
49
50 DISALLOW_COPY_AND_ASSIGN(CastWindowManagerAura);
51 };
52
53 } // namespace chromecast
54
55 #endif // CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_AURA_H_
OLDNEW
« no previous file with comments | « chromecast/graphics/cast_window_manager.h ('k') | chromecast/graphics/cast_window_manager_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698