Index: ui/views/controls/slide_out_view_impl.h |
diff --git a/ui/views/controls/slide_out_view_impl.h b/ui/views/controls/slide_out_view_impl.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..19a50cfb868e9d89abca677ed85f5f9b3a3da9e8 |
--- /dev/null |
+++ b/ui/views/controls/slide_out_view_impl.h |
@@ -0,0 +1,39 @@ |
+// Copyright (c) 2012 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 UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_IMPL_H_ |
+#define UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_IMPL_H_ |
+ |
+#include "ui/views/controls/slide_out_view.h" |
+#include "ui/views/view.h" |
+#include "ui/views/views_export.h" |
+ |
+namespace views { |
+ |
+// SlideOutViewImpl implements the view transformations that accompany a |
+// swipe out gesture. |
+class SlideOutViewImpl : public SlideOutView::Impl { |
+ public: |
+ SlideOutViewImpl(SlideOutView* view); |
+ virtual ~SlideOutViewImpl(); |
+ |
+ // Used when the scroll amount changes, this method should transform |view| |
msw
2013/01/17 02:28:30
nit: These comments should go with the pure virtua
dewittj
2013/01/17 21:25:18
Gone.
|
+ // appropriately. |
+ virtual void TransformView(float scroll_amount) OVERRIDE; |
+ // Restores the view to its original state. |
+ virtual void RestoreView() OVERRIDE; |
+ // Completes the slideout animation. |
+ virtual void HideView(SlideOutView::SlideDirection direction) OVERRIDE; |
+ |
+ private: |
+ views::SlideOutView* view_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(SlideOutViewImpl); |
+}; |
+ |
+} // namespace views |
+ |
+#endif // UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_IMPL_H_ |
+ |
+ |