1 // Copyright 2013 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.
5 #ifndef ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_
6 #define ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
21 class NonClientFrameView
;
28 // Class which manages the hittest override bounds for |frame|.
29 class ASH_EXPORT FrameBorderHitTestController
{
31 explicit FrameBorderHitTestController(views::Widget
* frame
);
32 virtual ~FrameBorderHitTestController();
34 // Does the non client hit test on behalf of |view|. |point| must be in the
35 // coordinates of |view|'s widget.
36 static int NonClientHitTest(views::NonClientFrameView
* view
,
37 HeaderPainter
* header_painter
,
38 const gfx::Point
& point
);
41 // The window whose hittest override bounds are being managed.
42 aura::Window
* frame_window_
;
44 DISALLOW_COPY_AND_ASSIGN(FrameBorderHitTestController
);
49 #endif // ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_