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

Unified Diff: ash/wm/immersive_context_ash.h

Issue 2260613002: Adds ImmersiveContext and ImmersiveHandlerFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback 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/shell.cc ('k') | ash/wm/immersive_context_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/immersive_context_ash.h
diff --git a/ash/wm/immersive_context_ash.h b/ash/wm/immersive_context_ash.h
new file mode 100644
index 0000000000000000000000000000000000000000..8742fca8a9f3e4b19208164c2c7abcff92df35d8
--- /dev/null
+++ b/ash/wm/immersive_context_ash.h
@@ -0,0 +1,36 @@
+// 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_WM_IMMERSIVE_CONTEXT_ASH_H_
+#define ASH_WM_IMMERSIVE_CONTEXT_ASH_H_
+
+#include "ash/shared/immersive_context.h"
+#include "base/macros.h"
+
+namespace ash {
+
+class ASH_EXPORT ImmersiveContextAsh : public ImmersiveContext {
+ public:
+ ImmersiveContextAsh();
+ ~ImmersiveContextAsh() override;
+
+ // ImmersiveContext:
+ void InstallResizeHandleWindowTargeter(
+ ImmersiveFullscreenController* controller) override;
+ void OnEnteringOrExitingImmersive(ImmersiveFullscreenController* controller,
+ bool entering) override;
+ gfx::Rect GetDisplayBoundsInScreen(views::Widget* widget) override;
+ void AddPointerWatcher(views::PointerWatcher* watcher,
+ bool wants_moves) override;
+ void RemovePointerWatcher(views::PointerWatcher* watcher) override;
+ bool DoesAnyWindowHaveCapture() override;
+ bool IsMouseEventsEnabled() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ImmersiveContextAsh);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_IMMERSIVE_CONTEXT_ASH_H_
« no previous file with comments | « ash/shell.cc ('k') | ash/wm/immersive_context_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698