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

Issue 8985008: Don't use browser windows for platform app shell windows (Closed)

Created:
9 years ago by Mihai Parparita -not on Chrome
Modified:
8 years, 11 months ago
CC:
chromium-reviews, jstritar+watch_chromium.org, Avi (use Gerrit), creis+watch_chromium.org, ajwong+watch_chromium.org, mihaip+watch_chromium.org, Aaron Boodman, Paweł Hajdan Jr., brettw-cc_chromium.org, benwells
Visibility:
Public.

Description

Don't use browser windows for platform app shell windows. This frees platform apps from having to disable browser behaviors they don't want (e.g. keyboard shortcuts). Reverts part of r112378, which add a "shell" browser window type, and redoes part of r114162 to not depend on browser windows when checking if the context menu is being displayed for a platform app. (reland of r116803, which got reverted with r116810 -- now builds on Chrome OS) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116834 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116855

Patch Set 1 #

Patch Set 2 : Add view type, handle window closing. #

Total comments: 8

Patch Set 3 : Rebase #

Patch Set 4 : Review feedback #

Patch Set 5 : Fix Linux tryserver failures. #

Patch Set 6 : Rebase #

Patch Set 7 : Fix WebContents build errors. #

Patch Set 8 : Fix Mac compilation error. #

Patch Set 9 : Rebase #

Patch Set 10 : Handle recent WebContents changes. #

Patch Set 11 : More logging #

Patch Set 12 : Disable PlatformAppBrowserTest.AppWithContextMenu on Windows #

Total comments: 4

Patch Set 13 : ShellWindow::CreateShellWindow #

Patch Set 14 : Rebase #

Patch Set 15 : Fix ChromeOS #

Patch Set 16 : Disable AppWithContextMenu for all views platforms #

