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

Unified Diff: chromecast/graphics/cast_screen.h

Issue 1972433002: [Chromecast] Handle device scale factor correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set device scale factor correctly 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 side-by-side diff with in-line comments
Download patch
Index: chromecast/graphics/cast_screen.h
diff --git a/chromecast/graphics/cast_screen.h b/chromecast/graphics/cast_screen.h
index a8d497c3e3321cb9ea6f7adb5b02079cdf3902a2..c0e0b59768f33aa1d1aefe5055aa9ed29bf6a7f0 100644
--- a/chromecast/graphics/cast_screen.h
+++ b/chromecast/graphics/cast_screen.h
@@ -5,7 +5,6 @@
#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/display/display.h"
@@ -25,12 +24,6 @@ class CastScreen : public display::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);
-
// display::Screen overrides:
gfx::Point GetCursorScreenPoint() override;
bool IsWindowUnderCursor(gfx::NativeWindow window) override;
@@ -47,10 +40,9 @@ class CastScreen : public display::Screen {
void RemoveObserver(display::DisplayObserver* observer) override;
private:
- CastScreen();
+ CastScreen(const gfx::Size& size);
display::Display display_;
- DisplayResizeCallback display_resize_cb_;
friend class shell::CastBrowserMainParts;

Powered by Google App Engine
This is Rietveld 408576698