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

Unified Diff: ui/views/controls/slide_out_view_impl.h

Issue 11836003: Allow message center and related bubbles to render on Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove ifdefs. Created 7 years, 11 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: 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_
+
+

Powered by Google App Engine
This is Rietveld 408576698