blob: ad1cf763d1c52768b69fd2ab370e30fc06d0d5e6 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_WM_DESKS_ROOT_WINDOW_DESK_SWITCH_ANIMATOR_TEST_API_H_
#define ASH_WM_DESKS_ROOT_WINDOW_DESK_SWITCH_ANIMATOR_TEST_API_H_
namespace ui {
class Layer;
}
namespace ash {
class RootWindowDeskSwitchAnimator;
// Use the api in this class to test the internals of
// RootWindowDeskSwitchAnimator.
class RootWindowDeskSwitchAnimatorTestApi {
public:
explicit RootWindowDeskSwitchAnimatorTestApi(
RootWindowDeskSwitchAnimator* animator);
RootWindowDeskSwitchAnimatorTestApi(
const RootWindowDeskSwitchAnimatorTestApi&) = delete;
RootWindowDeskSwitchAnimatorTestApi& operator=(
const RootWindowDeskSwitchAnimatorTestApi&) = delete;
~RootWindowDeskSwitchAnimatorTestApi();
// Getters for the layers associated with the animation.
ui::Layer* GetAnimationLayer();
ui::Layer* GetScreenshotLayerOfDeskWithIndex(int desk_index);
int GetEndingDeskIndex() const;
private:
RootWindowDeskSwitchAnimator* const animator_;
};
} // namespace ash
#endif // ASH_WM_DESKS_ROOT_WINDOW_DESK_SWITCH_ANIMATOR_TEST_API_H_