Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: chrome/browser/ui/views/frame/scroll_end_effect_controller_delegate.h

Issue 22265009: Implement initial version of scroll end effect Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code cleanup for sadrul@ Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 };
sky 2013/09/05 21:12:57 porotected virtual destructor.
rharrison 2013/09/09 20:01:17 Done.
38 #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.
39
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698