public gfx::DisplayObserver {
public:
DesktopPopupAlignmentDelegate();
- virtual ~DesktopPopupAlignmentDelegate();
+ ~DesktopPopupAlignmentDelegate() override;
void StartObserving(gfx::Screen* screen);
// Overridden from PopupAlignmentDelegate:
- virtual int GetToastOriginX(const gfx::Rect& toast_bounds) const OVERRIDE;
- virtual int GetBaseLine() const OVERRIDE;
- virtual int GetWorkAreaBottom() const OVERRIDE;
- virtual bool IsTopDown() const OVERRIDE;
- virtual bool IsFromLeft() const OVERRIDE;
- virtual void RecomputeAlignment(const gfx::Display& display) OVERRIDE;
+ int GetToastOriginX(const gfx::Rect& toast_bounds) const override;
+ int GetBaseLine() const override;
+ int GetWorkAreaBottom() const override;
+ bool IsTopDown() const override;
+ bool IsFromLeft() const override;
+ void RecomputeAlignment(const gfx::Display& display) override;
private:
friend class test::MessagePopupCollectionTest;
};
// Overridden from gfx::DisplayObserver:
- virtual void OnDisplayAdded(const gfx::Display& new_display) OVERRIDE;
- virtual void OnDisplayRemoved(const gfx::Display& old_display) OVERRIDE;
- virtual void OnDisplayMetricsChanged(const gfx::Display& display,
- uint32_t metrics) OVERRIDE;
+ void OnDisplayAdded(const gfx::Display& new_display) override;
+ void OnDisplayRemoved(const gfx::Display& old_display) override;
+ void OnDisplayMetricsChanged(const gfx::Display& display,
+ uint32_t metrics) override;
int32_t alignment_;
int64_t display_id_;