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

Issue 8351009: Updating PageClickTracker to Notify listeners When Text Input Loses Focus. (Closed)

Created:
9 years, 1 month ago by csharp
Modified:
9 years, 1 month ago
CC:
chromium-reviews, GeorgeY, Paweł Hajdan Jr., darin-cc_chromium.org, dyu1, brettw-cc_chromium.org, dhollowa
Visibility:
Public.

Description

Updating PageClickTracker to Notify listeners When Text Input Loses Focus. Changing PageClickTracker and PageClickListener to give listeners the option to be informed when a text input element loses focus after gaining it. This will be used by the new autofill UI code once it is moved out of WebKit. BUG=51644 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108649

Patch Set 1 #

Total comments: 5

Patch Set 2 : Updating page_click_tracker_browser test #

Total comments: 8

Patch Set 3 : Fix issue with gaining focus with tab #

Total comments: 12

Patch Set 4 : Fixing issues pointed out in code review #

Total comments: 8

Patch Set 5 : Making browser_tests work on all platforms #

Total comments: 2

Patch Set 6 : Moving SendWebKeyboardEvent to RenderViewTest #

Patch Set 7 : Fixing included headers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+224 lines, -68 lines) Patch
M chrome/renderer/autofill/autofill_agent.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/autofill/autofill_agent.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/autofill/password_autofill_manager.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/autofill/password_autofill_manager.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/page_click_listener.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/page_click_tracker.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/page_click_tracker.cc View 1 2 3 4 3 chunks +28 lines, -3 lines 0 comments Download
M chrome/renderer/page_click_tracker_browsertest.cc View 1 2 3 4 5 6 2 chunks +166 lines, -64 lines 0 comments Download
M content/test/render_view_test.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/test/render_view_test.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
csharp
Just adding the ability for the PageClickTracker class to inform listeners of lost text input ...
9 years, 1 month ago (2011-10-24 19:18:10 UTC) #1
Ilya Sherman
Does this also work correctly if you tab into the text field, press the down ...
9 years, 1 month ago (2011-10-24 21:30:46 UTC) #2
csharp
Changes made. This should work for the case you listed because only mouse clicks can ...
9 years, 1 month ago (2011-10-25 19:35:06 UTC) #3
Ilya Sherman
On 2011/10/25 19:35:06, csharp wrote: > Changes made. Thanks. For future reviews, please click the ...
9 years, 1 month ago (2011-10-25 20:01:15 UTC) #4
Ilya Sherman
http://codereview.chromium.org/8351009/diff/5001/chrome/renderer/page_click_tracker_browsertest.cc File chrome/renderer/page_click_tracker_browsertest.cc (right): http://codereview.chromium.org/8351009/diff/5001/chrome/renderer/page_click_tracker_browsertest.cc#newcode166 chrome/renderer/page_click_tracker_browsertest.cc:166: // Click on a text field and ensure no ...
9 years, 1 month ago (2011-10-25 20:06:16 UTC) #5
Ilya Sherman
http://codereview.chromium.org/8351009/diff/5001/chrome/renderer/page_click_tracker.cc File chrome/renderer/page_click_tracker.cc (right): http://codereview.chromium.org/8351009/diff/5001/chrome/renderer/page_click_tracker.cc#newcode125 chrome/renderer/page_click_tracker.cc:125: SelectedTextFieldLostFocus(); I think in order to handle the keyboard-then-mouse ...
9 years, 1 month ago (2011-10-25 20:11:50 UTC) #6
csharp1
Ok, I fixed the gaining focus with tab issue. I'm not sure if the way ...
9 years, 1 month ago (2011-10-27 15:20:58 UTC) #7
Ilya Sherman
http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker.cc File chrome/renderer/page_click_tracker.cc (left): http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker.cc#oldcode112 chrome/renderer/page_click_tracker.cc:112: last_node_clicked_.reset(); I think you might want to leave this ...
9 years, 1 month ago (2011-10-27 22:04:17 UTC) #8
csharp
http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker.cc File chrome/renderer/page_click_tracker.cc (left): http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker.cc#oldcode112 chrome/renderer/page_click_tracker.cc:112: last_node_clicked_.reset(); On 2011/10/27 22:04:17, Ilya Sherman wrote: > I ...
9 years, 1 month ago (2011-10-31 15:24:25 UTC) #9
Ilya Sherman
http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker_browsertest.cc File chrome/renderer/page_click_tracker_browsertest.cc (right): http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker_browsertest.cc#newcode147 chrome/renderer/page_click_tracker_browsertest.cc:147: EXPECT_EQ(1, SendKeyEvent(MockKeyboard::LAYOUT_UNITED_STATES, On 2011/10/31 15:24:25, csharp wrote: > I ...
9 years, 1 month ago (2011-10-31 21:23:12 UTC) #10
Ilya Sherman
http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker_browsertest.cc File chrome/renderer/page_click_tracker_browsertest.cc (right): http://codereview.chromium.org/8351009/diff/10001/chrome/renderer/page_click_tracker_browsertest.cc#newcode147 chrome/renderer/page_click_tracker_browsertest.cc:147: EXPECT_EQ(1, SendKeyEvent(MockKeyboard::LAYOUT_UNITED_STATES, On 2011/10/31 21:23:12, Ilya Sherman wrote: > ...
9 years, 1 month ago (2011-10-31 21:25:21 UTC) #11
csharp
http://codereview.chromium.org/8351009/diff/17001/chrome/renderer/autofill/password_autofill_manager.h File chrome/renderer/autofill/password_autofill_manager.h (right): http://codereview.chromium.org/8351009/diff/17001/chrome/renderer/autofill/password_autofill_manager.h#newcode75 chrome/renderer/autofill/password_autofill_manager.h:75: virtual bool InputElementLostFocus(); On 2011/10/31 21:23:12, Ilya Sherman wrote: ...
9 years, 1 month ago (2011-11-01 14:49:01 UTC) #12
Ilya Sherman
LGTM. Thanks for sticking it out on this one :)
9 years, 1 month ago (2011-11-01 20:34:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csharp@chromium.org/8351009/22001
9 years, 1 month ago (2011-11-01 20:34:38 UTC) #14
commit-bot: I haz the power
Try job failure for 8351009-22001 (retry) on linux_rel for step "check_deps". It's a second try, ...
9 years, 1 month ago (2011-11-01 21:26:02 UTC) #15
Ilya Sherman
On 2011/11/01 21:26:02, I haz the power (commit-bot) wrote: > Try job failure for 8351009-22001 ...
9 years, 1 month ago (2011-11-01 21:38:02 UTC) #16
jam
On 2011/11/01 21:38:02, Ilya Sherman wrote: > On 2011/11/01 21:26:02, I haz the power (commit-bot) ...
9 years, 1 month ago (2011-11-02 19:03:14 UTC) #17
Ilya Sherman
On 2011/11/02 19:03:14, John Abd-El-Malek wrote: > On 2011/11/01 21:38:02, Ilya Sherman wrote: > > ...
9 years, 1 month ago (2011-11-02 21:52:05 UTC) #18
csharp
Both of the existing functions don't seem like create picks, as SendKeyEvent only works on ...
9 years, 1 month ago (2011-11-03 13:56:23 UTC) #19
jam
On 2011/11/03 13:56:23, csharp wrote: > Both of the existing functions don't seem like create ...
9 years, 1 month ago (2011-11-03 16:55:33 UTC) #20
csharp
Ok, I've update the code so the SendWebKeyboardEvent is now a function in RenderViewTest, and ...
9 years, 1 month ago (2011-11-03 17:39:11 UTC) #21
Ilya Sherman
LGTM with nit. Feel free to tick the commit queue checkbox after you address the ...
9 years, 1 month ago (2011-11-03 21:32:11 UTC) #22
csharp
http://codereview.chromium.org/8351009/diff/22001/chrome/renderer/page_click_tracker_browsertest.cc File chrome/renderer/page_click_tracker_browsertest.cc (right): http://codereview.chromium.org/8351009/diff/22001/chrome/renderer/page_click_tracker_browsertest.cc#newcode13 chrome/renderer/page_click_tracker_browsertest.cc:13: #include "testing/gtest/include/gtest/gtest.h" On 2011/11/03 21:32:11, Ilya Sherman wrote: > ...
9 years, 1 month ago (2011-11-04 13:25:32 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/csharp@chromium.org/8351009/35001
9 years, 1 month ago (2011-11-04 13:25:48 UTC) #24
commit-bot: I haz the power
9 years, 1 month ago (2011-11-04 14:50:47 UTC) #25
Change committed as 108649

Powered by Google App Engine
This is Rietveld 408576698