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

Unified Diff: chrome/browser/ui/views/frame/browser_root_view.h

Issue 688253002: Implemented smooth scrolling using xinput2 in X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed device hotplugging, initialised variable Created 5 years 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
Index: chrome/browser/ui/views/frame/browser_root_view.h
diff --git a/chrome/browser/ui/views/frame/browser_root_view.h b/chrome/browser/ui/views/frame/browser_root_view.h
index 6849bb064537a9fcdd0a2afcbf133fa5090f5333..14dfc719734d4a6b31e39e9ca8a14ed4a9aee471 100644
--- a/chrome/browser/ui/views/frame/browser_root_view.h
+++ b/chrome/browser/ui/views/frame/browser_root_view.h
@@ -39,6 +39,7 @@ class BrowserRootView : public views::internal::RootView {
int OnPerformDrop(const ui::DropTargetEvent& event) override;
const char* GetClassName() const override;
bool OnMouseWheel(const ui::MouseWheelEvent& event) override;
+ void OnMouseExited(const ui::MouseEvent& event) override;
private:
// ui::EventProcessor:
@@ -68,6 +69,11 @@ class BrowserRootView : public views::internal::RootView {
// to the tab strip.
bool forwarding_to_tab_strip_;
+ // Used to calculate partial offsets in scrolls that occur for a smooth
+ // scroll device.
+ int scroll_amount_x_;
+ int scroll_amount_y_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserRootView);
};

Powered by Google App Engine
This is Rietveld 408576698