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

Issue 8417008: aura: Add fullscreen/popups to RenderWidgetHostViewAura. (Closed)

Created:
9 years, 1 month ago by Daniel Erat
Modified:
9 years, 1 month ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, jam, dpranke-watch+content_chromium.org, sadrul, Hironori Bono, Ivan Korotkov
Visibility:
Public.

Description

aura: Add fullscreen/popups to RenderWidgetHostViewAura. This also makes aura::DesktopHostLinux avoid generating Char events when not appropriate, which avoids a problem that I observed where arrow keys were moving <select> selections two spaces instead of one. There still appears to be an issue with the Enter key getting double-counted in <select> popups, though (but if we avoid sending a Char event for it, things like <textarea> break), and fullscreen Flash windows aren't getting updated. BUG=99757, 101899, 101848 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=108008

Patch Set 1 #

Patch Set 2 : avoid emulating WM_CHAR events for many keys #

Total comments: 16

Patch Set 3 : apply review feedback #

Patch Set 4 : remove unneeded parameters #

Patch Set 5 : avoid passing unneeded parameters. um. #

Total comments: 1

Patch Set 6 : expand list of keys that generate char events #

Total comments: 5

Patch Set 7 : use aura::WindowType #

Total comments: 1

Patch Set 8 : use unknown type for unhandled in NativeWidgetAura #

Total comments: 4

Patch Set 9 : apply review feedback #

