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

Unified Diff: ash/wm/overview/window_selector.cc

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
« no previous file with comments | « ash/wm/overview/window_selector.h ('k') | ash/wm/panels/panel_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector.cc
diff --git a/ash/wm/overview/window_selector.cc b/ash/wm/overview/window_selector.cc
index 0883531b84f70679bbb7be5a2ce21f2bb9f4b4b1..04794285a2c59535e05805ece43a4ac379b86049 100644
--- a/ash/wm/overview/window_selector.cc
+++ b/ash/wm/overview/window_selector.cc
@@ -37,9 +37,9 @@
#include "ui/aura/window_observer.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
+#include "ui/display/screen.h"
#include "ui/events/event.h"
#include "ui/gfx/canvas.h"
-#include "ui/gfx/screen.h"
#include "ui/gfx/skia_util.h"
#include "ui/views/border.h"
#include "ui/views/controls/textfield/textfield.h"
@@ -319,7 +319,7 @@ void WindowSelector::Init(const WindowList& windows) {
shell->activation_client()->AddObserver(this);
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
shell->metrics()->RecordUserMetricsAction(UMA_WINDOW_OVERVIEW);
// Send an a11y alert.
shell->accessibility_delegate()->TriggerAccessibilityAlert(
@@ -382,7 +382,7 @@ void WindowSelector::RemoveAllObservers() {
window->RemoveObserver(this);
shell->activation_client()->RemoveObserver(this);
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
if (restore_focus_window_)
restore_focus_window_->RemoveObserver(this);
}
@@ -469,15 +469,14 @@ bool WindowSelector::HandleKeyEvent(views::Textfield* sender,
return true;
}
-void WindowSelector::OnDisplayAdded(const gfx::Display& display) {
-}
+void WindowSelector::OnDisplayAdded(const display::Display& display) {}
-void WindowSelector::OnDisplayRemoved(const gfx::Display& display) {
+void WindowSelector::OnDisplayRemoved(const display::Display& display) {
// TODO(flackr): Keep window selection active on remaining displays.
CancelSelection();
}
-void WindowSelector::OnDisplayMetricsChanged(const gfx::Display& display,
+void WindowSelector::OnDisplayMetricsChanged(const display::Display& display,
uint32_t metrics) {
PositionWindows(/* animate */ false);
RepositionTextFilterOnDisplayMetricsChange();
« no previous file with comments | « ash/wm/overview/window_selector.h ('k') | ash/wm/panels/panel_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698