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

Unified Diff: ash/utility/partial_screenshot_controller.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/utility/partial_screenshot_controller.h ('k') | ash/wm/ash_native_cursor_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/utility/partial_screenshot_controller.cc
diff --git a/ash/utility/partial_screenshot_controller.cc b/ash/utility/partial_screenshot_controller.cc
index 9e83e0cd12211c2c236632b791c1b77f1d50efa2..0d5c6b725b2d59c33f5ea8336599dda9ab632b3c 100644
--- a/ash/utility/partial_screenshot_controller.cc
+++ b/ash/utility/partial_screenshot_controller.cc
@@ -12,10 +12,10 @@
#include "ash/shell_window_ids.h"
#include "base/stl_util.h"
#include "ui/compositor/paint_recorder.h"
+#include "ui/display/screen.h"
#include "ui/events/event.h"
#include "ui/events/event_handler.h"
#include "ui/gfx/canvas.h"
-#include "ui/gfx/screen.h"
#include "ui/wm/core/cursor_manager.h"
namespace ash {
@@ -146,7 +146,7 @@ void PartialScreenshotController::StartPartialScreenshotSession(
}
screenshot_delegate_ = screenshot_delegate;
- gfx::Screen::GetScreen()->AddObserver(this);
+ display::Screen::GetScreen()->AddObserver(this);
for (aura::Window* root : Shell::GetAllRootWindows()) {
layers_[root] = new PartialScreenshotLayer(
Shell::GetContainer(root, kShellWindowId_OverlayContainer)->layer());
@@ -199,7 +199,7 @@ void PartialScreenshotController::Complete() {
void PartialScreenshotController::Cancel() {
root_window_ = nullptr;
screenshot_delegate_ = nullptr;
- gfx::Screen::GetScreen()->RemoveObserver(this);
+ display::Screen::GetScreen()->RemoveObserver(this);
STLDeleteValues(&layers_);
cursor_setter_.reset();
EnableMouseWarp(true);
@@ -273,22 +273,21 @@ void PartialScreenshotController::OnTouchEvent(ui::TouchEvent* event) {
}
void PartialScreenshotController::OnDisplayAdded(
- const gfx::Display& new_display) {
+ const display::Display& new_display) {
if (!screenshot_delegate_)
return;
Cancel();
}
void PartialScreenshotController::OnDisplayRemoved(
- const gfx::Display& old_display) {
+ const display::Display& old_display) {
if (!screenshot_delegate_)
return;
Cancel();
}
void PartialScreenshotController::OnDisplayMetricsChanged(
- const gfx::Display& display,
- uint32_t changed_metrics) {
-}
+ const display::Display& display,
+ uint32_t changed_metrics) {}
} // namespace ash
« no previous file with comments | « ash/utility/partial_screenshot_controller.h ('k') | ash/wm/ash_native_cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698