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

Side by Side Diff: ash/wm/window_properties.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_WINDOW_PROPERTIES_H_ 5 #ifndef ASH_WM_WINDOW_PROPERTIES_H_
6 #define ASH_WM_WINDOW_PROPERTIES_H_ 6 #define ASH_WM_WINDOW_PROPERTIES_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/wm_types.h"
9 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
10 11
11 namespace aura { 12 namespace aura {
12 class Window; 13 class Window;
13 14
14 template<typename T> 15 template<typename T>
15 struct WindowProperty; 16 struct WindowProperty;
16 } 17 }
17 18
18 namespace ash { 19 namespace ash {
19 namespace wm { 20 namespace wm {
20 class WindowState; 21 class WindowState;
21 } // namespace wm 22 } // namespace wm
22 namespace internal { 23 namespace internal {
23 24
24 // Shell-specific window property keys. 25 // Shell-specific window property keys.
25 26
26 // Alphabetical sort. 27 // Alphabetical sort.
27 28
28 // A property key to suppress the cross-fade animation for the transition to 29 // A property key to suppress the cross-fade animation for the transition to
29 // the fullscreen state. 30 // the fullscreen state.
30 extern const aura::WindowProperty<bool>* const kAnimateToFullscreenKey; 31 extern const aura::WindowProperty<bool>* const kAnimateToFullscreenKey;
31 32
32 // A property key to indicate whether there is any chrome at all that cannot be 33 // A property key to indicate the type of fullscreen that the window is in. The
33 // hidden when the window is fullscreen. This is unrelated to whether the full 34 // value of the key is irrelevant when not in fullscreen.
34 // chrome can be revealed by hovering the mouse at the top of the screen. 35 ASH_EXPORT extern const aura::WindowProperty<wm::FullscreenType>* const
35 ASH_EXPORT extern const aura::WindowProperty<bool>* const 36 kFullscreenTypeKey;
36 kFullscreenUsesMinimalChromeKey;
37 37
38 // If this is set to true, the window stays in the same root window 38 // If this is set to true, the window stays in the same root window
39 // even if the bounds outside of its root window is set. 39 // even if the bounds outside of its root window is set.
40 // This is exported as it's used in the tests. 40 // This is exported as it's used in the tests.
41 ASH_EXPORT extern const aura::WindowProperty<bool>* const 41 ASH_EXPORT extern const aura::WindowProperty<bool>* const
42 kStayInSameRootWindowKey; 42 kStayInSameRootWindowKey;
43 43
44 // Property to tell if the container uses the screen coordinates. 44 // Property to tell if the container uses the screen coordinates.
45 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey; 45 extern const aura::WindowProperty<bool>* const kUsesScreenCoordinatesKey;
46 46
47 // A property key to store WindowState in the window. The window state 47 // A property key to store WindowState in the window. The window state
48 // is owned by the window. 48 // is owned by the window.
49 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey; 49 extern const aura::WindowProperty<wm::WindowState*>* const kWindowStateKey;
50 50
51 // Alphabetical sort. 51 // Alphabetical sort.
52 52
53 } // namespace internal 53 } // namespace internal
54 } // namespace ash 54 } // namespace ash
55 55
56 #endif // ASH_WM_WINDOW_PROPERTIES_H_ 56 #endif // ASH_WM_WINDOW_PROPERTIES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698