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

Issue 1412083002: Indicate in the Window menu which Chrome window has an active sound playing (Closed)

Created:
5 years, 2 months ago by shahriar
Modified:
5 years, 1 month ago
CC:
chromium-reviews, asanka, benjhayden+dwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Indicate in the Window menu which Chrome window has an active sound playing BUG=498288 TEST=Follow these steps (taken from bug report): 1. Open multiple Chrome windows (optionally with multiple tabs) 2. Play sound clip (e.g via youtube) on a given tab 3. Drop down the Window menu 4. It is also possible to mute the tab and see what will happen but chrome://flags/#enable-tab-audio-muting should be enable. Committed: https://crrev.com/70d337daa152a75db530fa04214caba48ff39bd6 Cr-Commit-Position: refs/heads/master@{#357917}

Patch Set 1 #

Patch Set 2 : Indicate in the Window menu which Chrome window has an active sound playing #

Patch Set 3 : To show which Chromium window has an active/muted sound playing #

Total comments: 17

Patch Set 4 : Applied changes based on the CR, and also refactor the logic #

Total comments: 15

Patch Set 5 : Modified based on the code reviews #

Total comments: 10

Patch Set 6 : add unit tests #

Patch Set 7 : put Emojis in generated_resources.grd #

Total comments: 9

Patch Set 8 : Applied some changes based on comments #

Total comments: 3

Patch Set 9 : Did some final nits #

Patch Set 10 : Removed emojis from generated_resources.grd #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -11 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 6 7 8 9 3 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -7 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm View 1 2 3 4 5 6 7 8 9 2 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.h View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm View 1 2 3 4 5 6 7 5 chunks +59 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_strip_controller_unittest.mm View 1 2 3 4 5 6 7 6 chunks +117 lines, -1 line 0 comments Download

Messages

