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

Unified Diff: Source/modules/pointerevents/NavigatorPointerEvents.h

Issue 20598008: Add maxTouchPoints for pointer events (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/pointerevents/NavigatorPointerEvents.h
diff --git a/Source/modules/donottrack/NavigatorDoNotTrack.h b/Source/modules/pointerevents/NavigatorPointerEvents.h
similarity index 79%
copy from Source/modules/donottrack/NavigatorDoNotTrack.h
copy to Source/modules/pointerevents/NavigatorPointerEvents.h
index 0c044e7cd8edef2f8860c374d59f077e1e963816..de56940b853d021932e2d9397a028badbf9a5bd3 100644
--- a/Source/modules/donottrack/NavigatorDoNotTrack.h
+++ b/Source/modules/pointerevents/NavigatorPointerEvents.h
@@ -28,8 +28,8 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef NavigatorDoNotTrack_h
-#define NavigatorDoNotTrack_h
+#ifndef NavigatorPointerEvents_h
+#define NavigatorPointerEvents_h
#include "core/page/DOMWindowProperty.h"
#include "core/platform/Supplementable.h"
@@ -40,20 +40,22 @@ namespace WebCore {
class Frame;
class Navigator;
-class NavigatorDoNotTrack : public Supplement<Navigator>, public DOMWindowProperty {
+class NavigatorPointerEvents : public Supplement<Navigator>, public DOMWindowProperty {
public:
- virtual ~NavigatorDoNotTrack();
- static NavigatorDoNotTrack* from(Navigator*);
+ virtual ~NavigatorPointerEvents();
+ static NavigatorPointerEvents* from(Navigator*);
- static String doNotTrack(Navigator*);
+ static bool pointerEnabled(Navigator*);
+ static long maxTouchPoints(Navigator*);
- String doNotTrack();
+ bool pointerEnabled();
+ long maxTouchPoints();
private:
- explicit NavigatorDoNotTrack(Frame*);
+ explicit NavigatorPointerEvents(Frame*);
static const char* supplementName();
};
} // namespace WebCore
-#endif // NavigatorDoNotTrack_h
+#endif // NavigatorPointerEvents_h

Powered by Google App Engine
This is Rietveld 408576698