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

Unified Diff: chromecast/graphics/cast_screen.h

Issue 1824723003: [chromecast] Pass media task runner to VideoPlaneController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed android build Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | chromecast/graphics/cast_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/graphics/cast_screen.h
diff --git a/chromecast/graphics/cast_screen.h b/chromecast/graphics/cast_screen.h
index 37fcf6c1de1ab93b5854f2aa2688644a781fc27e..ba665be40fd9f11505e02c329d284397325c4d30 100644
--- a/chromecast/graphics/cast_screen.h
+++ b/chromecast/graphics/cast_screen.h
@@ -5,12 +5,13 @@
#ifndef CHROMECAST_GRAPHICS_CAST_SCREEN_H_
#define CHROMECAST_GRAPHICS_CAST_SCREEN_H_
+#include "base/callback.h"
#include "base/macros.h"
+#include "chromecast/public/graphics_types.h"
#include "ui/gfx/display.h"
#include "ui/gfx/screen.h"
namespace chromecast {
-
namespace shell {
class CastBrowserMainParts;
} // namespace shell
@@ -24,6 +25,9 @@ class CastScreen : public gfx::Screen {
public:
~CastScreen() override;
+ using DisplayResizeCallback = base::Callback<void(const Size&)>;
+ void SetDisplayResizeCallback(const DisplayResizeCallback& cb);
+
// Updates the primary display size.
void UpdateDisplaySize(const gfx::Size& size);
@@ -44,6 +48,7 @@ class CastScreen : public gfx::Screen {
CastScreen();
gfx::Display display_;
+ DisplayResizeCallback display_resize_cb_;
friend class shell::CastBrowserMainParts;
« no previous file with comments | « chromecast/graphics/BUILD.gn ('k') | chromecast/graphics/cast_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698