OLD | NEW |
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_ | |
OLD | NEW |