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

Unified Diff: ash/common/wm/immersive/wm_immersive_fullscreen_controller.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 side-by-side diff with in-line comments
Download patch
Index: ash/common/wm/immersive/wm_immersive_fullscreen_controller.h
diff --git a/ash/common/wm/immersive/wm_immersive_fullscreen_controller.h b/ash/common/wm/immersive/wm_immersive_fullscreen_controller.h
deleted file mode 100644
index 5e907f3b0b77e164d6059cae845116f9143831a7..0000000000000000000000000000000000000000
--- a/ash/common/wm/immersive/wm_immersive_fullscreen_controller.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// 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_H_
-#define ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
-
-#include "ash/ash_export.h"
-
-namespace views {
-class View;
-class Widget;
-}
-
-namespace ash {
-
-class WmImmersiveFullscreenControllerDelegate;
-
-// Controller for immersive mode. See ImmersiveFullscreenController for details.
-class ASH_EXPORT WmImmersiveFullscreenController {
- public:
- // The enum is used for an enumerated histogram. New items should be only
- // added to the end.
- enum WindowType {
- WINDOW_TYPE_OTHER,
- WINDOW_TYPE_BROWSER,
- WINDOW_TYPE_HOSTED_APP,
- WINDOW_TYPE_PACKAGED_APP,
- WINDOW_TYPE_COUNT
- };
-
- virtual ~WmImmersiveFullscreenController() {}
-
- // Initializes the controller. Must be called prior to enabling immersive
- // fullscreen via SetEnabled(). |top_container| is used to keep the
- // top-of-window views revealed when a child of |top_container| has focus.
- // |top_container| does not affect which mouse and touch events keep the
- // top-of-window views revealed. |widget| is the widget to make fullscreen.
- virtual void Init(WmImmersiveFullscreenControllerDelegate* delegate,
- views::Widget* widget,
- views::View* top_container) = 0;
-
- // Enables or disables immersive fullscreen.
- // |window_type| is the type of window which is put in immersive fullscreen.
- // It is only used for histogramming.
- virtual void SetEnabled(WindowType window_type, bool enable) = 0;
-
- // Returns true if in immersive fullscreen.
- virtual bool IsEnabled() const = 0;
-
- // Returns true if in immersive fullscreen and the top-of-window views are
- // fully or partially visible.
- virtual bool IsRevealed() const = 0;
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_IMMERSIVE_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
« no previous file with comments | « ash/common/frame/header_view.cc ('k') | ash/common/wm/immersive/wm_immersive_fullscreen_controller_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698