Add use counters for user prompt methods

This change adds use counters for the following methods on window:
 - alert()
 - confirm()
 - prompt()
 - print()

Review URL: https://codereview.chromium.org/1325193007

git-svn-id: svn://svn.chromium.org/blink/trunk@202018 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 743a4af8
...@@ -842,6 +842,10 @@ public: ...@@ -842,6 +842,10 @@ public:
NetInfoDownlinkMax = 947, NetInfoDownlinkMax = 947,
NetInfoOnChange = 948, NetInfoOnChange = 948,
NetInfoOnTypeChange = 949, NetInfoOnTypeChange = 949,
V8Window_Alert_Method = 950,
V8Window_Confirm_Method = 951,
V8Window_Prompt_Method = 952,
V8Window_Print_Method = 953,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -72,11 +72,11 @@ ...@@ -72,11 +72,11 @@
[RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache; [RuntimeEnabled=ApplicationCache, LogActivity=GetterOnly] readonly attribute ApplicationCache applicationCache;
// user prompts // user prompts
void alert(); [Measure] void alert();
void alert(DOMString message); [Measure] void alert(DOMString message);
boolean confirm(optional DOMString message = ""); [Measure] boolean confirm(optional DOMString message = "");
DOMString? prompt(optional DOMString message = "", optional DOMString defaultValue = ""); [Measure] DOMString? prompt(optional DOMString message = "", optional DOMString defaultValue = "");
void print(); [Measure] void print();
[MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(FrameRequestCallback callback); [MeasureAs=UnprefixedRequestAnimationFrame] long requestAnimationFrame(FrameRequestCallback callback);
void cancelAnimationFrame(long handle); void cancelAnimationFrame(long handle);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment