// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROMEOS_UI_FRAME_CAPTION_BUTTONS_SNAP_CONTROLLER_H_ #define CHROMEOS_UI_FRAME_CAPTION_BUTTONS_SNAP_CONTROLLER_H_ #include "base/component_export.h" namespace aura { class Window; } namespace chromeos { // Snap ratios that correspond to the size of a window when it is snapped. A // window with `kOneThirdSnapRatio` will snap to one third of the display, // `kTwoThirdSnapRatio` will snap to two thirds of the display, and // `kDefaultSnapRatio` will snap to the default half of the display. constexpr float kOneThirdSnapRatio = …; constexpr float kDefaultSnapRatio = …; constexpr float kTwoThirdSnapRatio = …; // The previewed snap state for a window, corresponding to the use of a // PhantomWindowController. enum class SnapDirection { … }; // This interface handles snap actions to be performed on a top level window. // The singleton that implements the interface is provided by Ash. class COMPONENT_EXPORT(CHROMEOS_UI_FRAME) SnapController { … }; } // namespace chromeos #endif // CHROMEOS_UI_FRAME_CAPTION_BUTTONS_SNAP_CONTROLLER_H_