blob: 3709e185151127ab6cd64c1d60a326cb20301c2a (
plain)
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
|
// Copyright 2018 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 UI_VIEWS_WINDOW_HIT_TEST_UTILS_H_
#define UI_VIEWS_WINDOW_HIT_TEST_UTILS_H_
#include "ui/views/views_export.h"
namespace gfx {
class Point;
}
namespace views {
class View;
// Returns the inner most non-HTNOWHERE |kHitTestComponentKey| value at
// |point_in_widget| within the hierarchy of |view|, otherwise returns
// HTNOWHERE.
VIEWS_EXPORT int GetHitTestComponent(View* view,
const gfx::Point& point_in_widget);
// Sets the |kHitTestComponentKey| property of |view|.
VIEWS_EXPORT void SetHitTestComponent(View* view, int hit_test_id);
} // namespace views
#endif // UI_VIEWS_WINDOW_HIT_TEST_UTILS_H_
|