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

Side by Side Diff: ui/views/controls/slide_out_view.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: Move comment and early return instead of big blocks. 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 unified diff | Download patch
« no previous file with comments | « ui/views/bubble/tray_bubble_view.cc ('k') | ui/views/controls/slide_out_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_
6 #define UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_
7 7
8 #include "ui/compositor/layer_animation_observer.h" 8 #include "ui/compositor/layer_animation_observer.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 10 matching lines...) Expand all
21 protected: 21 protected:
22 // Called when user intends to close the View by sliding it out. 22 // Called when user intends to close the View by sliding it out.
23 virtual void OnSlideOut() = 0; 23 virtual void OnSlideOut() = 0;
24 24
25 // Overridden from views::View. 25 // Overridden from views::View.
26 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 26 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
27 27
28 private: 28 private:
29 enum SlideDirection { 29 enum SlideDirection {
30 SLIDE_LEFT, 30 SLIDE_LEFT,
31 SLIDE_RIGHT 31 SLIDE_RIGHT,
32 }; 32 };
33 33
34 // Restores the transform and opacity of the view. 34 // Restores the transform and opacity of the view.
35 void RestoreVisualState(); 35 void RestoreVisualState();
36 36
37 // Slides the view out and closes it after the animation. 37 // Slides the view out and closes it after the animation.
38 void SlideOutAndClose(SlideDirection direction); 38 void SlideOutAndClose(SlideDirection direction);
39 39
40 // Overridden from ImplicitAnimationObserver. 40 // Overridden from ImplicitAnimationObserver.
41 virtual void OnImplicitAnimationsCompleted() OVERRIDE; 41 virtual void OnImplicitAnimationsCompleted() OVERRIDE;
42 42
43 float gesture_scroll_amount_; 43 float gesture_scroll_amount_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(SlideOutView); 45 DISALLOW_COPY_AND_ASSIGN(SlideOutView);
46 }; 46 };
47 47
48 } // namespace views 48 } // namespace views
49 49
50 #endif // UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_ 50 #endif // UI_VIEWS_CONTROLS_SLIDE_OUT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/bubble/tray_bubble_view.cc ('k') | ui/views/controls/slide_out_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698