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

Issue 435863002: Fix some infobar problems. (Closed)

Created:
6 years, 4 months ago by Malcolm
Modified:
6 years, 3 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix the info bar doesn't get redrawn when its frame is changed. Also fix the height of top infobar arrow doesn't changed through animation when the status of bookmark bar changes from show to hide/detach. Set the view of info bar to be auto resizable and change the height of top infobar arrow when the its frame is changed. BUG=382141 TEST= ./browser_tests -- gtest_filter="BrowserWindowControllerTest.InfoBarTipStrechedWhenBookmarkBar StatusChanged", manually tested. Committed: https://crrev.com/7d9f474ac604f3c7a40afbb808e2ed61fe460442 Cr-Commit-Position: refs/heads/master@{#292317}

Patch Set 1 #

Patch Set 2 : Update by adding a line #

Patch Set 3 : Updated #

Total comments: 2

Patch Set 4 : Updated CL #

Total comments: 5

Patch Set 5 : Animated tip #

Total comments: 1

Patch Set 6 : Change the naming #

Patch Set 7 : Add browser tests #

Patch Set 8 : Add browser tests #

Total comments: 9

Patch Set 9 : Fix some naming problems #

Patch Set 10 : Using static_cast #

Total comments: 2

Patch Set 11 : Add 4 spaces indent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -0 lines) Patch
M chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 6 chunks +108 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller_private.mm View 1 2 3 4 5 6 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_container_controller.mm View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/infobar_controller.mm View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
Malcolm
Would you help me to review this CL, thanks!
6 years, 4 months ago (2014-08-01 07:15:27 UTC) #1
Andre
I'm not familiar with infobar code, but this doesn't seem right to me. Is the ...
6 years, 4 months ago (2014-08-04 23:53:04 UTC) #2
Nico
(I think rsesek did that arrow thingy and can answer questions. I think the arrow ...
6 years, 4 months ago (2014-08-04 23:54:31 UTC) #3
Avi (use Gerrit)
a) Yes, talk to rsesek. b) The arrow is supposed to overlap the browser chrome, ...
6 years, 4 months ago (2014-08-05 00:00:54 UTC) #4
Malcolm
On 2014/08/05 00:00:54, Avi wrote: > a) Yes, talk to rsesek. > > b) The ...
6 years, 4 months ago (2014-08-05 06:06:19 UTC) #5
Andre
On 2014/08/05 06:06:19, Malcolm wrote: > On 2014/08/05 00:00:54, Avi wrote: > > a) Yes, ...
6 years, 4 months ago (2014-08-05 18:40:16 UTC) #6
Malcolm
On 2014/08/05 18:40:16, Andre wrote: > On 2014/08/05 06:06:19, Malcolm wrote: > > On 2014/08/05 ...
6 years, 4 months ago (2014-08-06 06:59:14 UTC) #7
Robert Sesek
On 2014/08/05 18:40:16, Andre wrote: > On 2014/08/05 06:06:19, Malcolm wrote: > > On 2014/08/05 ...
6 years, 4 months ago (2014-08-06 17:17:52 UTC) #8
Malcolm
On 2014/08/06 17:17:52, rsesek wrote: > On 2014/08/05 18:40:16, Andre wrote: > > On 2014/08/05 ...
6 years, 4 months ago (2014-08-07 06:43:49 UTC) #9
Robert Sesek
Which of the three issues does this fix? It's not clear from the CL description ...
6 years, 4 months ago (2014-08-07 18:12:54 UTC) #10
Malcolm
I've updated the CL, please review, thanks! https://codereview.chromium.org/435863002/diff/60001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm (right): https://codereview.chromium.org/435863002/diff/60001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm#newcode1395 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm:1395: toState:currentState_]; We ...
6 years, 4 months ago (2014-08-08 10:51:51 UTC) #11
Robert Sesek
So this change is making the infobar tip draw up to the lock icon if ...
6 years, 4 months ago (2014-08-08 14:32:31 UTC) #12
Malcolm
Yes, the tip will draw up to the lock icon when bookmark bar is shown ...
6 years, 4 months ago (2014-08-08 15:54:25 UTC) #13
Peter Kasting
On 2014/08/08 15:54:25, Malcolm wrote: > Yes, the tip will draw up to the lock ...
6 years, 4 months ago (2014-08-08 17:21:27 UTC) #14
Malcolm
On 2014/08/08 17:21:27, Peter Kasting wrote: > On 2014/08/08 15:54:25, Malcolm wrote: > > Yes, ...
6 years, 4 months ago (2014-08-12 10:00:39 UTC) #15
Robert Sesek
Is it possible to write a regression test for this? https://codereview.chromium.org/435863002/diff/80001/chrome/browser/ui/cocoa/browser_window_controller_private.h File chrome/browser/ui/cocoa/browser_window_controller_private.h (right): https://codereview.chromium.org/435863002/diff/80001/chrome/browser/ui/cocoa/browser_window_controller_private.h#newcode157 ...
6 years, 4 months ago (2014-08-12 20:51:28 UTC) #16
Malcolm
On 2014/08/12 20:51:28, rsesek wrote: > Is it possible to write a regression test for ...
6 years, 4 months ago (2014-08-18 08:42:21 UTC) #17
Robert Sesek
On 2014/08/18 08:42:21, Malcolm wrote: > On 2014/08/12 20:51:28, rsesek wrote: > > Is it ...
6 years, 4 months ago (2014-08-19 14:13:50 UTC) #18
Malcolm
On 2014/08/19 14:13:50, rsesek wrote: > On 2014/08/18 08:42:21, Malcolm wrote: > > On 2014/08/12 ...
6 years, 4 months ago (2014-08-20 10:52:32 UTC) #19
Malcolm
It's a little long since last update, please review it, thanks!
6 years, 3 months ago (2014-08-26 08:09:26 UTC) #20
Robert Sesek
Really nice test! Just some nit comment, and then this is good. I ran it ...
6 years, 3 months ago (2014-08-26 16:26:19 UTC) #21
Malcolm
Change the naming and thanks for your help! https://codereview.chromium.org/435863002/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm File chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm (right): https://codereview.chromium.org/435863002/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm#newcode81 chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm:81: const_cast<const ...
6 years, 3 months ago (2014-08-27 06:29:21 UTC) #22
Peter Kasting
https://codereview.chromium.org/435863002/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm File chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm (right): https://codereview.chromium.org/435863002/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm#newcode81 chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm:81: const_cast<const InfoBarCocoa*>(infoBarController.infobar)->animation(); On 2014/08/27 06:29:21, Malcolm wrote: > On ...
6 years, 3 months ago (2014-08-27 06:59:51 UTC) #23
Malcolm
Update CL, please review it, thanks! https://codereview.chromium.org/435863002/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm File chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm (right): https://codereview.chromium.org/435863002/diff/140001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm#newcode81 chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm:81: const_cast<const InfoBarCocoa*>(infoBarController.infobar)->animation(); On ...
6 years, 3 months ago (2014-08-27 09:06:36 UTC) #24
Robert Sesek
LGTM! https://codereview.chromium.org/435863002/diff/180001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm File chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm (right): https://codereview.chromium.org/435863002/diff/180001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm#newcode82 chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm:82: infoBarController.infobar)->animation(); nit: indent +4 more spaces
6 years, 3 months ago (2014-08-27 14:59:45 UTC) #25
Malcolm
https://codereview.chromium.org/435863002/diff/180001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm File chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm (right): https://codereview.chromium.org/435863002/diff/180001/chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm#newcode82 chrome/browser/ui/cocoa/browser_window_controller_browsertest.mm:82: infoBarController.infobar)->animation(); On 2014/08/27 14:59:45, rsesek wrote: > nit: indent ...
6 years, 3 months ago (2014-08-28 01:42:40 UTC) #26
Malcolm
The CQ bit was checked by malcolm.2.wang@gmail.com
6 years, 3 months ago (2014-08-28 01:43:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/malcolm.2.wang@gmail.com/435863002/200001
6 years, 3 months ago (2014-08-28 01:44:21 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 02:45:43 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 3 months ago (2014-08-28 02:50:54 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/8779)
6 years, 3 months ago (2014-08-28 02:50:56 UTC) #31
Malcolm
The CQ bit was checked by malcolm.2.wang@gmail.com
6 years, 3 months ago (2014-08-28 03:11:29 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/malcolm.2.wang@gmail.com/435863002/200001
6 years, 3 months ago (2014-08-28 03:12:29 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux ...
6 years, 3 months ago (2014-08-28 04:15:01 UTC) #34
commit-bot: I haz the power
Committed patchset #11 (id:200001) as d8523f389b55111a224686a36f2bb71f001031fd
6 years, 3 months ago (2014-08-28 04:21:48 UTC) #35
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 02:57:25 UTC) #36
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/7d9f474ac604f3c7a40afbb808e2ed61fe460442
Cr-Commit-Position: refs/heads/master@{#292317}

Powered by Google App Engine
This is Rietveld 408576698