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

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.h

Issue 2737653004: UMA metrics for use count of wheel and touch scrolls. (Closed)
Patch Set: TODO for GRC usage added. Created 3 years, 9 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #ifndef WebViewFrameWidget_h 5 #ifndef WebViewFrameWidget_h
6 #define WebViewFrameWidget_h 6 #define WebViewFrameWidget_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "web/WebFrameWidgetBase.h" 9 #include "web/WebFrameWidgetBase.h"
10 #include "web/WebInputMethodControllerImpl.h" 10 #include "web/WebInputMethodControllerImpl.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 WebCompositeAndReadbackAsyncCallback*) override; 56 WebCompositeAndReadbackAsyncCallback*) override;
57 void themeChanged() override; 57 void themeChanged() override;
58 WebInputEventResult handleInputEvent(const WebCoalescedInputEvent&) override; 58 WebInputEventResult handleInputEvent(const WebCoalescedInputEvent&) override;
59 void setCursorVisibilityState(bool isVisible) override; 59 void setCursorVisibilityState(bool isVisible) override;
60 bool hasTouchEventHandlersAt(const WebPoint&) override; 60 bool hasTouchEventHandlersAt(const WebPoint&) override;
61 void applyViewportDeltas(const WebFloatSize& visualViewportDelta, 61 void applyViewportDeltas(const WebFloatSize& visualViewportDelta,
62 const WebFloatSize& layoutViewportDelta, 62 const WebFloatSize& layoutViewportDelta,
63 const WebFloatSize& elasticOverscrollDelta, 63 const WebFloatSize& elasticOverscrollDelta,
64 float scaleFactor, 64 float scaleFactor,
65 float browserControlsShownRatioDelta) override; 65 float browserControlsShownRatioDelta) override;
66 void recordWheelAndTouchScrollingCount(bool hasScrolledByWheel,
67 bool hasScrolledByTouch) override;
66 void mouseCaptureLost() override; 68 void mouseCaptureLost() override;
67 void setFocus(bool) override; 69 void setFocus(bool) override;
68 WebRange compositionRange() override; 70 WebRange compositionRange() override;
69 bool selectionBounds(WebRect& anchor, WebRect& focus) const override; 71 bool selectionBounds(WebRect& anchor, WebRect& focus) const override;
70 bool selectionTextDirection(WebTextDirection& start, 72 bool selectionTextDirection(WebTextDirection& start,
71 WebTextDirection& end) const override; 73 WebTextDirection& end) const override;
72 bool isSelectionAnchorFirst() const override; 74 bool isSelectionAnchorFirst() const override;
73 WebRange caretOrSelectionRange() override; 75 WebRange caretOrSelectionRange() override;
74 void setTextDirection(WebTextDirection) override; 76 void setTextDirection(WebTextDirection) override;
75 bool isAcceleratedCompositingActive() const override; 77 bool isAcceleratedCompositingActive() const override;
(...skipping 28 matching lines...) Expand all
104 106
105 private: 107 private:
106 WebWidgetClient* m_client; 108 WebWidgetClient* m_client;
107 RefPtr<WebViewImpl> m_webView; 109 RefPtr<WebViewImpl> m_webView;
108 Persistent<WebLocalFrameImpl> m_mainFrame; 110 Persistent<WebLocalFrameImpl> m_mainFrame;
109 }; 111 };
110 112
111 } // namespace blink 113 } // namespace blink
112 114
113 #endif // WebViewFrameWidget_h 115 #endif // WebViewFrameWidget_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698