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

Side by Side Diff: chromecast/browser/cast_content_window_linux.h

Issue 2626863006: [Chromecast] Add CastWebContents (Closed)
Patch Set: 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_LINUX_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_LINUX_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_LINUX_H_ 6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_LINUX_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 21 matching lines...) Expand all
32 // Removes the window from the screen. 32 // Removes the window from the screen.
33 ~CastContentWindowLinux() override; 33 ~CastContentWindowLinux() override;
34 34
35 // CastContentWindow implementation. 35 // CastContentWindow implementation.
36 void SetTransparent() override; 36 void SetTransparent() override;
37 void ShowWebContents(content::WebContents* web_contents) override; 37 void ShowWebContents(content::WebContents* web_contents) override;
38 std::unique_ptr<content::WebContents> CreateWebContents( 38 std::unique_ptr<content::WebContents> CreateWebContents(
39 content::BrowserContext* browser_context) override; 39 content::BrowserContext* browser_context) override;
40 40
41 // content::WebContentsObserver implementation: 41 // content::WebContentsObserver implementation:
42 void DidFirstVisuallyNonEmptyPaint() override;
43 void MediaStartedPlaying(const MediaPlayerInfo& media_info,
44 const MediaPlayerId& id) override;
45 void MediaStoppedPlaying(const MediaPlayerInfo& media_info,
46 const MediaPlayerId& id) override;
47 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 42 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
48 43
49 // CastVSyncSettings::Observer implementation: 44 // CastVSyncSettings::Observer implementation:
50 void OnVSyncIntervalChanged(base::TimeDelta interval) override; 45 void OnVSyncIntervalChanged(base::TimeDelta interval) override;
51 46
52 private: 47 private:
53 friend class CastContentWindow; 48 friend class CastContentWindow;
54 49
55 // This class should only be instantiated by CastContentWindow::Create. 50 // This class should only be instantiated by CastContentWindow::Create.
56 CastContentWindowLinux(); 51 CastContentWindowLinux();
57 52
58 #if defined(USE_AURA) 53 #if defined(USE_AURA)
59 std::unique_ptr<aura::WindowTreeHost> window_tree_host_; 54 std::unique_ptr<aura::WindowTreeHost> window_tree_host_;
60 #endif 55 #endif
61 bool transparent_; 56 bool transparent_;
62 57
63 DISALLOW_COPY_AND_ASSIGN(CastContentWindowLinux); 58 DISALLOW_COPY_AND_ASSIGN(CastContentWindowLinux);
64 }; 59 };
65 60
66 } // namespace shell 61 } // namespace shell
67 } // namespace chromecast 62 } // namespace chromecast
68 63
69 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_LINUX_H_ 64 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698