Patch Set 17 : Disable platform app tests on non-GTK platforms. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+373 lines, -110 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 5 chunks +11 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.h View 1 2 3 3 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +13 lines, -0 lines 0 comments Download
M chrome/browser/extensions/platform_app_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +66 lines, -52 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 6 chunks +39 lines, -18 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 5 chunks +12 lines, -16 lines 0 comments Download
M chrome/browser/ui/browser_browsertest.cc View 1 2 3 4 5 3 chunks +3 lines, -5 lines 0 comments Download
A chrome/browser/ui/extensions/shell_window.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +52 lines, -0 lines 0 comments Download
A chrome/browser/ui/extensions/shell_window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.cc View 1 2 3 4 5 6 7 8 2 chunks +1 line, -5 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -3 lines 0 comments Download
A chrome/browser/ui/gtk/extensions/shell_window_gtk.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/gtk/extensions/shell_window_gtk.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +50 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_view_type.h View 1 2 3 3 chunks +3 lines, -1 line 0 comments Download
M chrome/common/chrome_view_type.cc View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/schema_generated_bindings.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
Mihai Parparita -not on Chrome
(--send-mail didn't seem to actually send the mail, so I'm resending this) Don't use browser ...
9 years ago (2011-12-20 05:13:09 UTC) #1
miket_OOO
LGTM. LVGTM. http://codereview.chromium.org/8985008/diff/2001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/8985008/diff/2001/chrome/browser/extensions/extension_process_manager.cc#newcode123 chrome/browser/extensions/extension_process_manager.cc:123: host->CreateView(NULL); I wish ExtensionHost had something like ...
9 years ago (2011-12-20 19:12:34 UTC) #2
Mihai Parparita -not on Chrome
Thanks for the prompt review. Unfortunately there's some tryserver failures and I'm leaving for the ...
9 years ago (2011-12-20 22:18:20 UTC) #3
jeremya
I have a quick and dirty implementation of a ShellWindow for Views on top of ...
8 years, 11 months ago (2012-01-04 03:41:26 UTC) #4
Mihai Parparita -not on Chrome
http://codereview.chromium.org/8985008/diff/2001/chrome/browser/extensions/extension_process_manager.cc File chrome/browser/extensions/extension_process_manager.cc (right): http://codereview.chromium.org/8985008/diff/2001/chrome/browser/extensions/extension_process_manager.cc#newcode123 chrome/browser/extensions/extension_process_manager.cc:123: host->CreateView(NULL); On 2011/12/20 19:12:34, miket wrote: > I wish ...
8 years, 11 months ago (2012-01-04 22:46:45 UTC) #5
commit-bot: I haz the power
No LGTM from valid reviewers yet.
8 years, 11 months ago (2012-01-06 06:43:15 UTC) #6
Mihai Parparita -not on Chrome
+John or Avi for the content/common changes.
8 years, 11 months ago (2012-01-06 06:46:39 UTC) #7
jam
On 2012/01/06 06:46:39, Mihai Parparita wrote: > +John or Avi for the content/common changes. i ...
8 years, 11 months ago (2012-01-06 16:48:11 UTC) #8
Mihai Parparita -not on Chrome
On Fri, Jan 6, 2012 at 8:48 AM, <jam@chromium.org> wrote: > On 2012/01/06 06:46:39, Mihai ...
8 years, 11 months ago (2012-01-06 19:17:30 UTC) #9
Mihai Parparita -not on Chrome
Scott, could you look at the chrome/browser/ui changes (the OWNERS file got a set noparent ...
8 years, 11 months ago (2012-01-06 19:20:05 UTC) #10
sky
http://codereview.chromium.org/8985008/diff/32001/chrome/browser/ui/extensions/shell_window.cc File chrome/browser/ui/extensions/shell_window.cc (right): http://codereview.chromium.org/8985008/diff/32001/chrome/browser/ui/extensions/shell_window.cc#newcode14 chrome/browser/ui/extensions/shell_window.cc:14: #include "chrome/browser/ui/gtk/extensions/shell_window_gtk.h" General pattern for these sort of things ...
8 years, 11 months ago (2012-01-06 20:10:25 UTC) #11
sky
Also, I'm not the most knowledgeable gtk person. One of the Evans or Elliot is ...
8 years, 11 months ago (2012-01-06 20:10:56 UTC) #12
Mihai Parparita -not on Chrome
Elliot, do you mind looking at the GTK bits? Generally, the intent is to have ...
8 years, 11 months ago (2012-01-06 21:33:19 UTC) #13
Elliot Glaysher
I don't see anything immediately wrong with your new shell window but I get nervous ...
8 years, 11 months ago (2012-01-06 22:06:43 UTC) #14
sky
LGTM
8 years, 11 months ago (2012-01-06 22:52:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/8985008/41002
8 years, 11 months ago (2012-01-06 23:06:53 UTC) #16
commit-bot: I haz the power
Try job failure for 8985008-41002 (retry) on linux_rel for steps "browser_tests, ui_tests" (clobber build). It's ...
8 years, 11 months ago (2012-01-07 00:06:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/8985008/41002
8 years, 11 months ago (2012-01-07 00:17:52 UTC) #18
commit-bot: I haz the power
Change committed as 116803
8 years, 11 months ago (2012-01-07 03:09:06 UTC) #19
Mihai Parparita -not on Chrome
This got reverted with r116810 due to build failures on Chrome OS: TOOLKIT_USES_GTK is true ...
8 years, 11 months ago (2012-01-07 20:18:10 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/8985008/53002
8 years, 11 months ago (2012-01-07 21:45:56 UTC) #21
commit-bot: I haz the power
Change committed as 116834
8 years, 11 months ago (2012-01-07 22:52:58 UTC) #22
Mihai Parparita -not on Chrome
This got reverted (again) with r116842 since the platform app tests were failing on the ...
8 years, 11 months ago (2012-01-09 02:12:23 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mihaip@chromium.org/8985008/48023
8 years, 11 months ago (2012-01-09 04:28:41 UTC) #24
commit-bot: I haz the power
8 years, 11 months ago (2012-01-09 05:48:34 UTC) #25
Change committed as 116855

Powered by Google App Engine
This is Rietveld 408576698