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

Unified Diff: ash/system/web_notification/ash_popup_alignment_delegate.h

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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: ash/system/web_notification/ash_popup_alignment_delegate.h
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate.h b/ash/system/web_notification/ash_popup_alignment_delegate.h
index 71fd859d8657fcf5a1dc7fe29127a267e60f1e83..6917db9e6c32676b0fe7134d9577077352c8db6d 100644
--- a/ash/system/web_notification/ash_popup_alignment_delegate.h
+++ b/ash/system/web_notification/ash_popup_alignment_delegate.h
@@ -12,7 +12,7 @@
#include "ash/shelf/shelf_types.h"
#include "ash/shell_observer.h"
#include "base/macros.h"
-#include "ui/gfx/display_observer.h"
+#include "ui/display/display_observer.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/message_center/views/popup_alignment_delegate.h"
@@ -24,6 +24,10 @@ namespace gfx {
class Screen;
}
+namespace display {
+using Screen = gfx::Screen;
+}
+
namespace ash {
class AshPopupAlignmentDelegateTest;
@@ -36,13 +40,13 @@ class ASH_EXPORT AshPopupAlignmentDelegate
: public message_center::PopupAlignmentDelegate,
public ShelfLayoutManagerObserver,
public ShellObserver,
- public gfx::DisplayObserver {
+ public display::DisplayObserver {
public:
explicit AshPopupAlignmentDelegate(ShelfLayoutManager* shelf);
~AshPopupAlignmentDelegate() override;
// Start observing the system.
- void StartObserving(gfx::Screen* screen, const gfx::Display& display);
+ void StartObserving(display::Screen* screen, const display::Display& display);
// Sets the current height of the system tray so that the notification toasts
// can avoid it.
@@ -54,7 +58,7 @@ class ASH_EXPORT AshPopupAlignmentDelegate
int GetWorkAreaBottom() const override;
bool IsTopDown() const override;
bool IsFromLeft() const override;
- void RecomputeAlignment(const gfx::Display& display) override;
+ void RecomputeAlignment(const display::Display& display) override;
private:
friend class AshPopupAlignmentDelegateTest;
@@ -64,7 +68,7 @@ class ASH_EXPORT AshPopupAlignmentDelegate
wm::ShelfAlignment GetAlignment() const;
// Utility function to get the display which should be care about.
- gfx::Display GetCurrentDisplay() const;
+ display::Display GetCurrentDisplay() const;
// Compute the new work area.
void UpdateWorkArea();
@@ -76,13 +80,13 @@ class ASH_EXPORT AshPopupAlignmentDelegate
void WillChangeVisibilityState(ShelfVisibilityState new_state) override;
void OnAutoHideStateChanged(ShelfAutoHideState new_state) override;
- // Overridden from gfx::DisplayObserver:
- void OnDisplayAdded(const gfx::Display& new_display) override;
- void OnDisplayRemoved(const gfx::Display& old_display) override;
- void OnDisplayMetricsChanged(const gfx::Display& display,
+ // Overridden from display::DisplayObserver:
+ void OnDisplayAdded(const display::Display& new_display) override;
+ void OnDisplayRemoved(const display::Display& old_display) override;
+ void OnDisplayMetricsChanged(const display::Display& display,
uint32_t metrics) override;
- gfx::Screen* screen_;
+ display::Screen* screen_;
gfx::Rect work_area_;
ShelfLayoutManager* shelf_;
int system_tray_height_;
« no previous file with comments | « ash/system/tray/tray_background_view.cc ('k') | ash/system/web_notification/ash_popup_alignment_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698