diff options
author | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 22:51:04 +0000 |
---|---|---|
committer | zork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-06 22:51:04 +0000 |
commit | 11e7e3bd16e35256d1d0a6fd80968aab1b4025f2 (patch) | |
tree | 603b6ac2c47bf1a078785590e44fe10660dfa61a /chrome/common | |
parent | ef17eadd053b655afd2453ad08b3a817a69de3a4 (diff) | |
download | chromium_src-11e7e3bd16e35256d1d0a6fd80968aab1b4025f2.zip chromium_src-11e7e3bd16e35256d1d0a6fd80968aab1b4025f2.tar.gz chromium_src-11e7e3bd16e35256d1d0a6fd80968aab1b4025f2.tar.bz2 |
Revert 46592 - Disallow display of multiple experimental.extension.popup(...) windows.
Patch 1 contains twiz@'s code reviewed implementation from http://codereview.chromium.org/1512007.
This CL is to address the failure of release tests.
BUG=None
TEST=ExtensionApiTest.Popup
Review URL: http://codereview.chromium.org/1921003
TBR=ericdingle@google.com
Review URL: http://codereview.chromium.org/2036002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46638 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/extensions/api/extension_api.json | 4 | ||||
-rw-r--r-- | chrome/common/extensions/docs/extension.html | 2 | ||||
-rw-r--r-- | chrome/common/extensions/docs/history.html | 122 | ||||
-rw-r--r-- | chrome/common/notification_type.h | 5 | ||||
-rw-r--r-- | chrome/common/render_messages_internal.h | 4 |
5 files changed, 65 insertions, 72 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 99e07f9..5db6983 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -134,9 +134,9 @@ "properties": { "type": { "type": "string", - "enum": ["tab", "infobar", "notification", "popup"], + "enum": ["tab", "infobar", "notification"], "optional": true, - "description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'infobar', 'notification', 'popup'." + "description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'infobar', 'notification'." }, "windowId": { "type": "integer", diff --git a/chrome/common/extensions/docs/extension.html b/chrome/common/extensions/docs/extension.html index 3c7f0cb..113b81a 100644 --- a/chrome/common/extensions/docs/extension.html +++ b/chrome/common/extensions/docs/extension.html @@ -1158,7 +1158,7 @@ For details, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'infobar', 'notification', 'popup'.</dd> + <dd>The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'infobar', 'notification'.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> diff --git a/chrome/common/extensions/docs/history.html b/chrome/common/extensions/docs/history.html index a6bf9b1..7079c0c 100644 --- a/chrome/common/extensions/docs/history.html +++ b/chrome/common/extensions/docs/history.html @@ -266,9 +266,9 @@ <a href="#types">Types</a> <ol> <li> - <a href="#type-HistoryItem">HistoryItem</a> - </li><li> <a href="#type-VisitItem">VisitItem</a> + </li><li> + <a href="#type-HistoryItem">HistoryItem</a> </li> </ol> </li> @@ -1874,8 +1874,8 @@ For other examples and for help in viewing the source code, see <!-- iterates over all types --> <div class="apiItem"> - <a name="type-HistoryItem"></a> - <h4>HistoryItem</h4> + <a name="type-VisitItem"></a> + <h4>VisitItem</h4> <div> <dt> @@ -1905,7 +1905,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>An object encapsulating one result of a history query.</dd> + <dd>An object encapsulating one visit to a URL.</dd> <!-- OBJECT PROPERTIES --> <dd> @@ -1954,13 +1954,13 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>url</var> + <var>visitId</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional">optional</span> + <span class="optional" style="display: none; ">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -1980,7 +1980,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The URL navigated to by a user.</dd> + <dd>The unique identifier for this visit.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -1995,7 +1995,7 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>title</var> + <var>visitTime</var> <em> <!-- TYPE --> @@ -2010,7 +2010,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>string</span> + <span>number</span> </span> </span> ) @@ -2021,7 +2021,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The title of the history page.</dd> + <dd>When this visit occurred, represented in milliseconds since the epoch.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2036,13 +2036,13 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>lastVisitTime</var> + <var>referringVisitId</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional">optional</span> + <span class="optional" style="display: none; ">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2051,7 +2051,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>number</span> + <span>string</span> </span> </span> ) @@ -2062,7 +2062,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>When this page was last loaded, represented in milliseconds since the epoch.</dd> + <dd>The visit_id of the referrer.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2077,13 +2077,13 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>visitCount</var> + <var>transition</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional">optional</span> + <span class="optional" style="display: none; ">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2092,7 +2092,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>integer</span> + <span>string</span> </span> </span> ) @@ -2103,7 +2103,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The number of times the user has navigated to this page.</dd> + <dd>The <a href="#transition_types">transition type</a> for this visit from its referrer.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2115,16 +2115,24 @@ For other examples and for help in viewing the source code, see </dl> </dd> </div> - </div><div> - <div> + </div> + </dl> + </dd> + </div> + + </div><div class="apiItem"> + <a name="type-HistoryItem"></a> + <h4>HistoryItem</h4> + + <div> <dt> - <var>typedCount</var> + <var style="display: none; ">paramName</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional">optional</span> + <span class="optional" style="display: none; ">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2133,7 +2141,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>integer</span> + <span>object</span> </span> </span> ) @@ -2144,30 +2152,15 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The number of times the user has navigated to this page by typing in the address.</dd> + <dd>An object encapsulating one result of a history query.</dd> <!-- OBJECT PROPERTIES --> - <dd style="display: none; "> + <dd> <dl> <div> <div> - </div> - </div> - </dl> - </dd> - </div> - </div> - </dl> - </dd> - </div> - - </div><div class="apiItem"> - <a name="type-VisitItem"></a> - <h4>VisitItem</h4> - - <div> <dt> - <var style="display: none; ">paramName</var> + <var>id</var> <em> <!-- TYPE --> @@ -2182,7 +2175,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>object</span> + <span>string</span> </span> </span> ) @@ -2193,21 +2186,28 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>An object encapsulating one visit to a URL.</dd> + <dd>The unique identifier for the item.</dd> <!-- OBJECT PROPERTIES --> - <dd> + <dd style="display: none; "> <dl> <div> <div> + </div> + </div> + </dl> + </dd> + </div> + </div><div> + <div> <dt> - <var>id</var> + <var>url</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional" style="display: none; ">optional</span> + <span class="optional">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2227,7 +2227,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The unique identifier for the item.</dd> + <dd>The URL navigated to by a user.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2242,13 +2242,13 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>visitId</var> + <var>title</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional" style="display: none; ">optional</span> + <span class="optional">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2268,7 +2268,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The unique identifier for this visit.</dd> + <dd>The title of the history page.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2283,7 +2283,7 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>visitTime</var> + <var>lastVisitTime</var> <em> <!-- TYPE --> @@ -2309,7 +2309,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>When this visit occurred, represented in milliseconds since the epoch.</dd> + <dd>When this page was last loaded, represented in milliseconds since the epoch.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2324,13 +2324,13 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>referringVisitId</var> + <var>visitCount</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional" style="display: none; ">optional</span> + <span class="optional">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2339,7 +2339,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>string</span> + <span>integer</span> </span> </span> ) @@ -2350,7 +2350,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The visit_id of the referrer.</dd> + <dd>The number of times the user has navigated to this page.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> @@ -2365,13 +2365,13 @@ For other examples and for help in viewing the source code, see </div><div> <div> <dt> - <var>transition</var> + <var>typedCount</var> <em> <!-- TYPE --> <div style="display:inline"> ( - <span class="optional" style="display: none; ">optional</span> + <span class="optional">optional</span> <span id="typeTemplate"> <span style="display: none; "> <a> Type</a> @@ -2380,7 +2380,7 @@ For other examples and for help in viewing the source code, see <span style="display: none; "> array of <span><span></span></span> </span> - <span>string</span> + <span>integer</span> </span> </span> ) @@ -2391,7 +2391,7 @@ For other examples and for help in viewing the source code, see <dd class="todo" style="display: none; "> Undocumented. </dd> - <dd>The <a href="#transition_types">transition type</a> for this visit from its referrer.</dd> + <dd>The number of times the user has navigated to this page by typing in the address.</dd> <!-- OBJECT PROPERTIES --> <dd style="display: none; "> diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index 00a6995..d8b46b4 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -806,10 +806,7 @@ class NotificationType { EXTENSION_BACKGROUND_PAGE_READY, // Sent when a pop-up extension view is ready, so that notification may - // be sent to pending callbacks. Note that this notification is sent - // after all onload callbacks have been invoked in the main frame. - // The details is the ExtensionHost* hosted within the popup, and the source - // is a Profile*. + // be sent to pending callbacks. EXTENSION_POPUP_VIEW_READY, // Sent when a browser action's state has changed. The source is the diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h index e5bbf5e..b7602d2 100644 --- a/chrome/common/render_messages_internal.h +++ b/chrome/common/render_messages_internal.h @@ -1054,10 +1054,6 @@ IPC_BEGIN_MESSAGES(ViewHost) // finished. IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentAvailableInMainFrame) - // Sent when after the onload handler has been invoked for the document - // in the toplevel frame. - IPC_MESSAGE_ROUTED0(ViewHostMsg_DocumentOnLoadCompletedInMainFrame) - // Sent when the renderer loads a resource from its memory cache. // The security info is non empty if the resource was originally loaded over // a secure connection. |