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

Issue 34773002: Adding an api to get number of event listeners. (Closed)

Created:
7 years, 2 months ago by siddharthab
Modified:
6 years, 2 months ago
Reviewers:
stgao
CC:
chromium-reviews, frankf
Visibility:
Public.

Description

Adding an api to get number of event listeners. initial phase BUG=

Patch Set 1 #

Patch Set 2 : Adding some more files to the patch set. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -0 lines) Patch
A chrome/test/chromedriver/chrome/event_listener_count.h View 1 1 chunk +37 lines, -0 lines 1 comment Download
A chrome/test/chromedriver/chrome/event_listener_count.cc View 1 1 chunk +66 lines, -0 lines 1 comment Download
M chrome/test/chromedriver/chrome/stub_web_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/stub_web_view.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.h View 1 3 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/chrome/web_view_impl.cc View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/test/chromedriver/window_commands.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 1 (0 generated)
chrisgao (Use stgao instead)
7 years, 1 month ago (2013-10-26 00:54:01 UTC) #1
Hi Siddharth,

I just gave a quick review to the newly-added event_listener_count.h/cc.

Will take a closer review later when you publish the CL to us.

Thanks,
Shuotao Gao

https://codereview.chromium.org/34773002/diff/60001/chrome/test/chromedriver/...
File chrome/test/chromedriver/chrome/event_listener_count.cc (right):

https://codereview.chromium.org/34773002/diff/60001/chrome/test/chromedriver/...
chrome/test/chromedriver/chrome/event_listener_count.cc:50:
"Memory.getDOMCounters"
It seems no need to enable the debugger.

And I think we can move the code here to WebViewImpl::GetEventListenersCount you
added in web_view_impl.cc

https://codereview.chromium.org/34773002/diff/60001/chrome/test/chromedriver/...
File chrome/test/chromedriver/chrome/event_listener_count.h (right):

https://codereview.chromium.org/34773002/diff/60001/chrome/test/chromedriver/...
chrome/test/chromedriver/chrome/event_listener_count.h:24: class
EventListenerCount: public DevToolsEventListener {
We don't need to inherit DevToolsEventListener here.
Because the OnConnected/OnEvent/OnCommandSuccess are not overridden, and there
is no need to override them.

Powered by Google App Engine
This is Rietveld 408576698