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

Side by Side Diff: Source/web/WebPluginScrollbarImpl.h

Issue 819953002: Mac: Update scrollbar size and input position during impl-overscroll (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Peure virtual Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // WebPluginScrollbar methods 73 // WebPluginScrollbar methods
74 virtual void setLocation(const WebRect&) override; 74 virtual void setLocation(const WebRect&) override;
75 virtual void setValue(int position) override; 75 virtual void setValue(int position) override;
76 virtual void setDocumentSize(int) override; 76 virtual void setDocumentSize(int) override;
77 virtual void scroll(ScrollDirection, ScrollGranularity, float multiplier) ov erride; 77 virtual void scroll(ScrollDirection, ScrollGranularity, float multiplier) ov erride;
78 virtual void paint(WebCanvas*, const WebRect&) override; 78 virtual void paint(WebCanvas*, const WebRect&) override;
79 virtual bool handleInputEvent(const WebInputEvent&) override; 79 virtual bool handleInputEvent(const WebInputEvent&) override;
80 virtual bool isAlphaLocked() const override; 80 virtual bool isAlphaLocked() const override;
81 virtual void setIsAlphaLocked(bool) override; 81 virtual void setIsAlphaLocked(bool) override;
82 virtual float elasticOverscroll() const override;
83 virtual void setElasticOverscroll(float) override;
82 84
83 private: 85 private:
84 bool onMouseDown(const WebInputEvent&); 86 bool onMouseDown(const WebInputEvent&);
85 bool onMouseUp(const WebInputEvent&); 87 bool onMouseUp(const WebInputEvent&);
86 bool onMouseMove(const WebInputEvent&); 88 bool onMouseMove(const WebInputEvent&);
87 bool onMouseLeave(const WebInputEvent&); 89 bool onMouseLeave(const WebInputEvent&);
88 bool onMouseWheel(const WebInputEvent&); 90 bool onMouseWheel(const WebInputEvent&);
89 bool onKeyDown(const WebInputEvent&); 91 bool onKeyDown(const WebInputEvent&);
90 92
91 ScrollbarGroup* m_group; 93 ScrollbarGroup* m_group;
92 WebPluginScrollbarClient* m_client; 94 WebPluginScrollbarClient* m_client;
93 95
94 int m_scrollOffset; 96 int m_scrollOffset;
95 RefPtrWillBePersistent<Scrollbar> m_scrollbar; 97 RefPtrWillBePersistent<Scrollbar> m_scrollbar;
96 }; 98 };
97 99
98 } // namespace blink 100 } // namespace blink
99 101
100 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/web/WebInputEventConversion.cpp ('k') | Source/web/WebPluginScrollbarImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698