#include "ash/wm/float/float_test_api.h"
#include "ash/shell.h"
namespace ash {
FloatTestApi::ScopedTuckEducationDisabler::ScopedTuckEducationDisabler() {
Shell::Get()->float_controller()->disable_tuck_education_for_testing_ = true;
}
FloatTestApi::ScopedTuckEducationDisabler::~ScopedTuckEducationDisabler() {
Shell::Get()->float_controller()->disable_tuck_education_for_testing_ = false;
}
int FloatTestApi::GetFloatedWindowCounter() {
return Shell::Get()->float_controller()->floated_window_counter_;
}
int FloatTestApi::GetFloatedWindowMoveToAnotherDeskCounter() {
return Shell::Get()
->float_controller()
->floated_window_move_to_another_desk_counter_;
}
FloatController::MagnetismCorner FloatTestApi::GetMagnetismCornerForBounds(
const gfx::Rect& bounds_in_screen) {
return Shell::Get()->float_controller()->GetMagnetismCornerForBounds(
bounds_in_screen);
}
}