browser_controls_offset_manager_client.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_CLIENT_H_
  5. #define CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_CLIENT_H_
  6. namespace gfx {
  7. class PointF;
  8. }
  9. namespace cc {
  10. class CC_EXPORT BrowserControlsOffsetManagerClient {
  11. public:
  12. virtual float TopControlsHeight() const = 0;
  13. virtual float TopControlsMinHeight() const = 0;
  14. virtual float BottomControlsHeight() const = 0;
  15. virtual float BottomControlsMinHeight() const = 0;
  16. virtual void SetCurrentBrowserControlsShownRatio(float top_ratio,
  17. float bottom_ratio) = 0;
  18. virtual float CurrentTopControlsShownRatio() const = 0;
  19. virtual float CurrentBottomControlsShownRatio() const = 0;
  20. virtual gfx::PointF ViewportScrollOffset() const = 0;
  21. virtual void DidChangeBrowserControlsPosition() = 0;
  22. virtual bool OnlyExpandTopControlsAtPageTop() const = 0;
  23. virtual bool HaveRootScrollNode() const = 0;
  24. virtual void SetNeedsCommit() = 0;
  25. protected:
  26. virtual ~BrowserControlsOffsetManagerClient() {}
  27. };
  28. } // namespace cc
  29. #endif // CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_CLIENT_H_