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

Side by Side Diff: content/browser/renderer_host/overscroll_controller.h

Issue 14999012: Move cc/debug/latency_info to ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
11 11
12 namespace cc { 12 namespace ui {
13 struct LatencyInfo; 13 struct LatencyInfo;
14 } 14 }
15 15
16 namespace content { 16 namespace content {
17 17
18 class MockRenderWidgetHost; 18 class MockRenderWidgetHost;
19 class OverscrollControllerDelegate; 19 class OverscrollControllerDelegate;
20 class RenderWidgetHostImpl; 20 class RenderWidgetHostImpl;
21 21
22 enum OverscrollMode { 22 enum OverscrollMode {
(...skipping 14 matching lines...) Expand all
37 // Creates an overscroll controller for the specified RenderWidgetHost. 37 // Creates an overscroll controller for the specified RenderWidgetHost.
38 // The RenderWidgetHost owns this overscroll controller. 38 // The RenderWidgetHost owns this overscroll controller.
39 explicit OverscrollController(RenderWidgetHostImpl* widget_host); 39 explicit OverscrollController(RenderWidgetHostImpl* widget_host);
40 virtual ~OverscrollController(); 40 virtual ~OverscrollController();
41 41
42 // This must be called when dispatching any event from the 42 // This must be called when dispatching any event from the
43 // RenderWidgetHostView so that the state of the overscroll gesture can be 43 // RenderWidgetHostView so that the state of the overscroll gesture can be
44 // updated properly. 44 // updated properly.
45 // Returns true if the event should be dispatched, false otherwise. 45 // Returns true if the event should be dispatched, false otherwise.
46 bool WillDispatchEvent(const WebKit::WebInputEvent& event, 46 bool WillDispatchEvent(const WebKit::WebInputEvent& event,
47 const cc::LatencyInfo& latency_info); 47 const ui::LatencyInfo& latency_info);
48 48
49 // This must be called when the ACK for any event comes in. This updates the 49 // This must be called when the ACK for any event comes in. This updates the
50 // overscroll gesture status as appropriate. 50 // overscroll gesture status as appropriate.
51 void ReceivedEventACK(const WebKit::WebInputEvent& event, bool processed); 51 void ReceivedEventACK(const WebKit::WebInputEvent& event, bool processed);
52 52
53 OverscrollMode overscroll_mode() const { return overscroll_mode_; } 53 OverscrollMode overscroll_mode() const { return overscroll_mode_; }
54 54
55 void set_delegate(OverscrollControllerDelegate* delegate) { 55 void set_delegate(OverscrollControllerDelegate* delegate) {
56 delegate_ = delegate; 56 delegate_ = delegate;
57 } 57 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // The delegate that receives the overscroll updates. The delegate is not 119 // The delegate that receives the overscroll updates. The delegate is not
120 // owned by this controller. 120 // owned by this controller.
121 OverscrollControllerDelegate* delegate_; 121 OverscrollControllerDelegate* delegate_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(OverscrollController); 123 DISALLOW_COPY_AND_ASSIGN(OverscrollController);
124 }; 124 };
125 125
126 } // namespace content 126 } // namespace content
127 127
128 #endif // CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_ 128 #endif // CONTENT_BROWSER_RENDERER_HOST_OVERSCROLL_CONTROLLER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/event_with_latency_info.h ('k') | content/browser/renderer_host/overscroll_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698