OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_ |
| 6 #define MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 |
| 10 namespace gfx { |
| 11 class Point; |
| 12 } |
| 13 |
| 14 namespace views { |
| 15 class NonClientFrameView; |
| 16 class Widget; |
| 17 } |
| 18 |
| 19 namespace mash { |
| 20 namespace wm { |
| 21 class FrameCaptionButtonContainerView; |
| 22 |
| 23 // Class which manages the hittest override bounds for |frame|. |
| 24 class FrameBorderHitTestController { |
| 25 public: |
| 26 // Does the non client hit test on behalf of |view|. |point_in_widget| must be |
| 27 // in the coordinates of |view|'s widget. |
| 28 static int NonClientHitTest( |
| 29 views::NonClientFrameView* view, |
| 30 FrameCaptionButtonContainerView* caption_button_container, |
| 31 const gfx::Point& point_in_widget); |
| 32 |
| 33 private: |
| 34 DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBorderHitTestController); |
| 35 }; |
| 36 |
| 37 } // namespace wm |
| 38 } // namespace mash |
| 39 |
| 40 #endif // MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_ |
OLD | NEW |