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

Side by Side Diff: third_party/webdriver/atoms.cc

Issue 420663006: [chromedriver] Fix mouse button value map in WebDriver atoms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do the same for mouseout events. Created 6 years, 4 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
« no previous file with comments | « no previous file | third_party/webdriver/patch.diff » ('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 2011-2014 Software Freedom Conservancy 2 * Copyright 2011-2014 Software Freedom Conservancy
3 * 3 *
4 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License. 5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at 6 * You may obtain a copy of the License at
7 * 7 *
8 * http://www.apache.org/licenses/LICENSE-2.0 8 * http://www.apache.org/licenses/LICENSE-2.0
9 * 9 *
10 * Unless required by applicable law or agreed to in writing, software 10 * Unless required by applicable law or agreed to in writing, software
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 "\"`\",\"~\");U(219,\"[\",\"{\");U(220,\"\\\\\",\"|\");U(221,\"]\",\"}\"", 827 "\"`\",\"~\");U(219,\"[\",\"{\");U(220,\"\\\\\",\"|\");U(221,\"]\",\"}\"",
828 ");U({b:59,a:186,opera:59},\";\",\":\");U(222,\"'\",'\"');var V=new T;V.", 828 ");U({b:59,a:186,opera:59},\";\",\":\");U(222,\"'\",'\"');var V=new T;V.",
829 "set(1,Cb);V.set(2,Db);V.set(4,Eb);V.set(8,Fb);(function(a){var c=new T;", 829 "set(1,Cb);V.set(2,Db);V.set(4,Eb);V.set(8,Fb);(function(a){var c=new T;",
830 "l(yb(a),function(b){c.set(a.get(b).code,b)});return c})(V);function Gb(", 830 "l(yb(a),function(b){c.set(a.get(b).code,b)});return c})(V);function Gb(",
831 "a,c,b){ib.call(this,c,b);this.p=this.g=null;this.m=new u(0,0);this.w=th", 831 "a,c,b){ib.call(this,c,b);this.p=this.g=null;this.m=new u(0,0);this.w=th",
832 "is.o=!1;if(a){\"number\"==typeof a.buttonPressed&&(this.g=a.buttonPress", 832 "is.o=!1;if(a){\"number\"==typeof a.buttonPressed&&(this.g=a.buttonPress",
833 "ed);try{J(a.elementPressed)&&(this.p=a.elementPressed)}catch(d){this.g=", 833 "ed);try{J(a.elementPressed)&&(this.p=a.elementPressed)}catch(d){this.g=",
834 "null}this.m=new u(a.clientXY.x,a.clientXY.y);this.o=!!a.nextClickIsDoub", 834 "null}this.m=new u(a.clientXY.x,a.clientXY.y);this.o=!!a.nextClickIsDoub",
835 "leClick;this.w=!!a.hasEverInteracted;try{a.element&&J(a.element)&&jb(th", 835 "leClick;this.w=!!a.hasEverInteracted;try{a.element&&J(a.element)&&jb(th",
836 "is,a.element)}catch(e){this.g=null}}}ba(Gb,ib);var W={};W[Q]=[0,1,2,nul", 836 "is,a.element)}catch(e){this.g=null}}}ba(Gb,ib);var W={};W[Q]=[0,1,2,nul",
837 "l];W[vb]=[null,null,2,null];W[qb]=[0,1,2,null];W[nb]=[0,1,2,0];\nW[xb]=", 837 "l];W[vb]=[null,null,2,null];W[qb]=[0,1,2,null];W[nb]=[0,1,2,4];\nW[xb]=",
838 "[0,1,2,0];W[wb]=W[Q];W[ob]=W[qb];W[mb]=W[nb];Gb.prototype.move=function", 838 "[0,1,2,4];W[wb]=W[Q];W[ob]=W[qb];W[mb]=W[nb];Gb.prototype.move=function",
839 "(a,c){var b=Ya(a),d=N(a);this.m.x=c.x+d.left;this.m.y=c.y+d.top;d=this.", 839 "(a,c){var b=Ya(a),d=N(a);this.m.x=c.x+d.left;this.m.y=c.y+d.top;d=this.",
840 "i();if(a!=d){try{Ca(w(d)).closed&&(d=null)}catch(e){d=null}if(d){var g=", 840 "i();if(a!=d){try{Ca(w(d)).closed&&(d=null)}catch(e){d=null}if(d){var g=",
841 "d===ca.document.documentElement||d===ca.document.body,d=!this.w&&g?null", 841 "d===ca.document.documentElement||d===ca.document.body,d=!this.w&&g?null",
842 ":d;X(this,nb,a)}jb(this,a);X(this,mb,d,null,b)}X(this,xb,null,null,b);t", 842 ":d;X(this,nb,a)}jb(this,a);X(this,mb,d,null,b)}X(this,xb,null,null,b);t",
843 "his.o=!1};function X(a,c,b,d,e){a.w=!0;return a.r(c,a.m,Hb(a,c),b,d,e)}", 843 "his.o=!1};function X(a,c,b,d,e){a.w=!0;return a.r(c,a.m,Hb(a,c),b,d,e)}",
844 "\nfunction Hb(a,c){if(!(c in W))return 0;var b=W[c][null===a.g?3:a.g];i", 844 "\nfunction Hb(a,c){if(!(c in W))return 0;var b=W[c][null===a.g?3:a.g];i",
845 "f(null===b)throw new p(13,\"Event does not permit the specified mouse b", 845 "f(null===b)throw new p(13,\"Event does not permit the specified mouse b",
846 "utton.\");return b};function Ib(a,c){this.x=a;this.y=c}ba(Ib,u);Ib.prot", 846 "utton.\");return b};function Ib(a,c){this.x=a;this.y=c}ba(Ib,u);Ib.prot",
847 "otype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Jb(", 847 "otype.add=function(a){this.x+=a.x;this.y+=a.y;return this};function Jb(",
848 "a){var c;(c=I(a,\"display\"))||(c=(a.currentStyle?a.currentStyle.displa", 848 "a){var c;(c=I(a,\"display\"))||(c=(a.currentStyle?a.currentStyle.displa",
(...skipping 3414 matching lines...) Expand 10 before | Expand all | Expand 10 after
4263 "+q[0]);for(var s;q.length&&(s=q.shift());){var t;if(t=!q.length)t=void ", 4263 "+q[0]);for(var s;q.length&&(s=q.shift());){var t;if(t=!q.length)t=void ",
4264 "0!==p;t?r[s]=p:r=r[s]?r[s]:r[s]={}};; return this._.apply(null,argument", 4264 "0!==p;t?r[s]=p:r=r[s]?r[s]:r[s]={}};; return this._.apply(null,argument",
4265 "s);}.apply({navigator:typeof window!=undefined?window.navigator:null,do", 4265 "s);}.apply({navigator:typeof window!=undefined?window.navigator:null,do",
4266 "cument:typeof window!=undefined?window.document:null}, arguments);}", 4266 "cument:typeof window!=undefined?window.document:null}, arguments);}",
4267 NULL 4267 NULL
4268 }; 4268 };
4269 4269
4270 } // namespace atoms 4270 } // namespace atoms
4271 } // namespace webdriver 4271 } // namespace webdriver
4272 4272
OLDNEW
« no previous file with comments | « no previous file | third_party/webdriver/patch.diff » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698