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

Unified Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.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: chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
diff --git a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
index a1f90cbdfccb09bd1d1c700378c9c1d7a92f8205..34d8dedf76f7f604b108ed9ac16d77a039feb714 100644
--- a/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
+++ b/chrome/browser/ui/views/frame/immersive_mode_controller_ash.h
@@ -110,7 +110,6 @@ class ImmersiveModeControllerAsh : public ImmersiveModeController,
aura::Window* transient) OVERRIDE;
// Testing interface.
- void SetForceHideTabIndicatorsForTest(bool force);
void StartRevealForTest(bool hovered);
void SetMouseHoveredForTest(bool hovered);
void DisableAnimationsForTest();
@@ -137,11 +136,6 @@ class ImmersiveModeControllerAsh : public ImmersiveModeController,
REVEALED, // All views showing, y = 0.
SLIDING_CLOSED, // All views showing, y animating from 0 to -height.
};
- enum TabIndicatorVisibility {
- TAB_INDICATORS_FORCE_HIDE,
- TAB_INDICATORS_HIDE,
- TAB_INDICATORS_SHOW
- };
enum SwipeType {
SWIPE_OPEN,
SWIPE_CLOSE,
@@ -238,13 +232,6 @@ class ImmersiveModeControllerAsh : public ImmersiveModeController,
// child of |top_container_|.
void RecreateBubbleManager();
- // Shrinks or expands the touch hit test by updating insets for the render
- // window depending on if top_inset is positive or negative respectively.
- // Used to ensure that touch events at the top of the screen go to the top
- // container so a slide gesture can be generated when the content window is
- // consuming all touch events sent to it.
- void SetRenderWindowTopInsetsForTouch(int top_inset);
-
// Injected dependencies. Not owned.
Delegate* delegate_;
views::Widget* widget_;
@@ -261,10 +248,6 @@ class ImmersiveModeControllerAsh : public ImmersiveModeController,
int revealed_lock_count_;
- // The visibility of the miniature "tab indicators" in the main browser view
- // when immersive mode is enabled and the top-of-window views are closed.
- TabIndicatorVisibility tab_indicator_visibility_;
-
// Timer to track cursor being held at the top edge of the screen.
base::OneShotTimer<ImmersiveModeController> top_edge_hover_timer_;

Powered by Google App Engine
This is Rietveld 408576698