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

Unified 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: Cleaned up animation code 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 side-by-side diff with in-line comments
Download patch
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;
+};
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_
sadrul 2013/09/05 16:09:02 Ha!
+

Powered by Google App Engine
This is Rietveld 408576698