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

Issue 6277020: keyboard: Update the visibility after tab-switch. (Closed)

Created:
9 years, 11 months ago by sadrul
Modified:
9 years, 6 months ago
Reviewers:
rjkroege, bryeung, brettw, sky
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

keyboard: Update the visibility after tab-switch. BUG=70784 TEST=manually, see bug Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72705

Patch Set 1 #

Total comments: 5

Patch Set 2 : s/selected/focused/, and RemoveObserver. #

Total comments: 1

Patch Set 3 : Use property-bag. #

Patch Set 4 : DeleteProperty when tab is destroyed. #

Total comments: 2

Patch Set 5 : Update the property of the tab-contents that triggered the focus-change notification. #

Total comments: 4

Patch Set 6 : Pass TabContents instead of RenderViewHost with FOCUS_CHANGED_IN_PAGE. #

Patch Set 7 : build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -24 lines) Patch
M chrome/browser/browser_focus_uitest.cc View 1 2 3 4 5 6 6 chunks +15 lines, -11 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/touch/frame/touch_browser_frame_view.h View 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/touch/frame/touch_browser_frame_view.cc View 1 2 3 4 5 5 chunks +39 lines, -5 lines 0 comments Download
M chrome/common/notification_type.h View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/test/ui_test_utils.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/ui_test_utils.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
sadrul
http://codereview.chromium.org/6277020/diff/1/chrome/browser/tab_contents/tab_contents.h File chrome/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/6277020/diff/1/chrome/browser/tab_contents/tab_contents.h#newcode1338 chrome/browser/tab_contents/tab_contents.h:1338: bool selected_field_is_editable_; This could also move to RenderWidgetHostView or ...
9 years, 11 months ago (2011-01-25 18:10:48 UTC) #1
bryeung
Looks okay to me. Please wait for sky to weigh in on where the selected_field_is_editable ...
9 years, 11 months ago (2011-01-25 18:37:27 UTC) #2
rjkroege
LGTM.
9 years, 11 months ago (2011-01-25 18:41:30 UTC) #3
sky
TabContents doesn't feel like quite the right place, but I think it's the best place ...
9 years, 11 months ago (2011-01-25 19:15:21 UTC) #4
sadrul
http://codereview.chromium.org/6277020/diff/1/chrome/browser/tab_contents/tab_contents.h File chrome/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/6277020/diff/1/chrome/browser/tab_contents/tab_contents.h#newcode1337 chrome/browser/tab_contents/tab_contents.h:1337: // Whether the selected field in the tab is ...
9 years, 11 months ago (2011-01-25 21:11:50 UTC) #5
sky
On second thought, you should really get Brett (added to reviewer line) or Pinkerton to ...
9 years, 11 months ago (2011-01-25 21:37:23 UTC) #6
sadrul
OK. Thanks for your review.
9 years, 11 months ago (2011-01-25 21:41:25 UTC) #7
sky
Brett, correct me if I'm wrong, but I think the right place to stash this ...
9 years, 11 months ago (2011-01-25 23:05:31 UTC) #8
sadrul
On 2011/01/25 23:05:31, sky wrote: > Brett, correct me if I'm wrong, but I think ...
9 years, 11 months ago (2011-01-26 14:55:25 UTC) #9
sky
On Wed, Jan 26, 2011 at 6:55 AM, <sadrul@chromium.org> wrote: > On 2011/01/25 23:05:31, sky ...
9 years, 11 months ago (2011-01-26 15:54:43 UTC) #10
sadrul
Aha! I misunderstood, sorry. Using the property-bag this way makes a lot of sense. I ...
9 years, 11 months ago (2011-01-26 16:26:08 UTC) #11
sky
http://codereview.chromium.org/6277020/diff/13002/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): http://codereview.chromium.org/6277020/diff/13002/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode140 chrome/browser/ui/touch/frame/touch_browser_frame_view.cc:140: GetFocusedStateAccessor()->SetProperty( This code is problematic if focus changes on ...
9 years, 11 months ago (2011-01-26 16:40:07 UTC) #12
sadrul
Made the changes. Please take another look. http://codereview.chromium.org/6277020/diff/13002/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): http://codereview.chromium.org/6277020/diff/13002/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode140 chrome/browser/ui/touch/frame/touch_browser_frame_view.cc:140: GetFocusedStateAccessor()->SetProperty( On ...
9 years, 11 months ago (2011-01-26 17:43:10 UTC) #13
sky
http://codereview.chromium.org/6277020/diff/22001/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): http://codereview.chromium.org/6277020/diff/22001/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode142 chrome/browser/ui/touch/frame/touch_browser_frame_view.cc:142: TabContents* source_tab = static_cast<TabContents*>(host->delegate()); Casts like this are dangerous. ...
9 years, 11 months ago (2011-01-26 18:07:43 UTC) #14
brettw
http://codereview.chromium.org/6277020/diff/22001/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): http://codereview.chromium.org/6277020/diff/22001/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode142 chrome/browser/ui/touch/frame/touch_browser_frame_view.cc:142: TabContents* source_tab = static_cast<TabContents*>(host->delegate()); On 2011/01/26 18:07:43, sky wrote: ...
9 years, 11 months ago (2011-01-26 20:18:06 UTC) #15
sadrul
On 2011/01/26 20:18:06, brettw wrote: > http://codereview.chromium.org/6277020/diff/22001/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc > File chrome/browser/ui/touch/frame/touch_browser_frame_view.cc (right): > > http://codereview.chromium.org/6277020/diff/22001/chrome/browser/ui/touch/frame/touch_browser_frame_view.cc#newcode142 > ...
9 years, 11 months ago (2011-01-26 20:42:46 UTC) #16
sky
9 years, 11 months ago (2011-01-26 21:02:21 UTC) #17
LGTM

Powered by Google App Engine
This is Rietveld 408576698