Patch Set 10 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+183 lines, -86 lines) Patch
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 6 chunks +50 lines, -13 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/renderer_host/web_input_event_aura.cc View 1 2 3 3 chunks +9 lines, -6 lines 0 comments Download
M ui/aura/desktop_host_linux.cc View 1 2 3 4 5 3 chunks +45 lines, -2 lines 0 comments Download
M ui/aura/event_filter_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -5 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -5 lines 0 comments Download
M ui/aura/window_types.h View 1 2 3 4 5 6 1 chunk +10 lines, -6 lines 0 comments Download
M ui/aura_shell/default_container_layout_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -8 lines 0 comments Download
M ui/aura_shell/default_container_layout_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +3 lines, -7 lines 0 comments Download
M ui/aura_shell/shell.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -11 lines 0 comments Download
M ui/gfx/compositor/compositor.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/compositor/layer.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -13 lines 0 comments Download
M views/widget/native_widget_aura.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M views/widget/native_widget_aura.cc View 1 2 3 4 5 6 7 8 9 2 chunks +28 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Daniel Erat
There are still issues with this change, but it seems like an improvement. :-/ Hironori-san, ...
9 years, 1 month ago (2011-10-27 22:37:19 UTC) #1
sadrul
http://codereview.chromium.org/8417008/diff/2001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/8417008/diff/2001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode109 content/browser/renderer_host/render_widget_host_view_aura.cc:109: window_->SetParent(aura::Desktop::GetInstance()); Shouldn't this be parented to the default container ...
9 years, 1 month ago (2011-10-27 22:47:19 UTC) #2
Ben Goodger (Google)
http://codereview.chromium.org/8417008/diff/2001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/8417008/diff/2001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode101 content/browser/renderer_host/render_widget_host_view_aura.cc:101: static_cast<RenderWidgetHostViewAura*>(parent_host_view)->window_); It seems like these should be parented to ...
9 years, 1 month ago (2011-10-27 22:56:10 UTC) #3
Daniel Erat
http://codereview.chromium.org/8417008/diff/2001/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/8417008/diff/2001/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode101 content/browser/renderer_host/render_widget_host_view_aura.cc:101: static_cast<RenderWidgetHostViewAura*>(parent_host_view)->window_); On 2011/10/27 22:56:11, Ben Goodger (Google) wrote: > ...
9 years, 1 month ago (2011-10-28 00:53:13 UTC) #4
Hironori Bono
Greetings, My comment is just for your information. Regards, Hironori Bono http://codereview.chromium.org/8417008/diff/3016/ui/aura/desktop_host_linux.cc File ui/aura/desktop_host_linux.cc (right): ...
9 years, 1 month ago (2011-10-28 05:10:11 UTC) #5
Daniel Erat
Thanks, I've updated the list of keys that generate char events as you recommended (plus ...
9 years, 1 month ago (2011-10-28 14:56:16 UTC) #6
Ben Goodger (Google)
BTW the reason I mentioned transience is you will want the popups to be destroyed ...
9 years, 1 month ago (2011-10-28 16:27:52 UTC) #7
Daniel Erat
+oshima for his opinion here http://codereview.chromium.org/8417008/diff/6010/content/browser/renderer_host/render_widget_host_view_aura.cc File content/browser/renderer_host/render_widget_host_view_aura.cc (right): http://codereview.chromium.org/8417008/diff/6010/content/browser/renderer_host/render_widget_host_view_aura.cc#newcode107 content/browser/renderer_host/render_widget_host_view_aura.cc:107: window_->SetProperty( On 2011/10/28 16:27:53, ...
9 years, 1 month ago (2011-10-28 17:04:25 UTC) #8
oshima
On 2011/10/28 17:04:25, Daniel Erat wrote: > +oshima for his opinion here > > http://codereview.chromium.org/8417008/diff/6010/content/browser/renderer_host/render_widget_host_view_aura.cc ...
9 years, 1 month ago (2011-10-28 17:42:23 UTC) #9
Ben Goodger (Google)
> The duplication between views::Widget::InitParams::Type and whatever type would > live in aura::Window is problematic, ...
9 years, 1 month ago (2011-10-28 17:51:45 UTC) #10
Ben Goodger (Google)
On 2011/10/28 17:42:23, oshima wrote: > Are you suggesting to use type_, instead of GetProperty? ...
9 years, 1 month ago (2011-10-28 17:54:14 UTC) #11
oshima
On 2011/10/28 17:42:23, oshima wrote: > On 2011/10/28 17:04:25, Daniel Erat wrote: > > +oshima ...
9 years, 1 month ago (2011-10-28 17:54:35 UTC) #12
oshima
On 2011/10/28 17:54:14, Ben Goodger (Google) wrote: > On 2011/10/28 17:42:23, oshima wrote: > > ...
9 years, 1 month ago (2011-10-28 17:57:29 UTC) #13
Ben Goodger (Google)
On 2011/10/28 17:57:29, oshima wrote: > What I was thinking is that we only put ...
9 years, 1 month ago (2011-10-28 17:59:06 UTC) #14
Ben Goodger (Google)
On 2011/10/28 17:59:06, Ben Goodger (Google) wrote: > I understand that - that's sort of ...
9 years, 1 month ago (2011-10-28 18:00:52 UTC) #15
Daniel Erat
Another look? http://codereview.chromium.org/8417008/diff/2005/ui/aura/window_types.h File ui/aura/window_types.h (right): http://codereview.chromium.org/8417008/diff/2005/ui/aura/window_types.h#newcode15 ui/aura/window_types.h:15: WINDOW_TYPE_NORMAL, Naming suggestions welcome for all of ...
9 years, 1 month ago (2011-10-28 22:17:20 UTC) #16
Ben Goodger (Google)
http://codereview.chromium.org/8417008/diff/2006/views/widget/native_widget_aura.cc File views/widget/native_widget_aura.cc (right): http://codereview.chromium.org/8417008/diff/2006/views/widget/native_widget_aura.cc#newcode99 views/widget/native_widget_aura.cc:99: ui::Layer::LAYER_HAS_TEXTURE : these lines should be indent 2 more ...
9 years, 1 month ago (2011-10-31 17:59:48 UTC) #17
Daniel Erat
http://codereview.chromium.org/8417008/diff/2006/views/widget/native_widget_aura.cc File views/widget/native_widget_aura.cc (right): http://codereview.chromium.org/8417008/diff/2006/views/widget/native_widget_aura.cc#newcode99 views/widget/native_widget_aura.cc:99: ui::Layer::LAYER_HAS_TEXTURE : On 2011/10/31 17:59:48, Ben Goodger (Google) wrote: ...
9 years, 1 month ago (2011-10-31 19:48:18 UTC) #18
Ben Goodger (Google)
9 years, 1 month ago (2011-10-31 19:50:22 UTC) #19
lgtm

Powered by Google App Engine
This is Rietveld 408576698