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

Unified Diff: ash/test/ash_test_base.cc

Issue 10540091: Rename gfx::Monitor to gfx::Display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 744ada4d66251419398da28978caff0142f77739..ad9066be2111478f6f8061590668e35d9d9528b5 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -14,7 +14,7 @@
#include "ui/aura/root_window.h"
#include "ui/base/ime/text_input_test_support.h"
#include "ui/compositor/layer_animator.h"
-#include "ui/gfx/monitor.h"
+#include "ui/gfx/display.h"
#include "ui/gfx/screen.h"
namespace ash {
@@ -57,12 +57,12 @@ void AshTestBase::TearDown() {
void AshTestBase::ChangeMonitorConfig(float scale,
const gfx::Rect& bounds_in_pixel) {
- gfx::Monitor monitor = gfx::Monitor(gfx::Screen::GetPrimaryMonitor().id());
- monitor.SetScaleAndBounds(scale, bounds_in_pixel);
- std::vector<gfx::Monitor> monitors;
- monitors.push_back(monitor);
+ gfx::Display display = gfx::Display(gfx::Screen::GetPrimaryMonitor().id());
+ display.SetScaleAndBounds(scale, bounds_in_pixel);
+ std::vector<gfx::Display> displays;
+ displays.push_back(display);
aura::Env::GetInstance()->monitor_manager()->OnNativeMonitorsChanged(
- monitors);
+ displays);
}
void AshTestBase::RunAllPendingInMessageLoop() {
« no previous file with comments | « ash/shell.cc ('k') | ash/touch/touch_observer_hud.cc » ('j') | ui/gfx/screen.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698