blob: 0d80e3d7247c1f83d79c5b9fa8670117d1e8f464 [file] [log] [blame]
// Copyright 2019 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_PUBLIC_CPP_SPLIT_VIEW_TEST_API_H_
#define ASH_PUBLIC_CPP_SPLIT_VIEW_TEST_API_H_
#include "ash/ash_export.h"
#include "base/macros.h"
namespace aura {
class Window;
} // namespace aura
namespace ash {
// Provides access to the limited functions of SplitViewController for testing.
class ASH_EXPORT SplitViewTestApi {
public:
// See SplitViewController::SnapPosition.
enum class SnapPosition { NONE, LEFT, RIGHT };
SplitViewTestApi();
~SplitViewTestApi();
// Snaps the window to left/right in the split view.
void SnapWindow(aura::Window* window, SnapPosition snap_position);
private:
DISALLOW_COPY_AND_ASSIGN(SplitViewTestApi);
};
} // namespace ash
#endif // ASH_PUBLIC_CPP_SPLIT_VIEW_TEST_API_H_