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

Issue 159067: Add API: getBackgroundPageView and getToolstripViews (Closed)

Created:
11 years, 5 months ago by tangjie
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Erik does not do reviews, brettw, jam, Ben Goodger (Google)
Visibility:
Public.

Description

Add API: executeScript

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 16

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 10

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Patch Set 21 : '' #

Patch Set 22 : '' #

Patch Set 23 : '' #

Total comments: 7

Patch Set 24 : '' #

Patch Set 25 : '' #

Patch Set 26 : '' #

Patch Set 27 : '' #

Patch Set 28 : '' #

Patch Set 29 : '' #

Patch Set 30 : '' #

Total comments: 20

Patch Set 31 : '' #

Patch Set 32 : '' #

Patch Set 33 : '' #

Patch Set 34 : '' #

Patch Set 35 : '' #

Patch Set 36 : '' #

Patch Set 37 : '' #

Patch Set 38 : '' #

Patch Set 39 : '' #

Patch Set 40 : '' #

Patch Set 41 : '' #

Patch Set 42 : '' #

Patch Set 43 : '' #

Total comments: 3

Patch Set 44 : '' #

Patch Set 45 : '' #

Patch Set 46 : '' #

Patch Set 47 : '' #

Patch Set 48 : '' #

Patch Set 49 : '' #

Patch Set 50 : '' #

Patch Set 51 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -8 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.h View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 chunk +39 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module_constants.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module_constants.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 7 chunks +52 lines, -8 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 2 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
tangjie
11 years, 5 months ago (2009-07-22 13:01:44 UTC) #1
Erik does not do reviews
http://codereview.chromium.org/159067/diff/1167/126 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/159067/diff/1167/126#newcode331 Line 331: ViewType::Type view_type = ViewType::TAB_CONTENTS; why have this default? ...
11 years, 5 months ago (2009-07-22 19:37:01 UTC) #2
tangjie
http://codereview.chromium.org/159067/diff/1167/126 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/159067/diff/1167/126#newcode331 Line 331: ViewType::Type view_type = ViewType::TAB_CONTENTS; On 2009/07/22 19:37:01, Erik ...
11 years, 5 months ago (2009-07-23 12:13:23 UTC) #3
Erik does not do reviews
It's a little unfortunate that the IPC change is combined with this CL. It might ...
11 years, 5 months ago (2009-07-23 16:34:26 UTC) #4
Aaron Boodman
I don't like the structure of this change in several ways. This is how I ...
11 years, 5 months ago (2009-07-23 19:35:33 UTC) #5
tangjie
Some inline thoughts... On Fri, Jul 24, 2009 at 3:35 AM, <aa@chromium.org> wrote: > I ...
11 years, 5 months ago (2009-07-26 16:42:33 UTC) #6
Aaron Boodman
I know you didn't send this out for comment yet, but I happened to see ...
11 years, 4 months ago (2009-08-03 07:35:20 UTC) #7
tangjie
Yes, I am just waiting for try server's reply. Thanks for your comments. Jerry On ...
11 years, 4 months ago (2009-08-03 07:44:08 UTC) #8
tangjie
http://codereview.chromium.org/159067/diff/2067/415 File chrome/browser/extensions/extension_host.cc (right): http://codereview.chromium.org/159067/diff/2067/415#newcode340 Line 340: NOTREACHED(); On 2009/07/23 16:34:27, Erik Kay wrote: > ...
11 years, 4 months ago (2009-08-03 16:29:21 UTC) #9
Aaron Boodman
A couple more structural issues: - NotifyRenderViewInfo() is a very general name. I suggest splitting ...
11 years, 4 months ago (2009-08-03 17:49:51 UTC) #10
Matt Perry
http://codereview.chromium.org/159067/diff/744/2317 File chrome/common/render_messages.h (right): http://codereview.chromium.org/159067/diff/744/2317#newcode2034 Line 2034: struct ParamTraits<ViewType::Type> { Ah, good to see you're ...
11 years, 4 months ago (2009-08-03 18:11:56 UTC) #11
tangjie
Yes, I have read your comments on that bug. If I have not misunderstood you, ...
11 years, 4 months ago (2009-08-04 17:10:24 UTC) #12
tangjie
http://codereview.chromium.org/159067/diff/983/2482 File chrome/browser/extensions/extension_host.h (right): http://codereview.chromium.org/159067/diff/983/2482#newcode37 Line 37: enum ExtensionHostType { On 2009/08/03 17:49:52, Aaron Boodman ...
11 years, 4 months ago (2009-08-06 08:31:18 UTC) #13
tangjie
On Tue, Aug 4, 2009 at 1:49 AM, <aa@chromium.org> wrote: > A couple more structural ...
11 years, 4 months ago (2009-08-06 08:40:29 UTC) #14
Aaron Boodman
OK, the code looks good to me except two API nits below. Can you please ...
11 years, 4 months ago (2009-08-06 09:11:24 UTC) #15
tangjie
I will add tests soon. Just want to get your comments on the following issue. ...
11 years, 4 months ago (2009-08-06 16:30:29 UTC) #16
Aaron Boodman
On Thu, Aug 6, 2009 at 9:30 AM, <tangjie@google.com> wrote: > http://codereview.chromium.org/159067/diff/4126/5101 > File chrome/renderer/resources/extension_process_bindings.js ...
11 years, 4 months ago (2009-08-06 17:28:47 UTC) #17
Matt Perry
IPC stuff LGTM
11 years, 4 months ago (2009-08-06 18:32:41 UTC) #18
tangjie
Hi Aaron, I have added unittest for these APIs. One question is we already have ...
11 years, 4 months ago (2009-08-11 16:46:41 UTC) #19
Aaron Boodman
On 2009/08/11 16:46:41, tangjie wrote: > Hi Aaron, > I have added unittest for these ...
11 years, 4 months ago (2009-08-11 22:07:39 UTC) #20
Erik does not do reviews
On Tue, Aug 11, 2009 at 3:07 PM, <aa@chromium.org> wrote: > On 2009/08/11 16:46:41, tangjie ...
11 years, 4 months ago (2009-08-12 01:25:10 UTC) #21
tangjie
11 years, 4 months ago (2009-08-12 04:21:28 UTC) #22
OK, I see, we'd like return tabcontents running in extension process. I have
updated it. Thanks!
Jerry

On Wed, Aug 12, 2009 at 6:07 AM, <aa@chromium.org> wrote:

> On 2009/08/11 16:46:41, tangjie wrote:
>
>> Hi Aaron,
>>   I have added unittest for these APIs.
>>   One question is we already have tab API to get tabs, and since we
>>
> only
>
>> store view type in separate process, so in extension process we can't
>>
> access
>
>> tabcontents process, then we can't make getTabs in extension process.
>>
> Is it
>
>> right? So I think getView can only return toolstrip views and
>>
> background
>
>> page.
>>
>
> The chrome.tabs.* APIs are different. They return Tab objects that
> represent all the tabs in the current browser.
>
> The API I'm asking for chrome.extension.getTabs() would only return tabs
> that are running in the current extension's process. And they wouldn't
> return information about the tab, they'd return the global scope of the
> js running inside the window.
>
> Make sense?
>
> Basically, if you copy the getToolstrips() method exactly, and rename
> everything that says "toolstrip" to "tab", it will work.
>
> LGTM after the addition of getTabs().
>
>
> http://codereview.chromium.org/159067
>

Powered by Google App Engine
This is Rietveld 408576698