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

Side by Side 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, 3 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 #include "ash/mus/bridge/immersive_handler_factory_mus.h"
6
7 #include "ash/shared/immersive_focus_watcher.h"
8 #include "ash/shared/immersive_gesture_handler.h"
9 #include "base/logging.h"
10 #include "base/memory/ptr_util.h"
11
12 namespace ash {
13 namespace mus {
14
15 ImmersiveHandlerFactoryMus::ImmersiveHandlerFactoryMus() {}
16
17 ImmersiveHandlerFactoryMus::~ImmersiveHandlerFactoryMus() {}
18
19 std::unique_ptr<ImmersiveFocusWatcher>
20 ImmersiveHandlerFactoryMus::CreateFocusWatcher(
21 ImmersiveFullscreenController* controller) {
22 // ImmersiveFocusWatcher does two interesting things:
23 // . It listens for focus in the top view and triggers reveal.
24 // . It watches for transient windows that are bubbles anchored to the
25 // top view.
26 // ImmersiveFullscreenController, when used in mus, does not have any
27 // focusable views in the top view and the client can not create bubbles
28 // anchored to the top view (the client does not have access to the top view).
29 // This means ImmersiveFocusWatcher is not applicable here, and null is
30 // returned.
31 return nullptr;
32 }
33
34 std::unique_ptr<ImmersiveGestureHandler>
35 ImmersiveHandlerFactoryMus::CreateGestureHandler(
36 ImmersiveFullscreenController* controller) {
37 // http://crbug.com/640394.
38 NOTIMPLEMENTED();
39 return nullptr;
40 }
41
42 } // namespace mus
43 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698