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

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

Issue 1972433002: [Chromecast] Handle device scale factor correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test compile error Created 4 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_ 6 #define CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 CastContentWindow(); 31 CastContentWindow();
32 32
33 // Removes the window from the screen. 33 // Removes the window from the screen.
34 ~CastContentWindow() override; 34 ~CastContentWindow() override;
35 35
36 // Sets the window's background to be transparent (call before 36 // Sets the window's background to be transparent (call before
37 // CreateWindowTree). 37 // CreateWindowTree).
38 void SetTransparent() { transparent_ = true; } 38 void SetTransparent() { transparent_ = true; }
39 39
40 // Create a window with the given size for |web_contents|. 40 // Create a full-screen window for |web_contents|.
41 void CreateWindowTree(const gfx::Size& initial_size, 41 void CreateWindowTree(content::WebContents* web_contents);
42 content::WebContents* web_contents);
43 42
44 std::unique_ptr<content::WebContents> CreateWebContents( 43 std::unique_ptr<content::WebContents> CreateWebContents(
45 const gfx::Size& initial_size,
46 content::BrowserContext* browser_context); 44 content::BrowserContext* browser_context);
47 45
48 // content::WebContentsObserver implementation: 46 // content::WebContentsObserver implementation:
49 void DidFirstVisuallyNonEmptyPaint() override; 47 void DidFirstVisuallyNonEmptyPaint() override;
50 void MediaStoppedPlaying(const MediaPlayerId& id) override; 48 void MediaStoppedPlaying(const MediaPlayerId& id) override;
51 void MediaStartedPlaying(const MediaPlayerId& id) override; 49 void MediaStartedPlaying(const MediaPlayerId& id) override;
52 void RenderViewCreated(content::RenderViewHost* render_view_host) override; 50 void RenderViewCreated(content::RenderViewHost* render_view_host) override;
53 51
54 private: 52 private:
55 #if defined(USE_AURA) 53 #if defined(USE_AURA)
56 std::unique_ptr<aura::WindowTreeHost> window_tree_host_; 54 std::unique_ptr<aura::WindowTreeHost> window_tree_host_;
57 #endif 55 #endif
58 bool transparent_; 56 bool transparent_;
59 57
60 DISALLOW_COPY_AND_ASSIGN(CastContentWindow); 58 DISALLOW_COPY_AND_ASSIGN(CastContentWindow);
61 }; 59 };
62 60
63 } // namespace shell 61 } // namespace shell
64 } // namespace chromecast 62 } // namespace chromecast
65 63
66 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_ 64 #endif // CHROMECAST_BROWSER_CAST_CONTENT_WINDOW_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/browser/cast_content_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698