| Index: headless/lib/browser/headless_screen.h
|
| diff --git a/headless/lib/browser/headless_screen.h b/headless/lib/browser/headless_screen.h
|
| index 8c5cb98c0838cddd3c7414684456b0b11c8f24ff..b8331a67b0b846f0e30d60649b00d274c5197458 100644
|
| --- a/headless/lib/browser/headless_screen.h
|
| +++ b/headless/lib/browser/headless_screen.h
|
| @@ -12,41 +12,18 @@
|
| #include "ui/display/screen_base.h"
|
|
|
| namespace gfx {
|
| -class Insets;
|
| class Rect;
|
| -class Transform;
|
| -}
|
| -
|
| -namespace aura {
|
| -class Window;
|
| -class WindowTreeHost;
|
| }
|
|
|
| namespace headless {
|
|
|
| -class HeadlessScreen : public display::ScreenBase, public aura::WindowObserver {
|
| +class HeadlessScreen : public display::ScreenBase {
|
| public:
|
| // Creates a display::Screen of the specified size (physical pixels).
|
| static HeadlessScreen* Create(const gfx::Size& size);
|
| ~HeadlessScreen() override;
|
|
|
| - aura::WindowTreeHost* CreateHostForPrimaryDisplay();
|
| -
|
| - void SetDeviceScaleFactor(float device_scale_fator);
|
| - void SetDisplayRotation(display::Display::Rotation rotation);
|
| - void SetUIScale(float ui_scale);
|
| - void SetWorkAreaInsets(const gfx::Insets& insets);
|
| -
|
| protected:
|
| - gfx::Transform GetRotationTransform() const;
|
| - gfx::Transform GetUIScaleTransform() const;
|
| -
|
| - // WindowObserver overrides:
|
| - void OnWindowBoundsChanged(aura::Window* window,
|
| - const gfx::Rect& old_bounds,
|
| - const gfx::Rect& new_bounds) override;
|
| - void OnWindowDestroying(aura::Window* window) override;
|
| -
|
| // display::Screen overrides:
|
| gfx::Point GetCursorScreenPoint() override;
|
| bool IsWindowUnderCursor(gfx::NativeWindow window) override;
|
| @@ -56,9 +33,6 @@ class HeadlessScreen : public display::ScreenBase, public aura::WindowObserver {
|
| private:
|
| explicit HeadlessScreen(const gfx::Rect& screen_bounds);
|
|
|
| - aura::WindowTreeHost* host_;
|
| - float ui_scale_;
|
| -
|
| DISALLOW_COPY_AND_ASSIGN(HeadlessScreen);
|
| };
|
|
|
|
|