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

Issue 2641403002: [refactor] - Move IsFocusedElementEditable() and ClearFocusedElement() from RenderViewHost to WebCo… (Closed)

Created:
3 years, 11 months ago by EhsanK
Modified:
3 years, 11 months ago
Reviewers:
ncarter (slow), sky
CC:
chromium-reviews, creis+watch_chromium.org, vabr+watchlistpasswordmanager_chromium.org, tfarina, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, gcasto+watchlist_chromium.org, site_isolation_reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[refactor] - Move IsFocusedElementEditable() and ClearFocusedElement() from RenderViewHost to WebContents. The implementation logic for both of the methods is inside WebContentsImpl. It only makes sense to remove the methods to WebContents and also get rid of the helper methods in RenderViewHostDelegate. BUG=675975 Review-Url: https://codereview.chromium.org/2641403002 Cr-Commit-Position: refs/heads/master@{#445910} Committed: https://chromium.googlesource.com/chromium/src/+/5c1f939d7ba5a1c17f045d6b622909902743454c

Patch Set 1 #

Patch Set 2 : Reformat WebContentsImpl Header File #

Total comments: 2

Patch Set 3 : Addressed sky@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -62 lines) Patch
M chrome/browser/renderer_host/site_per_process_text_input_browsertest.cc View 5 chunks +9 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/find_bar_host.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_bubble_delegate_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view_interactive_uitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_browsertest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M content/public/browser/render_view_host.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/browser/web_contents.h View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
EhsanK
Nick, could you please take a look? We should also try to refactor the NotificationObserver ...
3 years, 11 months ago (2017-01-20 19:50:49 UTC) #4
ncarter (slow)
lgtm!
3 years, 11 months ago (2017-01-24 18:08:45 UTC) #7
EhsanK
Thanks Nick! sky@: Could you please take a look?
3 years, 11 months ago (2017-01-24 19:22:10 UTC) #9
sky
LGTM https://codereview.chromium.org/2641403002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2641403002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode1215 chrome/browser/ui/views/frame/browser_view.cc:1215: if (web_contents->IsFocusedElementEditable()) Now that there is no temporary ...
3 years, 11 months ago (2017-01-24 22:08:07 UTC) #10
EhsanK
Thanks for the reviews! I will CQ now. https://codereview.chromium.org/2641403002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/2641403002/diff/20001/chrome/browser/ui/views/frame/browser_view.cc#newcode1215 chrome/browser/ui/views/frame/browser_view.cc:1215: if ...
3 years, 11 months ago (2017-01-25 01:05:37 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2641403002/60001
3 years, 11 months ago (2017-01-25 01:06:25 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 02:06:38 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/5c1f939d7ba5a1c17f045d6b6229...

Powered by Google App Engine
This is Rietveld 408576698