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

Unified Diff: ash/wm/wm_types.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 side-by-side diff with in-line comments
Download patch
Index: ash/wm/wm_types.h
diff --git a/ash/wm/wm_types.h b/ash/wm/wm_types.h
index da3db00bde1c99937cc3ef655a9a2a04951a268d..4d9002db1d3abe8d1273a55f92b42b7c9ed4058c 100644
--- a/ash/wm/wm_types.h
+++ b/ash/wm/wm_types.h
@@ -5,6 +5,7 @@
#ifndef ASH_WM_WM_TYPES_H_
#define ASH_WM_WM_TYPES_H_
+#include "ash/ash_export.h"
#include "ui/base/ui_base_types.h"
namespace ash {
@@ -46,7 +47,32 @@ enum WindowShowType {
WindowShowType ToWindowShowType(ui::WindowShowState state);
ui::WindowShowState ToWindowShowState(WindowShowType type);
-} // namespace
-} // namespace
+// This enum defines the types of fullscreen. It is only relevant when
+// WindowShowType == SHOW_TYPE_FULLSCREEN.
+enum FullscreenType {
James Cook 2013/10/16 16:38:35 This seems like a good idea. I would put it in Win
pkotwicz 2013/10/17 04:45:08 Done.
+ // - Light bars are used instead of regular tabs when the top-of-window views
+ // are hidden. The user can reveal the top-of-window views by hovering the
+ // mouse at top of the screen.
+ // - The shelf is forced to auto hide.
+ FULLSCREEN_TYPE_IMMERSIVE_MINIMAL_CHROME,
+
+ // - The tab strip is hidden when the top-of-window views are hidden. The
+ // user can reveal the top-of-window views by hovering the
+ // mouse at the top of the screen.
+ // - The shelf is completely hidden and cannot be revealed.
+ FULLSCREEN_TYPE_IMMERSIVE_NO_CHROME,
+
+ // - The tab strip is hidden and the top-of-window views cannot be revealed.
+ // - The shelf is completely hidden and cannot be revealed.
+ // - There may be a bubble which slides out when the user hovers the mouse at
+ // top of the screen.
+ FULLSCREEN_TYPE_OTHER
+};
+
+// Returns true if |type| is a type of immersive fullscreen.
+ASH_EXPORT bool IsImmersiveFullscreenType(FullscreenType type);
+
+} // namespace wm
+} // namespace ash
#endif // ASH_WM_WM_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698