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

Issue 1746333002: bluetooth: Show tab indicator when BT device is connected (Closed)

Created:
4 years, 9 months ago by ortuno
Modified:
4 years, 8 months ago
CC:
chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, Jeffrey Yasskin, miu+watch_chromium.org, nasko+codewatch_chromium.org, ortuno+watch_chromium.org, oshima+watch_chromium.org, scheib+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@my-origin
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Show tab indicator when BT device is connected 1. Adds a setter and getter to WebContents to get/set whether a tab is connected to a BluetoothDevice. The setter will notify that the tab changed. 2. Sets the Device connected state in BluetoothDispatcherHost whenever a tab connects to a device. 3. Gets the Bluetooth Device connected state in TabUtils. 4. Adds resources for the Bluetooth indicator. The .icon resource was generated by passing the svg of the issue attached through https://rawgit.com/evanstade/skiafy/gh-pages/index.html BUG=469019 Committed: https://crrev.com/32e7db3c7cf14dbeaf5f14d683fae7fe38bb6201 Cr-Commit-Position: refs/heads/master@{#383736}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address @fbeaufort and @miu's comments #

Patch Set 3 : Merge with ToT #

Patch Set 4 : Initialize variable to false #

Total comments: 2

Patch Set 5 : mute -> connected #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -2 lines) Patch
M chrome/app/generated_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/app/theme/default_100_percent/legacy/tab_bluetooth_indicator.png View 1 Binary file 0 comments Download
A chrome/app/theme/default_200_percent/legacy/tab_bluetooth_indicator.png View 1 Binary file 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_utils.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/tabs/tab_utils.cc View 6 chunks +14 lines, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/bluetooth/bluetooth_dispatcher_host.cc View 1 4 chunks +18 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/vector_icons/tab_bluetooth_connected.icon View 1 chunk +34 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 29 (8 generated)
ortuno
Hi Adrienne, This is the patch that implements the Tab Indicator for Web Bluetooth. This ...
4 years, 9 months ago (2016-02-29 23:35:24 UTC) #3
fbeaufortchromium
https://codereview.chromium.org/1746333002/diff/1/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/1746333002/diff/1/chrome/app/theme/theme_resources.grd#newcode819 chrome/app/theme/theme_resources.grd:819: <structure type="chrome_scaled_image" name="IDR_TAB_BLUETOOTH_INDICATOR" file="legacy/bluetooth.png" /> May I suggest to ...
4 years, 9 months ago (2016-03-02 09:22:40 UTC) #5
miu
Adding myself as a reviewer (as owner of the tab media indicator). ortuno: Could you ...
4 years, 9 months ago (2016-03-02 19:21:10 UTC) #7
miu
On 2016/03/02 19:21:10, miu wrote: > Adding myself as a reviewer (as owner of the ...
4 years, 9 months ago (2016-03-02 19:23:45 UTC) #8
miu
On 2016/02/29 23:35:24, ortuno wrote: > Hi Adrienne, > > This is the patch that ...
4 years, 9 months ago (2016-03-02 19:25:15 UTC) #9
felt
hey fyi i'm out sick but will be back tomorrow (i hope). forgot to put ...
4 years, 9 months ago (2016-03-02 19:28:43 UTC) #10
ortuno
@miu: Thanks for looking that the patch. Let me know if there are any questions ...
4 years, 9 months ago (2016-03-02 20:25:35 UTC) #11
miu
lgtm. A nice, clean implementation. :) https://codereview.chromium.org/1746333002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.cc File content/browser/bluetooth/bluetooth_dispatcher_host.cc (right): https://codereview.chromium.org/1746333002/diff/1/content/browser/bluetooth/bluetooth_dispatcher_host.cc#newcode729 content/browser/bluetooth/bluetooth_dispatcher_host.cc:729: if (render_frame_host && ...
4 years, 9 months ago (2016-03-04 23:42:37 UTC) #12
ortuno
https://codereview.chromium.org/1746333002/diff/1/chrome/app/theme/theme_resources.grd File chrome/app/theme/theme_resources.grd (right): https://codereview.chromium.org/1746333002/diff/1/chrome/app/theme/theme_resources.grd#newcode819 chrome/app/theme/theme_resources.grd:819: <structure type="chrome_scaled_image" name="IDR_TAB_BLUETOOTH_INDICATOR" file="legacy/bluetooth.png" /> On 2016/03/02 at 09:22:40, ...
4 years, 9 months ago (2016-03-14 20:52:50 UTC) #13
ortuno
@miu: Do you have any thoughts on the priority? @felt: Do you think the rename ...
4 years, 9 months ago (2016-03-14 20:53:50 UTC) #14
miu
On 2016/03/14 20:53:50, ortuno wrote: > @miu: Do you have any thoughts on the priority? ...
4 years, 9 months ago (2016-03-14 21:13:21 UTC) #15
felt
sorry about the delay, but lgtm % naming perhaps something like Permission instead of MediaState?
4 years, 9 months ago (2016-03-23 21:25:42 UTC) #16
ortuno
Thanks. Since the refactoring is quite big I made a follow up patch: http://crrev.com/1827083004 PTAL. ...
4 years, 9 months ago (2016-03-25 22:29:29 UTC) #17
ortuno
oshima@: Please review changes in chrome/app/theme nick@: Please review changes in web_contents.* estade@: Please review ...
4 years, 8 months ago (2016-03-28 20:57:52 UTC) #19
ncarter (slow)
lgtm after one fix https://codereview.chromium.org/1746333002/diff/60001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/1746333002/diff/60001/content/browser/web_contents/web_contents_impl.h#newcode281 content/browser/web_contents/web_contents_impl.h:281: void SetBluetoothDeviceConnected(bool mute) override; "bool ...
4 years, 8 months ago (2016-03-28 21:43:19 UTC) #20
Evan Stade
vector icon stuff lgtm
4 years, 8 months ago (2016-03-28 21:49:22 UTC) #21
ortuno
Thanks! https://codereview.chromium.org/1746333002/diff/60001/content/browser/web_contents/web_contents_impl.h File content/browser/web_contents/web_contents_impl.h (right): https://codereview.chromium.org/1746333002/diff/60001/content/browser/web_contents/web_contents_impl.h#newcode281 content/browser/web_contents/web_contents_impl.h:281: void SetBluetoothDeviceConnected(bool mute) override; On 2016/03/28 at 21:43:19, ...
4 years, 8 months ago (2016-03-28 23:24:37 UTC) #22
oshima
c/a/theme lgtm
4 years, 8 months ago (2016-03-29 13:32:19 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1746333002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1746333002/80001
4 years, 8 months ago (2016-03-29 15:04:59 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-03-29 16:14:32 UTC) #27
commit-bot: I haz the power
4 years, 8 months ago (2016-03-29 16:16:05 UTC) #29
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/32e7db3c7cf14dbeaf5f14d683fae7fe38bb6201
Cr-Commit-Position: refs/heads/master@{#383736}

Powered by Google App Engine
This is Rietveld 408576698