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

Unified Diff: headless/lib/browser/headless_screen.h

Issue 2669693002: Minimize headless code that refers to aura. (Closed)
Patch Set: Remove GetTopWindowContainingPoint Created 3 years, 10 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 | « headless/lib/browser/headless_browser_main_parts.cc ('k') | headless/lib/browser/headless_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « headless/lib/browser/headless_browser_main_parts.cc ('k') | headless/lib/browser/headless_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698