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

Side by Side Diff: ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h

Issue 2265563002: Shuffles around immersive related classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@immersive_pure_virtual
Patch Set: move comment 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_DELEGATE_H_
6 #define ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_DELEGATE_H_
7
8 #include <vector>
9
10 #include "ash/ash_export.h"
11
12 namespace gfx {
13 class Rect;
14 }
15
16 namespace ash {
17
18 class ASH_EXPORT WmImmersiveFullscreenControllerDelegate {
19 public:
20 // Called when a reveal of the top-of-window views starts.
21 virtual void OnImmersiveRevealStarted() = 0;
22
23 // Called when the top-of-window views have finished closing. This call
24 // implies a visible fraction of 0. SetVisibleFraction(0) may not be called
25 // prior to OnImmersiveRevealEnded().
26 virtual void OnImmersiveRevealEnded() = 0;
27
28 // Called as a result of disabling immersive fullscreen via SetEnabled().
29 virtual void OnImmersiveFullscreenExited() = 0;
30
31 // Called to update the fraction of the top-of-window views height which is
32 // visible.
33 virtual void SetVisibleFraction(double visible_fraction) = 0;
34
35 // Returns a list of rects whose union makes up the top-of-window views.
36 // The returned list is used for hittesting when the top-of-window views
37 // are revealed. GetVisibleBoundsInScreen() must return a valid value when
38 // not in immersive fullscreen for the sake of SetupForTest().
39 virtual std::vector<gfx::Rect> GetVisibleBoundsInScreen() const = 0;
40
41 protected:
42 virtual ~WmImmersiveFullscreenControllerDelegate() {}
43 };
44
45 } // namespace ash
46
47 #endif // ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_DELEGATE_H _
OLDNEW
« no previous file with comments | « ash/common/wm/immersive/wm_immersive_fullscreen_controller.h ('k') | ash/common/wm/immersive_context_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698