forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
drag_handle.h
35 lines (27 loc) · 1.07 KB
/
drag_handle.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// 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_SHELF_DRAG_HANDLE_H_
#define ASH_SHELF_DRAG_HANDLE_H_
#include "ash/ash_export.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/style/ash_color_provider.h"
#include "base/timer/timer.h"
#include "ui/views/view.h"
#include "ui/views/view_targeter_delegate.h"
namespace ash {
class ASH_EXPORT DragHandle : public views::View,
public views::ViewTargeterDelegate {
public:
explicit DragHandle(gfx::Size drag_handle_size,
AshColorProvider::RippleAttributes ripple_attributes,
int drag_handle_corner_radius);
DragHandle(const DragHandle&) = delete;
~DragHandle() override;
DragHandle& operator=(const DragHandle&) = delete;
// views::ViewTargeterDelegate:
bool DoesIntersectRect(const views::View* target,
const gfx::Rect& rect) const override;
};
} // namespace ash
#endif // ASH_SHELF_DRAG_HANDLE_H_