• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef UI_BASE_HIT_TEST_H_
6 #define UI_BASE_HIT_TEST_H_
7 
8 #if !defined(OS_WIN)
9 
10 // Defines the same symbolic names used by the WM_NCHITTEST Notification under
11 // win32 (the integer values are not guaranteed to be equivalent). We do this
12 // because we have a whole bunch of code that deals with window resizing and
13 // such that requires these values.
14 enum HitTestCompat {
15   HTNOWHERE = 0,
16   HTBORDER,
17   HTBOTTOM,
18   HTBOTTOMLEFT,
19   HTBOTTOMRIGHT,
20   HTCAPTION,
21   HTCLIENT,
22   HTCLOSE,
23   HTERROR,
24   HTGROWBOX,
25   HTHELP,
26   HTHSCROLL,
27   HTLEFT,
28   HTMENU,
29   HTMAXBUTTON,
30   HTMINBUTTON,
31   HTREDUCE,
32   HTRIGHT,
33   HTSIZE,
34   HTSYSMENU,
35   HTTOP,
36   HTTOPLEFT,
37   HTTOPRIGHT,
38   HTTRANSPARENT,
39   HTVSCROLL,
40   HTZOOM
41 };
42 
43 #endif  // !defined(OS_WIN)
44 
45 #endif  // UI_BASE_HIT_TEST_H_
46