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

Issue 163913011: [OSX, OmniTheatre] Handle OriginChip click properly. (Closed)

Created:
6 years, 10 months ago by groby-ooo-7-16
Modified:
6 years, 9 months ago
CC:
chromium-reviews, James Su, Greg Billock, Justin Donnelly, macourteau
Visibility:
Public.

Description

[OSX, OmniTheatre] Handle OriginChip click properly. Clicking on the OriginChip requires the chip to stay visible until the determination has been made that the chip was clicked and its callback is executed. Previous code disabled the chip in OnSetFocus, so that the following mouseDown: did not get routed to the OriginChip decoration any more. This change postpones calling OnSetFocus until immediately before the ButtonPressed callback is invoked - i.e. mouseDown: has already traversed all decorations and is not affected by possible visibility changes caused as a reaction to the click. For a longer discussion of potential approaches to the problem, see also https://codereview.chromium.org/165853002/ BUG=338653 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254106

Patch Set 1 #

Patch Set 2 : Review fixes. #

Total comments: 5

Patch Set 3 : Review fixes #

Patch Set 4 : Account for becomeFirstResponder without corresponding event. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -7 lines) Patch
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.mm View 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h View 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.mm View 1 2 3 4 chunks +46 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm View 1 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
groby-ooo-7-16
PTAL. I'm not entirely happy with the method names, and it bugs me that the ...
6 years, 10 months ago (2014-02-22 04:26:13 UTC) #1
Scott Hess - ex-Googler
Wow. I have to think about this a little. I'll try to revisit it a ...
6 years, 10 months ago (2014-02-25 21:37:36 UTC) #2
groby-ooo-7-16
Long run, I really think we should abandon the cell breakdown for OT - it's ...
6 years, 10 months ago (2014-02-26 04:24:55 UTC) #3
Scott Hess - ex-Googler
On 2014/02/26 04:24:55, groby wrote: > Long run, I really think we should abandon the ...
6 years, 9 months ago (2014-02-26 18:59:11 UTC) #4
groby-ooo-7-16
It's in the cell because the focus event needs to happen before the ButtonDecoration gets ...
6 years, 9 months ago (2014-02-26 20:46:22 UTC) #5
Scott Hess - ex-Googler
On Wed, Feb 26, 2014 at 12:46 PM, <groby@chromium.org> wrote: > It's in the cell ...
6 years, 9 months ago (2014-02-26 21:08:39 UTC) #6
groby-ooo-7-16
On 2014/02/26 21:08:39, shess wrote: > On Wed, Feb 26, 2014 at 12:46 PM, <mailto:groby@chromium.org> ...
6 years, 9 months ago (2014-02-26 22:30:00 UTC) #7
Scott Hess - ex-Googler
On 2014/02/26 22:30:00, groby wrote: > On 2014/02/26 21:08:39, shess wrote: > > On Wed, ...
6 years, 9 months ago (2014-02-27 02:21:31 UTC) #8
groby-ooo-7-16
On 2014/02/27 02:21:31, shess wrote: > On 2014/02/26 22:30:00, groby wrote: > > On 2014/02/26 ...
6 years, 9 months ago (2014-02-27 02:31:40 UTC) #9
Scott Hess - ex-Googler
On 2014/02/27 02:31:40, groby wrote: > On 2014/02/27 02:21:31, shess wrote: > > Maybe it ...
6 years, 9 months ago (2014-02-27 02:34:50 UTC) #10
groby-ooo-7-16
PTAL
6 years, 9 months ago (2014-02-27 20:55:31 UTC) #11
Scott Hess - ex-Googler
LGTM, with the first comment's error fixed. The later logic change is your call. I'm ...
6 years, 9 months ago (2014-02-27 21:09:36 UTC) #12
groby-ooo-7-16
I'm thinking on the unit test - it'll be interesting, to say the least. If ...
6 years, 9 months ago (2014-02-27 23:15:27 UTC) #13
groby-ooo-7-16
The CQ bit was checked by groby@chromium.org
6 years, 9 months ago (2014-02-27 23:18:02 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/163913011/70001
6 years, 9 months ago (2014-02-27 23:19:54 UTC) #15
Scott Hess - ex-Googler
LGTM. On 2014/02/27 23:15:27, groby wrote: > I'm thinking on the unit test - it'll ...
6 years, 9 months ago (2014-02-27 23:21:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/163913011/70001
6 years, 9 months ago (2014-02-28 01:13:44 UTC) #17
groby-ooo-7-16
Just a heads-up: Teensy fix. Needed to account for the fact that there's not necessarily ...
6 years, 9 months ago (2014-02-28 02:59:33 UTC) #18
groby-ooo-7-16
The CQ bit was checked by groby@chromium.org
6 years, 9 months ago (2014-02-28 02:59:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/163913011/90001
6 years, 9 months ago (2014-02-28 03:00:43 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 04:13:55 UTC) #21
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=80014
6 years, 9 months ago (2014-02-28 04:13:56 UTC) #22
Scott Hess - ex-Googler
change lgtm
6 years, 9 months ago (2014-02-28 04:20:47 UTC) #23
groby-ooo-7-16
The CQ bit was checked by groby@chromium.org
6 years, 9 months ago (2014-02-28 07:22:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/groby@chromium.org/163913011/90001
6 years, 9 months ago (2014-02-28 07:22:22 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-02-28 14:41:08 UTC) #26
Message was sent while issue was closed.
Change committed as 254106

Powered by Google App Engine
This is Rietveld 408576698