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

Side by Side Diff: content/browser/web_contents/web_contents_view_overscroll_animator_slider_mac.h

Issue 2845063003: Remove unreferenced content/browser/web_contents/web_contents_view_overscroll_ files.
Patch Set: Created 3 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_OVERSCROLL_ANIMATOR_SLIDE R_MAC_H_
6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_OVERSCROLL_ANIMATOR_SLIDE R_MAC_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include <memory>
11
12 #include "base/mac/scoped_nsobject.h"
13 #include "content/browser/web_contents/web_contents_view_overscroll_animator_mac .h"
14
15 namespace overscroll_animator {
16 class WebContentsPaintObserver;
17 } // namespace overscroll_animator
18
19 @interface OverscrollAnimatorSliderView
20 : NSView<WebContentsOverscrollAnimator> {
21 // This container view holds the RenderWidgetHost's NativeViews. Most of the
22 // time, its frame in screen coordinates is the same as SliderView's frame in
23 // screen coordinates. During an overscroll animation, it may temporarily be
24 // relocated, but it will return to its original position after the overscroll
25 // animation is finished.
26 base::scoped_nsobject<NSView> middleView_;
27
28 // This view is a sibling of middleView_, and is guaranteed to live below it.
29 // Most of the time, it is hidden. During a backwards overscroll animation,
30 // middleView_ is slid to the right, and bottomView_ peeks out from the
31 // original position of middleView_.
32 base::scoped_nsobject<NSImageView> bottomView_;
33
34 // This view is a sibling of middleView_, and is guaranteed to live above it.
35 // Most of the time, it is hidden. During a forwards overscroll animation,
36 // topView_ is slid to the left from off screen, its final position exactly
37 // covering middleView_.
38 base::scoped_nsobject<NSImageView> topView_;
39
40 // The direction of the current overscroll animation. This property has no
41 // meaning when inOverscroll_ is false.
42 content::OverscrollAnimatorDirection direction_;
43
44 // Indicates that this view is completing or cancelling the overscroll. This
45 // animation cannot be cancelled.
46 BOOL animating_;
47
48 // Reflects whether this view is in the process of handling an overscroll.
49 BOOL inOverscroll_;
50
51 // The most recent value passed to -updateOverscrollProgress:.
52 CGFloat progress_;
53
54 // An observer that reports the first non-empty paint of a WebContents. This
55 // is used when completing an overscroll animation.
56 std::unique_ptr<overscroll_animator::WebContentsPaintObserver> observer_;
57 }
58 @end
59
60 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_OVERSCROLL_ANIMATOR_SL IDER_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698