| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_ | 5 #ifndef ASH_MUS_FRAME_FRAME_BORDER_HIT_TEST_CONTROLLER_H_ |
| 6 #define MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_ | 6 #define ASH_MUS_FRAME_FRAME_BORDER_HIT_TEST_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Insets; | 11 class Insets; |
| 12 class Point; | 12 class Point; |
| 13 } | 13 } |
| 14 | 14 |
| 15 namespace views { | 15 namespace views { |
| 16 class NonClientFrameView; | 16 class NonClientFrameView; |
| 17 class Widget; | 17 class Widget; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace mash { | 20 namespace ash { |
| 21 namespace wm { | 21 namespace mus { |
| 22 class FrameCaptionButtonContainerView; | 22 class FrameCaptionButtonContainerView; |
| 23 | 23 |
| 24 // Class which manages the hittest override bounds for |frame|. | 24 // Class which manages the hittest override bounds for |frame|. |
| 25 class FrameBorderHitTestController { | 25 class FrameBorderHitTestController { |
| 26 public: | 26 public: |
| 27 // Returns the amount of space resizes are allowed to occur outside the | 27 // Returns the amount of space resizes are allowed to occur outside the |
| 28 // bounds of windows. | 28 // bounds of windows. |
| 29 static gfx::Insets GetResizeOutsideBoundsSize(); | 29 static gfx::Insets GetResizeOutsideBoundsSize(); |
| 30 | 30 |
| 31 // Does the non client hit test on behalf of |view|. |point_in_widget| must be | 31 // Does the non client hit test on behalf of |view|. |point_in_widget| must be |
| 32 // in the coordinates of |view|'s widget. | 32 // in the coordinates of |view|'s widget. |
| 33 static int NonClientHitTest( | 33 static int NonClientHitTest( |
| 34 views::NonClientFrameView* view, | 34 views::NonClientFrameView* view, |
| 35 FrameCaptionButtonContainerView* caption_button_container, | 35 FrameCaptionButtonContainerView* caption_button_container, |
| 36 const gfx::Point& point_in_widget); | 36 const gfx::Point& point_in_widget); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBorderHitTestController); | 39 DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBorderHitTestController); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace wm | 42 } // namespace mus |
| 43 } // namespace mash | 43 } // namespace ash |
| 44 | 44 |
| 45 #endif // MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_ | 45 #endif // ASH_MUS_FRAME_FRAME_BORDER_HIT_TEST_CONTROLLER_H_ |
| OLD | NEW |