| 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 CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_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 aura { |
| 12 namespace client { |
| 13 class CaptureClient; |
| 14 } |
| 15 } |
| 16 |
| 11 class ImmersiveContextMus : public ash::ImmersiveContext { | 17 class ImmersiveContextMus : public ash::ImmersiveContext { |
| 12 public: | 18 public: |
| 13 ImmersiveContextMus(); | 19 explicit ImmersiveContextMus(aura::client::CaptureClient* capture_client); |
| 14 ~ImmersiveContextMus() override; | 20 ~ImmersiveContextMus() override; |
| 15 | 21 |
| 16 // ash::ImmersiveContext: | 22 // ash::ImmersiveContext: |
| 17 void InstallResizeHandleWindowTargeter( | 23 void InstallResizeHandleWindowTargeter( |
| 18 ash::ImmersiveFullscreenController* controller) override; | 24 ash::ImmersiveFullscreenController* controller) override; |
| 19 void OnEnteringOrExitingImmersive( | 25 void OnEnteringOrExitingImmersive( |
| 20 ash::ImmersiveFullscreenController* controller, | 26 ash::ImmersiveFullscreenController* controller, |
| 21 bool entering) override; | 27 bool entering) override; |
| 22 gfx::Rect GetDisplayBoundsInScreen(views::Widget* widget) override; | 28 gfx::Rect GetDisplayBoundsInScreen(views::Widget* widget) override; |
| 23 void AddPointerWatcher(views::PointerWatcher* watcher, | 29 void AddPointerWatcher(views::PointerWatcher* watcher, |
| 24 views::PointerWatcherEventTypes events) override; | 30 views::PointerWatcherEventTypes events) override; |
| 25 void RemovePointerWatcher(views::PointerWatcher* watcher) override; | 31 void RemovePointerWatcher(views::PointerWatcher* watcher) override; |
| 26 bool DoesAnyWindowHaveCapture() override; | 32 bool DoesAnyWindowHaveCapture() override; |
| 27 bool IsMouseEventsEnabled() override; | 33 bool IsMouseEventsEnabled() override; |
| 28 | 34 |
| 29 private: | 35 private: |
| 36 aura::client::CaptureClient* capture_client_; |
| 37 |
| 30 DISALLOW_COPY_AND_ASSIGN(ImmersiveContextMus); | 38 DISALLOW_COPY_AND_ASSIGN(ImmersiveContextMus); |
| 31 }; | 39 }; |
| 32 | 40 |
| 33 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_ | 41 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_CONTEXT_MUS_H_ |
| OLD | NEW |