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

Issue 6462017: gtk: Improve fullscreen RenderWidgetHostViewGtk. (Closed)

Created:
9 years, 10 months ago by Daniel Erat
Modified:
9 years, 7 months ago
CC:
chromium-reviews, pam+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, cbentzel+watch_chromium.org, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman
Visibility:
Public.

Description

gtk: Improve fullscreen RenderWidgetHostViewGtk. This was previously using the same code as for popup windows (i.e. <select> and autocomplete), which creates an override-redirect/popup window and grabs the pointer and keyboard. This is the wrong way to make a window fullscreen: since the window is override-redirect, the window manager will ignore the fullscreen request, and since the input is grabbed, other X clients' key grabs (such as Alt-Tab) won't work. This change makes us instead open a regular toplevel window. BUG=chromium-os:11545 TEST=checked that brightness and volume keys work while Pepper Flash is fullscreen and that <select> popups still work Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74534

Patch Set 1 #

Patch Set 2 : reorder methods to simplify diff #

Patch Set 3 : merge #

Patch Set 4 : fix TestRenderWidgetHostView #

Patch Set 5 : remove a bunch of unnecessary popup type parameters #

Patch Set 6 : factor out code shared between popup and fullscreen windows #

Patch Set 7 : update a comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -226 lines) Patch
M chrome/browser/extensions/extension_host.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/notifications/balloon_host.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_message_filter.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_message_filter.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_helper.h View 1 2 3 4 2 chunks +3 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_helper.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.h View 1 2 3 4 5 5 chunks +16 lines, -16 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_gtk.cc View 1 2 3 4 5 6 5 chunks +97 lines, -114 lines 2 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_views.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_win.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/renderer_host/test/render_view_host_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/renderer_host/test/test_render_view_host.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/background_contents.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/tab_contents/background_contents.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.h View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view.h View 1 2 3 4 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view.cc View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/renderer/render_widget_fullscreen.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/renderer/render_widget_fullscreen.cc View 1 2 3 4 3 chunks +6 lines, -9 lines 0 comments Download
M chrome/renderer/render_widget_fullscreen_pepper.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Daniel Erat
Bo, what's the best way for me to check that this didn't cause any regressions ...
9 years, 10 months ago (2011-02-10 01:58:26 UTC) #1
Daniel Erat
(Side note: browser/renderer_host/render_widget_host_view_gtk.cc is the only file with any substantial changes -- the rest is ...
9 years, 10 months ago (2011-02-10 01:59:58 UTC) #2
piman
Thanks for the big cleanup. It mostly looks good, aside of one comment. http://codereview.chromium.org/6462017/diff/9001/chrome/browser/renderer_host/render_widget_host_view_gtk.cc File ...
9 years, 10 months ago (2011-02-10 02:28:45 UTC) #3
Daniel Erat
http://codereview.chromium.org/6462017/diff/9001/chrome/browser/renderer_host/render_widget_host_view_gtk.cc File chrome/browser/renderer_host/render_widget_host_view_gtk.cc (right): http://codereview.chromium.org/6462017/diff/9001/chrome/browser/renderer_host/render_widget_host_view_gtk.cc#newcode152 chrome/browser/renderer_host/render_widget_host_view_gtk.cc:152: GDK_Escape == event->keyval) { On 2011/02/10 02:28:45, piman wrote: ...
9 years, 10 months ago (2011-02-10 04:45:16 UTC) #4
piman
On 2011/02/10 04:45:16, Daniel Erat wrote: > http://codereview.chromium.org/6462017/diff/9001/chrome/browser/renderer_host/render_widget_host_view_gtk.cc > File chrome/browser/renderer_host/render_widget_host_view_gtk.cc (right): > > http://codereview.chromium.org/6462017/diff/9001/chrome/browser/renderer_host/render_widget_host_view_gtk.cc#newcode152 ...
9 years, 10 months ago (2011-02-10 05:07:49 UTC) #5
boliu
Hi Daniel, My original patch was only to create a full screen pop up window ...
9 years, 10 months ago (2011-02-10 16:56:12 UTC) #6
Timur Iskhodzhanov
9 years, 10 months ago (2011-02-12 19:11:34 UTC) #7
FYI, this patch has made Valgrind bots red for a couple of days.
Please watch the memory waterfall after commiting

Powered by Google App Engine
This is Rietveld 408576698