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

Side by Side Diff: ash/wm/frame_border_hit_test_controller.h

Issue 27458002: Allow setting different hit test bounds overrides for mouse and touch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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 ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_ 5 #ifndef ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_
6 #define ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_ 6 #define ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/window_state_observer.h" 9 #include "ash/wm/window_state_observer.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 25 matching lines...) Expand all
36 // coordinates of |view|'s widget. 36 // coordinates of |view|'s widget.
37 static int NonClientHitTest(views::NonClientFrameView* view, 37 static int NonClientHitTest(views::NonClientFrameView* view,
38 HeaderPainter* header_painter, 38 HeaderPainter* header_painter,
39 const gfx::Point& point); 39 const gfx::Point& point);
40 40
41 private: 41 private:
42 // Updates the size of the region inside of |window_| in which the resize 42 // Updates the size of the region inside of |window_| in which the resize
43 // handles are shown based on |window_|'s show type. 43 // handles are shown based on |window_|'s show type.
44 void UpdateHitTestBoundsOverrideInner(); 44 void UpdateHitTestBoundsOverrideInner();
45 45
46 // WindowStateObserver override: 46 // WindowStateObserver overrides:
47 virtual void OnWindowShowTypeChanged(wm::WindowState* window_state, 47 virtual void OnWindowShowTypeChanged(wm::WindowState* window_state,
48 wm::WindowShowType old_type) OVERRIDE; 48 wm::WindowShowType old_type) OVERRIDE;
49 virtual void OnWindowFullscreenTypeChanged(
50 wm::WindowState* window_state,
51 wm::FullscreenType old_type) OVERRIDE;
49 // WindowObserver override: 52 // WindowObserver override:
50 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 53 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
51 54
52 // The window whose hittest override bounds are being managed. 55 // The window whose hittest override bounds are being managed.
53 aura::Window* frame_window_; 56 aura::Window* frame_window_;
54 57
55 DISALLOW_COPY_AND_ASSIGN(FrameBorderHitTestController); 58 DISALLOW_COPY_AND_ASSIGN(FrameBorderHitTestController);
56 }; 59 };
57 60
58 } // namespace ash 61 } // namespace ash
59 62
60 #endif // ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_ 63 #endif // ASH_WM_FRAME_BORDER_HITTEST_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698