Total messages: 34 (6 generated)
shahriar
On 2015/10/19 19:38:48, shahriar wrote: > mailto:shahriar.rostami@gmail.com changed reviewers: > + mailto:miu@chromium.org, mailto:pinkerton@chromium.org, mailto:pkasting@google.com, > ...
5 years, 2 months ago (2015-10-19 19:47:06 UTC) #3
shahriar
PTAL.
5 years, 2 months ago (2015-10-19 19:52:31 UTC) #4
Peter Kasting
When you have multiple reviewers, always say exactly what you want each person to review. ...
5 years, 2 months ago (2015-10-19 20:10:58 UTC) #6
shahriar
On 2015/10/19 20:10:58, Peter Kasting wrote: > When you have multiple reviewers, always say exactly ...
5 years, 2 months ago (2015-10-19 20:50:42 UTC) #7
Robert Sesek
Thanks for the patch! https://codereview.chromium.org/1412083002/diff/40001/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): https://codereview.chromium.org/1412083002/diff/40001/chrome/browser/ui/browser_window.h#newcode97 chrome/browser/ui/browser_window.h:97: virtual void UpdateMediaState(TabMediaState media_state, This ...
5 years, 2 months ago (2015-10-20 13:39:48 UTC) #8
shahriar
On 2015/10/20 13:39:48, Robert Sesek wrote: > Thanks for the patch! > > https://codereview.chromium.org/1412083002/diff/40001/chrome/browser/ui/browser_window.h > ...
5 years, 2 months ago (2015-10-21 04:28:15 UTC) #9
miu
Overall approach looks good to me. Though, I have some comments about interfacing, and minor ...
5 years, 2 months ago (2015-10-21 20:06:52 UTC) #10
Robert Sesek
https://codereview.chromium.org/1412083002/diff/60001/chrome/browser/ui/cocoa/browser_window_cocoa.mm File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): https://codereview.chromium.org/1412083002/diff/60001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode304 chrome/browser/ui/cocoa/browser_window_cocoa.mm:304: NSMutableString* titleWithMediaState = [NSMutableString string]; Use [NSMutableString stringWithString:] to ...
5 years, 2 months ago (2015-10-22 00:01:52 UTC) #11
shahriar
On 2015/10/22 00:01:52, Robert Sesek wrote: > https://codereview.chromium.org/1412083002/diff/60001/chrome/browser/ui/cocoa/browser_window_cocoa.mm > File chrome/browser/ui/cocoa/browser_window_cocoa.mm (right): > > https://codereview.chromium.org/1412083002/diff/60001/chrome/browser/ui/cocoa/browser_window_cocoa.mm#newcode304 ...
5 years, 2 months ago (2015-10-22 01:52:12 UTC) #12
Robert Sesek
I'm not sure why you're having issues with the GRD file. It's too big for ...
5 years, 2 months ago (2015-10-23 14:26:37 UTC) #13
shahriar
On 2015/10/23 14:26:37, Robert Sesek wrote: > I'm not sure why you're having issues with ...
5 years, 2 months ago (2015-10-23 15:08:42 UTC) #14
Robert Sesek
Also, it'd be good to have unittests for this if possible, so that this feature ...
5 years, 2 months ago (2015-10-23 15:16:11 UTC) #15
shahriar
On 2015/10/23 15:16:11, Robert Sesek wrote: > Also, it'd be good to have unittests for ...
5 years, 2 months ago (2015-10-23 15:22:23 UTC) #16
miu
lgtm (feature, approach, and general code structure). I'll leave it to rsesek@ to review the ...
5 years, 1 month ago (2015-10-26 20:51:28 UTC) #17
shahriar
On 2015/10/26 20:51:28, miu wrote: > lgtm (feature, approach, and general code structure). I'll leave ...
5 years, 1 month ago (2015-10-27 03:54:49 UTC) #18
Robert Sesek
Great job on the tests! Just a few more comments. https://codereview.chromium.org/1412083002/diff/120001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/1412083002/diff/120001/chrome/app/generated_resources.grd#newcode12908 ...
5 years, 1 month ago (2015-10-28 18:45:58 UTC) #19
shahriar
On 2015/10/28 18:45:58, Robert Sesek wrote: > Great job on the tests! Just a few ...
5 years, 1 month ago (2015-10-30 00:05:30 UTC) #20
Robert Sesek
Last few nits, sorry for not noticing these earlier! https://codereview.chromium.org/1412083002/diff/140001/chrome/browser/ui/cocoa/browser_window_cocoa.h File chrome/browser/ui/cocoa/browser_window_cocoa.h (right): https://codereview.chromium.org/1412083002/diff/140001/chrome/browser/ui/cocoa/browser_window_cocoa.h#newcode186 chrome/browser/ui/cocoa/browser_window_cocoa.h:186: ...
5 years, 1 month ago (2015-11-02 22:36:43 UTC) #21
shahriar
On 2015/11/02 22:36:43, Robert Sesek wrote: > Last few nits, sorry for not noticing these ...
5 years, 1 month ago (2015-11-04 00:38:57 UTC) #22
Robert Sesek
LGTM
5 years, 1 month ago (2015-11-04 21:31:47 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1412083002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1412083002/160001
5 years, 1 month ago (2015-11-04 21:33:34 UTC) #26
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 1 month ago (2015-11-04 22:43:49 UTC) #27
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/70d337daa152a75db530fa04214caba48ff39bd6 Cr-Commit-Position: refs/heads/master@{#357917}
5 years, 1 month ago (2015-11-04 22:44:43 UTC) #28
newt (away)
Unfortunately, emoji aren't (currently) supported by Chrome's translation process. It might be possible to translate ...
5 years, 1 month ago (2015-11-05 02:21:15 UTC) #30
shahriar
On 2015/11/05 02:21:15, newt wrote: > Unfortunately, emoji aren't (currently) supported by Chrome's translation > ...
5 years, 1 month ago (2015-11-05 05:19:12 UTC) #31
newt (away)
generated_resources.grd looks good. Someone else will need to take a look at the Objective C ...
5 years, 1 month ago (2015-11-05 05:56:49 UTC) #32
Robert Sesek
This should be done on a new CL, actually. This CL has already been closed/landed. ...
5 years, 1 month ago (2015-11-05 15:27:09 UTC) #33
shahriar
5 years, 1 month ago (2015-11-05 17:42:21 UTC) #34
Message was sent while issue was closed.
On 2015/11/05 15:27:09, Robert Sesek wrote:
> This should be done on a new CL, actually. This CL has already been
> closed/landed. Usually we only reuse CLs when something has been reverted and
> will be re-landed, but that's somewhat contentious (there was a recent
> discussion on chromium-dev about this).

OK, thanks for the explanation.
I will submit a new CL soon.

Powered by Google App Engine
This is Rietveld 408576698