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

Side by Side Diff: chrome/browser/ui/views/frame/immersive_context_mus.h

Issue 2277563002: Wires up immersive mode for chrome and mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix crash 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_WM_IMMERSIVE_CONTEXT_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_
6 #define ASH_COMMON_WM_IMMERSIVE_CONTEXT_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_
7 7
8 #include "ash/shared/immersive_context.h" 8 #include "ash/shared/immersive_context.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
11 namespace ash { 11 class ImmersiveContextMus : public ash::ImmersiveContext {
12 public:
13 ImmersiveContextMus();
14 ~ImmersiveContextMus() override;
12 15
13 class ASH_EXPORT ImmersiveContextAsh : public ImmersiveContext { 16 // ash::ImmersiveContext:
14 public:
15 ImmersiveContextAsh();
16 ~ImmersiveContextAsh() override;
17
18 // ImmersiveContext:
19 void InstallResizeHandleWindowTargeter( 17 void InstallResizeHandleWindowTargeter(
20 ImmersiveFullscreenController* controller) override; 18 ash::ImmersiveFullscreenController* controller) override;
21 void OnEnteringOrExitingImmersive(ImmersiveFullscreenController* controller, 19 void OnEnteringOrExitingImmersive(
22 bool entering) override; 20 ash::ImmersiveFullscreenController* controller,
21 bool entering) override;
23 gfx::Rect GetDisplayBoundsInScreen(views::Widget* widget) override; 22 gfx::Rect GetDisplayBoundsInScreen(views::Widget* widget) override;
24 void AddPointerWatcher(views::PointerWatcher* watcher, 23 void AddPointerWatcher(views::PointerWatcher* watcher,
25 bool wants_moves) override; 24 bool wants_moves) override;
26 void RemovePointerWatcher(views::PointerWatcher* watcher) override; 25 void RemovePointerWatcher(views::PointerWatcher* watcher) override;
27 bool DoesAnyWindowHaveCapture() override; 26 bool DoesAnyWindowHaveCapture() override;
28 bool IsMouseEventsEnabled() override; 27 bool IsMouseEventsEnabled() override;
29 28
30 private: 29 private:
31 DISALLOW_COPY_AND_ASSIGN(ImmersiveContextAsh); 30 DISALLOW_COPY_AND_ASSIGN(ImmersiveContextMus);
32 }; 31 };
33 32
34 } // namespace ash 33 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_
35
36 #endif // ASH_COMMON_WM_IMMERSIVE_CONTEXT_ASH_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698