Home | History | Annotate | Download | only in display

Lines Matching refs:gfx

11 #include "ui/gfx/display_observer.h"
12 #include "ui/gfx/screen.h"
14 namespace gfx {
23 // Aura implementation of gfx::Screen. Implemented here to avoid circular
25 class ASH_EXPORT ScreenAsh : public gfx::Screen {
33 static gfx::Display FindDisplayContainingPoint(const gfx::Point& point);
37 static gfx::Rect GetMaximizedWindowBoundsInParent(aura::Window* window);
40 static gfx::Rect GetDisplayBoundsInParent(aura::Window* window);
43 static gfx::Rect GetDisplayWorkAreaBoundsInParent(aura::Window* window);
47 static gfx::Rect ConvertRectToScreen(aura::Window* window,
48 const gfx::Rect& rect);
52 static gfx::Rect ConvertRectFromScreen(aura::Window* window,
53 const gfx::Rect& rect);
55 // Returns a gfx::Display object for secondary display. Returns
57 static const gfx::Display& GetSecondaryDisplay();
59 // Returns a gfx::Display object for the specified id. Returns
61 static const gfx::Display& GetDisplayForId(int64 display_id);
63 // gfx::Screen overrides:
65 virtual gfx::Point GetCursorScreenPoint() OVERRIDE;
66 virtual gfx::NativeWindow GetWindowUnderCursor() OVERRIDE;
67 virtual gfx::NativeWindow GetWindowAtScreenPoint(const gfx::Point& point)
70 virtual std::vector<gfx::Display> GetAllDisplays() const OVERRIDE;
71 virtual gfx::Display GetDisplayNearestWindow(
72 gfx::NativeView view) const OVERRIDE;
73 virtual gfx::Display GetDisplayNearestPoint(
74 const gfx::Point& point) const OVERRIDE;
75 virtual gfx::Display GetDisplayMatching(
76 const gfx::Rect& match_rect) const OVERRIDE;
77 virtual gfx::Display GetPrimaryDisplay() const OVERRIDE;
78 virtual void AddObserver(gfx::DisplayObserver* observer) OVERRIDE;
79 virtual void RemoveObserver(gfx::DisplayObserver* observer) OVERRIDE;
85 void NotifyMetricsChanged(const gfx::Display& display, uint32_t metrics);
86 void NotifyDisplayAdded(const gfx::Display& display);
87 void NotifyDisplayRemoved(const gfx::Display& display);
91 gfx::Screen* CloneForShutdown();
93 ObserverList<gfx::DisplayObserver> observers_;