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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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
« no previous file with comments | « ui/views/controls/single_split_view_unittest.cc ('k') | ui/views/controls/slide_out_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slide_out_view.h
diff --git a/ui/views/controls/slide_out_view.h b/ui/views/controls/slide_out_view.h
deleted file mode 100644
index 46b41351e2ec341d1450e0117d45be6216aa97e2..0000000000000000000000000000000000000000
--- a/ui/views/controls/slide_out_view.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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_H_
-#define UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_
-
-#include "ui/compositor/layer_animation_observer.h"
-#include "ui/views/view.h"
-#include "ui/views/views_export.h"
-
-namespace views {
-
-// A View that can be closed by a slide-out touch gesture.
-class VIEWS_EXPORT SlideOutView : public views::View,
- public ui::ImplicitAnimationObserver {
- public:
- SlideOutView();
- virtual ~SlideOutView();
-
- protected:
- // Called when user intends to close the View by sliding it out.
- virtual void OnSlideOut() = 0;
-
- // Overridden from views::View.
- virtual void OnGestureEvent(ui::GestureEvent* event) override;
-
- private:
- enum SlideDirection {
- SLIDE_LEFT,
- SLIDE_RIGHT,
- };
-
- // Restores the transform and opacity of the view.
- void RestoreVisualState();
-
- // Slides the view out and closes it after the animation.
- void SlideOutAndClose(SlideDirection direction);
-
- // Overridden from ImplicitAnimationObserver.
- virtual void OnImplicitAnimationsCompleted() override;
-
- float gesture_scroll_amount_;
-
- DISALLOW_COPY_AND_ASSIGN(SlideOutView);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_
« no previous file with comments | « ui/views/controls/single_split_view_unittest.cc ('k') | ui/views/controls/slide_out_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698