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

Unified Diff: ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h

Issue 2222653002: Moves CustomFrameViewAsh to common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 4 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
« no previous file with comments | « ash/common/wm/immersive/wm_immersive_fullscreen_controller.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h
diff --git a/ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h b/ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..72416fe44fa44a7728599aea69584dbde3a3222f
--- /dev/null
+++ b/ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h
@@ -0,0 +1,47 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_DELEGATE_H_
+#define ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_DELEGATE_H_
+
+#include <vector>
+
+#include "ash/ash_export.h"
+
+namespace gfx {
+class Rect;
+}
+
+namespace ash {
+
+class WmImmersiveFullscreenControllerDelegate {
+ public:
+ // Called when a reveal of the top-of-window views starts.
+ virtual void OnImmersiveRevealStarted() = 0;
+
+ // Called when the top-of-window views have finished closing. This call
+ // implies a visible fraction of 0. SetVisibleFraction(0) may not be called
+ // prior to OnImmersiveRevealEnded().
+ virtual void OnImmersiveRevealEnded() = 0;
+
+ // Called as a result of disabling immersive fullscreen via SetEnabled().
+ virtual void OnImmersiveFullscreenExited() = 0;
+
+ // Called to update the fraction of the top-of-window views height which is
+ // visible.
+ virtual void SetVisibleFraction(double visible_fraction) = 0;
+
+ // Returns a list of rects whose union makes up the top-of-window views.
+ // The returned list is used for hittesting when the top-of-window views
+ // are revealed. GetVisibleBoundsInScreen() must return a valid value when
+ // not in immersive fullscreen for the sake of SetupForTest().
+ virtual std::vector<gfx::Rect> GetVisibleBoundsInScreen() const = 0;
+
+ protected:
+ virtual ~WmImmersiveFullscreenControllerDelegate() {}
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_DELEGATE_H_
« no previous file with comments | « ash/common/wm/immersive/wm_immersive_fullscreen_controller.h ('k') | ash/common/wm_shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698