blob: 227fbacd8e89b0c8738157bb06ac5dbd90acac3f [file] [log] [blame]
// Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_TYPES_H_
#define CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_TYPES_H_
// Enum passed to EndDrag().
enum EndDragReason {
// Complete the drag.
END_DRAG_COMPLETE,
// Cancel/revert the drag.
END_DRAG_CANCEL,
// The drag should end as the result of a capture lost.
END_DRAG_CAPTURE_LOST,
};
// Source of the call to CloseTab().
enum CloseTabSource {
CLOSE_TAB_FROM_MOUSE,
CLOSE_TAB_FROM_TOUCH,
};
// Source of the call to ToggleTabGroup(). The source of the call can trigger
// different behaviors such as logging and different animations. Tests will
// generally use |kImplicitAction| unless testing a particular code path.
enum class ToggleTabGroupCollapsedStateOrigin {
kImplicitAction,
kMouse,
kKeyboard,
kGesture
};
#endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_STRIP_TYPES_H_