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

Issue 273048: Allow extensions to pin tabs:... (Closed)

Created:
11 years, 2 months ago by Yusuke Sato
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, pam+watch_chromium.org, Paweł Hajdan Jr., darin (slow to review), tim (not reviewing)
Visibility:
Public.

Description

Allow extensions to pin tabs: - Add 'pinned (boolean)' property to the Tab object. - Allow the updateProperties parameter of chrome.tabs.update() to have the 'pinned' property. - Allow the createProperties parameter of chrome.tabs.create() to have the property as well. BUG=24781 TEST=run the browser_test.

Patch Set 1 #

Total comments: 10

Patch Set 2 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -3 lines) Patch
M chrome/browser/extensions/extension_tabs_module.cc View 1 3 chunks +17 lines, -0 lines 2 comments Download
M chrome/browser/extensions/extension_tabs_module_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 3 chunks +8 lines, -1 line 0 comments Download
M chrome/renderer/extensions/extension_api_client_unittest.cc View 1 chunk +6 lines, -2 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
Erik does not do reviews
Please hold onto this patch for now. The "pinned" behavior in Chrome is still in ...
11 years, 2 months ago (2009-10-14 16:25:29 UTC) #1
Yusuke Sato
Erik, thanks for the review. Addressed all issues. On 2009/10/14 16:25:29, Erik Kay wrote: > ...
11 years, 2 months ago (2009-10-15 09:20:21 UTC) #2
Yusuke Sato
sorry, I forgot to publish my comments :( http://codereview.chromium.org/273048/diff/1/2 File chrome/browser/extensions/extension_tabs_module.cc (right): http://codereview.chromium.org/273048/diff/1/2#newcode527 Line 527: ...
11 years, 2 months ago (2009-10-15 10:47:57 UTC) #3
Erik does not do reviews
cool. Looks good. Like I said, please don't commit this until we decide that the ...
11 years, 2 months ago (2009-10-15 18:40:56 UTC) #4
Yusuke Sato
Can we commit this change? The code freeze day for 4.0 is closing, and (as ...
11 years, 1 month ago (2009-11-02 14:10:53 UTC) #5
lucabelluccini
What's the status for this feature? On 2009/11/02 14:10:53, Yusuke Sato wrote: > Can we ...
11 years ago (2009-12-08 10:48:23 UTC) #6
lucabelluccini
I am developing an extension (http://www.screentoaster.com/watch/stUk1dSkVLQ1ldSF9fW1Jf) which allows to set some of the current tabs ...
11 years ago (2009-12-08 14:31:43 UTC) #7
Aaron Boodman
10 years, 2 months ago (2010-10-14 18:04:17 UTC) #8
http://codereview.chromium.org/273048/diff/4001/5001
File chrome/browser/extensions/extension_tabs_module.cc (right):

http://codereview.chromium.org/273048/diff/4001/5001#newcode531
chrome/browser/extensions/extension_tabs_module.cc:531:
tab_strip->SetTabPinned(index, pinned);
This part of the code has changed since you wrote the change, and you'll have to
update it slightly.

There is now a sort of TabConfig structure that you pass into AddTab() that
contains all the information about the tab to be created. Set pinned on that
before creating tab.

http://codereview.chromium.org/273048/diff/4001/5001#newcode635
chrome/browser/extensions/extension_tabs_module.cc:635:
tab_strip->SetTabPinned(tab_index, pinned);
Same here.

http://codereview.chromium.org/273048/diff/4001/5005
File chrome/renderer/extensions/extension_api_client_unittest.cc (right):

http://codereview.chromium.org/273048/diff/4001/5005#newcode386
chrome/renderer/extensions/extension_api_client_unittest.cc:386:
ExpectJsFail("chrome.tabs.update(42, {pinned: 'foo'});",
We don't really use this class anymore. We should actually remove it... But we
should add to extension_tabs_apitest.cc to exercise the api.

Powered by Google App Engine
This is Rietveld 408576698