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

Unified Diff: ash/test/ash_test_base.cc

Issue 2029323002: mash: Convert AshPopupAlignmentDelegate to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 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
« no previous file with comments | « ash/test/ash_test_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index ab9be2969fecd72e1e5ac22beb0a46999f25b260..f3bf640761a2c7c26624d42904e15ab43b24e457 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -9,7 +9,9 @@
#include "ash/ash_switches.h"
#include "ash/common/wm/window_positioner.h"
+#include "ash/common/wm_root_window_controller.h"
#include "ash/common/wm_shell.h"
+#include "ash/common/wm_window.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/ime/input_method_event_handler.h"
#include "ash/shell.h"
@@ -179,6 +181,7 @@ ui::test::EventGenerator& AshTestBase::GetEventGenerator() {
return *event_generator_.get();
}
+// static
display::Display::Rotation AshTestBase::GetActiveDisplayRotation(int64_t id) {
return Shell::GetInstance()
->display_manager()
@@ -186,18 +189,29 @@ display::Display::Rotation AshTestBase::GetActiveDisplayRotation(int64_t id) {
.GetActiveRotation();
}
+// static
display::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() {
return GetActiveDisplayRotation(display::Display::InternalDisplayId());
}
+// static
bool AshTestBase::SupportsMultipleDisplays() {
return AshTestHelper::SupportsMultipleDisplays();
}
+// static
bool AshTestBase::SupportsHostWindowResize() {
return AshTestHelper::SupportsHostWindowResize();
}
+// static
+WmShelf* AshTestBase::GetPrimaryShelf() {
+ return WmShell::Get()
+ ->GetPrimaryRootWindow()
+ ->GetRootWindowController()
+ ->GetShelf();
+}
+
void AshTestBase::UpdateDisplay(const std::string& display_specs) {
DisplayManagerTestApi().UpdateDisplay(display_specs);
}
« no previous file with comments | « ash/test/ash_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698