Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(743)

Unified Diff: mash/wm/frame/frame_border_hit_test_controller.h

Issue 1459653002: Gets mustash frames looking like that of ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mash/wm/frame/default_header_painter.cc ('k') | mash/wm/frame/frame_border_hit_test_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/frame_border_hit_test_controller.h
diff --git a/mash/wm/frame/frame_border_hit_test_controller.h b/mash/wm/frame/frame_border_hit_test_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..bcfbb77d5917ea9445d639fb04cdd03b33fd1d1b
--- /dev/null
+++ b/mash/wm/frame/frame_border_hit_test_controller.h
@@ -0,0 +1,40 @@
+// Copyright 2015 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 MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_
+#define MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_
+
+#include "base/macros.h"
+
+namespace gfx {
+class Point;
+}
+
+namespace views {
+class NonClientFrameView;
+class Widget;
+}
+
+namespace mash {
+namespace wm {
+class FrameCaptionButtonContainerView;
+
+// Class which manages the hittest override bounds for |frame|.
+class FrameBorderHitTestController {
+ public:
+ // Does the non client hit test on behalf of |view|. |point_in_widget| must be
+ // in the coordinates of |view|'s widget.
+ static int NonClientHitTest(
+ views::NonClientFrameView* view,
+ FrameCaptionButtonContainerView* caption_button_container,
+ const gfx::Point& point_in_widget);
+
+ private:
+ DISALLOW_IMPLICIT_CONSTRUCTORS(FrameBorderHitTestController);
+};
+
+} // namespace wm
+} // namespace mash
+
+#endif // MASH_WM_FRAME_FRAME_BORDER_HITTEST_CONTROLLER_H_
« no previous file with comments | « mash/wm/frame/default_header_painter.cc ('k') | mash/wm/frame/frame_border_hit_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698