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

Side by Side Diff: ui/wm/public/easy_resize_window_targeter.h

Issue 115453004: Moves management of transients out of Window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove unneeded parens Created 6 years, 11 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
« no previous file with comments | « ui/wm/core/easy_resize_window_targeter.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_WM_PUBLIC_EASY_RESIZE_WINDOW_TARGETER_H_ 5 #ifndef UI_WM_PUBLIC_EASY_RESIZE_WINDOW_TARGETER_H_
6 #define UI_WM_PUBLIC_EASY_RESIZE_WINDOW_TARGETER_H_ 6 #define UI_WM_PUBLIC_EASY_RESIZE_WINDOW_TARGETER_H_
7 7
8 #include "ui/aura/window_targeter.h" 8 #include "ui/aura/window_targeter.h"
9 #include "ui/gfx/geometry/insets.h" 9 #include "ui/gfx/geometry/insets.h"
10 10
(...skipping 18 matching lines...) Expand all
29 void set_touch_extend(const gfx::Insets& touch_extend) { 29 void set_touch_extend(const gfx::Insets& touch_extend) {
30 touch_extend_ = touch_extend; 30 touch_extend_ = touch_extend;
31 } 31 }
32 32
33 // aura::WindowTargeter: 33 // aura::WindowTargeter:
34 virtual bool EventLocationInsideBounds( 34 virtual bool EventLocationInsideBounds(
35 aura::Window* window, 35 aura::Window* window,
36 const ui::LocatedEvent& event) const OVERRIDE; 36 const ui::LocatedEvent& event) const OVERRIDE;
37 37
38 private: 38 private:
39 // Returns true if the hit testing (EventLocationInsideBounds()) should use
40 // the extended bounds.
41 bool ShouldUseExtendedBounds(const aura::Window* window) const;
42
39 aura::Window* container_; 43 aura::Window* container_;
40 gfx::Insets mouse_extend_; 44 gfx::Insets mouse_extend_;
41 gfx::Insets touch_extend_; 45 gfx::Insets touch_extend_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(EasyResizeWindowTargeter); 47 DISALLOW_COPY_AND_ASSIGN(EasyResizeWindowTargeter);
44 }; 48 };
45 49
46 } // namespace wm 50 } // namespace wm
47 51
48 #endif // UI_WM_PUBLIC_EASY_RESIZE_WINDOW_TARGETER_H_ 52 #endif // UI_WM_PUBLIC_EASY_RESIZE_WINDOW_TARGETER_H_
OLDNEW
« no previous file with comments | « ui/wm/core/easy_resize_window_targeter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698