OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 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 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_ |
| 7 |
| 8 namespace gfx { |
| 9 class Rect; |
| 10 } |
| 11 |
| 12 namespace ui { |
| 13 class Layer; |
| 14 } |
| 15 |
| 16 namespace views { |
| 17 class Views; |
| 18 } |
| 19 |
| 20 // Delegate for ScrollEndEffectController instances, normally implemented by |
| 21 // BrowserView |
| 22 class ScrollEndEffectControllerDelegate { |
| 23 public: |
| 24 // Allows access to the layers that the controller needs |
| 25 virtual ui::Layer* GetBrowserFrameLayer() = 0; |
| 26 virtual ui::Layer* GetWebContentsLayer() = 0; |
| 27 virtual ui::Layer* GetDevToolsLayer() = 0; |
| 28 |
| 29 // Allows access to the views that the controller needs |
| 30 virtual views::View* GetNonClientView() = 0; |
| 31 virtual views::View* GetDownloadView() = 0; |
| 32 |
| 33 // Calculates the onscreen size without the controller needing to know |
| 34 // details. |
| 35 virtual int GetDevToolsHeight() = 0; |
| 36 virtual int GetDividerHeight() = 0; |
| 37 }; |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H
_ |
| 39 |
OLD | NEW |