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

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: Fixed another compile issue :-/ Created 7 years, 2 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..17214d092c8752635f829c99b50cd047eec60b8d
--- /dev/null
+++ b/chrome/browser/ui/views/frame/scroll_end_effect_controller_delegate.h
@@ -0,0 +1,27 @@
+// 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;
+}
+
+class ContentsContainer;
+
+// Delegate for ScrollEndEffectController instances, normally implemented by
+// BrowserView
+class ScrollEndEffectControllerDelegate {
+ public:
+ virtual ContentsContainer* GetContentsContainer() = 0;
+ virtual gfx::Rect GetFrameBounds() = 0;
+ virtual void SetFrameBounds(gfx::Rect bounds) = 0;
+
+ protected:
+ virtual ~ScrollEndEffectControllerDelegate() { }
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_SCROLL_END_EFFECT_CONTROLLER_DELEGATE_H_
+

Powered by Google App Engine
This is Rietveld 408576698