Chromium Code Reviews| Index: chrome/browser/ui/views/frame/scroll_end_effect_controller_delegate.h |
| diff --git a/chrome/browser/ui/views/frame/scroll_end_effect_controller_delegate.h b/chrome/browser/ui/views/frame/scroll_end_effect_controller_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..45304f4d48891d1ed40ad7a15f61ef7623bb7045 |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/frame/scroll_end_effect_controller_delegate.h |
| @@ -0,0 +1,39 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_ |
| + |
| +namespace gfx { |
| +class Rect; |
| +} |
| + |
| +namespace ui { |
| +class Layer; |
| +} |
| + |
| +namespace views { |
| +class Views; |
| +} |
| + |
| +// Delegate for ScrollEndEffectController instances, normally implemented by |
| +// BrowserView |
| +class ScrollEndEffectControllerDelegate { |
| + public: |
| + // Allows access to the layers that the controller needs |
| + virtual ui::Layer* GetBrowserFrameLayer() = 0; |
| + virtual ui::Layer* GetWebContentsLayer() = 0; |
| + virtual ui::Layer* GetDevToolsLayer() = 0; |
| + |
| + // Allows access to the views that the controller needs |
| + virtual views::View* GetNonClientView() = 0; |
| + virtual views::View* GetDownloadView() = 0; |
| + |
| + // Calculates the onscreen size without the controller needing to know |
| + // details. |
| + virtual int GetDevToolsHeight() = 0; |
| + virtual int GetDividerHeight() = 0; |
| +}; |
|
sky
2013/09/05 21:12:57
porotected virtual destructor.
rharrison
2013/09/09 20:01:17
Done.
|
| +#endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_ |
|
sky
2013/09/05 21:12:57
nit: newline between 37/38.
rharrison
2013/09/09 20:01:17
Done.
|
| + |