back_gesture_contextual_nudge_delegate.h 925 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2020 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. #ifndef ASH_PUBLIC_CPP_BACK_GESTURE_CONTEXTUAL_NUDGE_DELEGATE_H_
  5. #define ASH_PUBLIC_CPP_BACK_GESTURE_CONTEXTUAL_NUDGE_DELEGATE_H_
  6. #include "ash/public/cpp/ash_public_export.h"
  7. namespace aura {
  8. class Window;
  9. }
  10. namespace ash {
  11. // Used by BackGestureContextualNudgeController to communicate with chrome
  12. // side BackGestureContextualNudgeDelegate.
  13. class ASH_PUBLIC_EXPORT BackGestureContextualNudgeDelegate {
  14. public:
  15. BackGestureContextualNudgeDelegate() = default;
  16. virtual ~BackGestureContextualNudgeDelegate() = default;
  17. // Starts tracking navigation status for |window| if applicable.
  18. virtual void MaybeStartTrackingNavigation(aura::Window* window) = 0;
  19. };
  20. } // namespace ash
  21. #endif // ASH_PUBLIC_CPP_BACK_GESTURE_CONTEXTUAL_NUDGE_DELEGATE_H_