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

Unified Diff: ash/mus/bridge/immersive_handler_factory_mus.cc

Issue 2277563002: Wires up immersive mode for chrome and mash (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/mus/bridge/immersive_handler_factory_mus.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/immersive_handler_factory_mus.cc
diff --git a/ash/mus/bridge/immersive_handler_factory_mus.cc b/ash/mus/bridge/immersive_handler_factory_mus.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6c5654576782eb4356a5b2a814f6e438ded3f804
--- /dev/null
+++ b/ash/mus/bridge/immersive_handler_factory_mus.cc
@@ -0,0 +1,43 @@
+// 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.
+
+#include "ash/mus/bridge/immersive_handler_factory_mus.h"
+
+#include "ash/shared/immersive_focus_watcher.h"
+#include "ash/shared/immersive_gesture_handler.h"
+#include "base/logging.h"
+#include "base/memory/ptr_util.h"
+
+namespace ash {
+namespace mus {
+
+ImmersiveHandlerFactoryMus::ImmersiveHandlerFactoryMus() {}
+
+ImmersiveHandlerFactoryMus::~ImmersiveHandlerFactoryMus() {}
+
+std::unique_ptr<ImmersiveFocusWatcher>
+ImmersiveHandlerFactoryMus::CreateFocusWatcher(
+ ImmersiveFullscreenController* controller) {
+ // ImmersiveFocusWatcher does two interesting things:
+ // . It listens for focus in the top view and triggers reveal.
+ // . It watches for transient windows that are bubbles anchored to the
+ // top view.
+ // ImmersiveFullscreenController, when used in mus, does not have any
+ // focusable views in the top view and the client can not create bubbles
+ // anchored to the top view (the client does not have access to the top view).
+ // This means ImmersiveFocusWatcher is not applicable here, and null is
+ // returned.
+ return nullptr;
+}
+
+std::unique_ptr<ImmersiveGestureHandler>
+ImmersiveHandlerFactoryMus::CreateGestureHandler(
+ ImmersiveFullscreenController* controller) {
+ // http://crbug.com/640394.
+ NOTIMPLEMENTED();
+ return nullptr;
+}
+
+} // namespace mus
+} // namespace ash
« no previous file with comments | « ash/mus/bridge/immersive_handler_factory_mus.h ('k') | ash/mus/bridge/wm_shell_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698