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

Issue 11498008: RenderWidget popup should be a NSWindow so it can go outside the main window. (Closed)

Created:
8 years ago by keishi
Modified:
7 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, sail+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, Elliot Glaysher
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

RenderWidget popup should be a NSWindow so it can go outside the main window. BUG=165338 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175488

Patch Set 1 #

Total comments: 19

Patch Set 2 : Fixed other comments #

Patch Set 3 : Created EventHookApplication in content #

Total comments: 2

Patch Set 4 : Moved to ui/base/cocoa. Added Cr prefix. #

Patch Set 5 : Shouldn't be calling setParentWindow #

Total comments: 17

Patch Set 6 : Removed cancelChildPopups #

Total comments: 6

Patch Set 7 : Removed closing child popups #

Total comments: 1

Patch Set 8 : Removed include #

Total comments: 4

Patch Set 9 : Used local monitor #

Total comments: 3

Patch Set 10 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -58 lines) Patch
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 9 8 chunks +108 lines, -58 lines 0 comments Download

Messages

Total messages: 45 (0 generated)
keishi
Autofill and <input type=date> popups should be able to be shown outside the web contents ...
8 years ago (2012-12-10 12:17:27 UTC) #1
Nico
Avi, you did popups originally, right? Probably best if you look at this. keishi: This ...
8 years ago (2012-12-10 20:34:05 UTC) #2
Avi (use Gerrit)
Yes, this was originally me, and I did it this way because I was trying ...
8 years ago (2012-12-10 20:36:32 UTC) #3
Avi (use Gerrit)
https://codereview.chromium.org/11498008/diff/1/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm File chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm (right): https://codereview.chromium.org/11498008/diff/1/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm#newcode59 chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm:59: - (void)startObservingClick { This is a change in behavior; ...
8 years ago (2012-12-10 20:52:06 UTC) #4
Avi (use Gerrit)
In addition, there's already lots of machinery in RWHV to close it when it has ...
8 years ago (2012-12-10 21:56:47 UTC) #5
keishi
https://codereview.chromium.org/11498008/diff/1/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm File chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm (right): https://codereview.chromium.org/11498008/diff/1/chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm#newcode59 chrome/browser/ui/cocoa/tab_contents/chrome_web_contents_view_delegate_mac.mm:59: - (void)startObservingClick { On 2012/12/10 20:52:06, Avi wrote: > ...
8 years ago (2012-12-11 01:53:54 UTC) #6
keishi
On 2012/12/10 21:56:47, Avi wrote: > In addition, there's already lots of machinery in RWHV ...
8 years ago (2012-12-11 02:13:54 UTC) #7
Avi (use Gerrit)
I'll double-check with Mark, but I'd much rather move more event hooking to content.
8 years ago (2012-12-11 03:41:42 UTC) #8
keishi
https://codereview.chromium.org/11498008/diff/1/content/browser/renderer_host/render_widget_host_view_guest.h File content/browser/renderer_host/render_widget_host_view_guest.h (right): https://codereview.chromium.org/11498008/diff/1/content/browser/renderer_host/render_widget_host_view_guest.h#newcode62 content/browser/renderer_host/render_widget_host_view_guest.h:62: WebContentsViewDelegate* delegate = NULL) OVERRIDE; On 2012/12/10 20:52:06, Avi ...
8 years ago (2012-12-11 05:09:13 UTC) #9
Avi (use Gerrit)
https://codereview.chromium.org/11498008/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode479 content/browser/renderer_host/render_widget_host_view_mac.mm:479: display:YES]; On 2012/12/11 05:09:14, keishi1 wrote: > When will ...
8 years ago (2012-12-11 05:14:20 UTC) #10
keishi
On 2012/12/11 05:14:20, Avi wrote: > https://codereview.chromium.org/11498008/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm > File content/browser/renderer_host/render_widget_host_view_mac.mm (right): > > https://codereview.chromium.org/11498008/diff/1/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode479 > ...
8 years ago (2012-12-11 07:04:03 UTC) #11
Avi (use Gerrit)
I like the changes you made in RWHV. The concerns that I have are the ...
8 years ago (2012-12-11 21:59:37 UTC) #12
Mark Mentovai
I think it’s fine to consolidate the event hook stuff in the way that was ...
8 years ago (2012-12-11 22:04:47 UTC) #13
Avi (use Gerrit)
keishi, have you verified that this works in hidpi mode?
8 years ago (2012-12-11 22:06:29 UTC) #14
Avi (use Gerrit)
I talked to John, and content/public isn't for concrete implementations. Mark, would it be OK ...
8 years ago (2012-12-11 22:23:56 UTC) #15
Mark Mentovai
I don’t personally have any problem with that, but you should talk to some ui ...
8 years ago (2012-12-11 22:43:37 UTC) #16
keishi
On 2012/12/11 22:06:29, Avi wrote: > keishi, have you verified that this works in hidpi ...
8 years ago (2012-12-12 06:44:10 UTC) #17
Avi (use Gerrit)
https://codereview.chromium.org/11498008/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode60 content/browser/renderer_host/render_widget_host_view_mac.mm:60: #include "ui/gfx/native_widget_types.h" in alphabetical order https://codereview.chromium.org/11498008/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode206 content/browser/renderer_host/render_widget_host_view_mac.mm:206: } You ...
8 years ago (2012-12-12 15:59:49 UTC) #18
keishi
https://codereview.chromium.org/11498008/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/30001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode60 content/browser/renderer_host/render_widget_host_view_mac.mm:60: #include "ui/gfx/native_widget_types.h" On 2012/12/12 15:59:49, Avi wrote: > in ...
8 years ago (2012-12-13 07:51:12 UTC) #19
Avi (use Gerrit)
One last set of comments. https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode204 content/browser/renderer_host/render_widget_host_view_mac.mm:204: } You could fix ...
8 years ago (2012-12-13 16:04:01 UTC) #20
keishi
https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode204 content/browser/renderer_host/render_widget_host_view_mac.mm:204: } On 2012/12/13 16:04:01, Avi wrote: > You could ...
8 years ago (2012-12-14 02:23:26 UTC) #21
Avi (use Gerrit)
https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode790 content/browser/renderer_host/render_widget_host_view_mac.mm:790: renderWidgetHostViewMac]->ShutdownHost(); All the RenderWidgetHostViewCocoa objects used as popups are ...
8 years ago (2012-12-14 04:08:35 UTC) #22
keishi
On 2012/12/14 04:08:35, Avi wrote: > https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm > File content/browser/renderer_host/render_widget_host_view_mac.mm (right): > > https://codereview.chromium.org/11498008/diff/32001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode790 > ...
8 years ago (2012-12-14 04:32:02 UTC) #23
Avi (use Gerrit)
lgtm with the last change https://codereview.chromium.org/11498008/diff/38001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/38001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode43 content/browser/renderer_host/render_widget_host_view_mac.mm:43: #include "content/public/browser/web_contents_view_delegate.h" I don't ...
8 years ago (2012-12-14 04:42:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/11498008/40001
8 years ago (2012-12-14 06:20:06 UTC) #25
commit-bot: I haz the power
Presubmit check for 11498008-40001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-12-14 06:20:14 UTC) #26
keishi
On 2012/12/14 04:42:15, Avi wrote: > lgtm with the last change Thanks Avi. Nico, could ...
8 years ago (2012-12-14 06:24:20 UTC) #27
Nico
If it looks good to Avi, lgtm I suppose. Feel free to land. For my ...
8 years ago (2012-12-14 19:00:46 UTC) #28
keishi
On 2012/12/14 19:00:46, Nico wrote: > For my education: Why do we need this hooks ...
8 years ago (2012-12-17 04:45:32 UTC) #29
Nico
On Sun, Dec 16, 2012 at 8:45 PM, <keishi@chromium.org> wrote: > On 2012/12/14 19:00:46, Nico ...
8 years ago (2012-12-17 06:04:26 UTC) #30
Avi (use Gerrit)
I know just about nothing about nested event loops. I'm just for whatever works...
8 years ago (2012-12-17 06:20:03 UTC) #31
keishi
On 2012/12/17 06:04:26, Nico wrote: > On Sun, Dec 16, 2012 at 8:45 PM, <mailto:keishi@chromium.org> ...
8 years ago (2012-12-17 07:48:11 UTC) #32
keishi
> (Also, the rwhv could suppress forwarding blurs if it knows that the blur > ...
8 years ago (2012-12-18 08:51:07 UTC) #33
Nico
On 2012/12/18 08:51:07, keishi1 wrote: > > (Also, the rwhv could suppress forwarding blurs if ...
8 years ago (2012-12-18 15:59:25 UTC) #34
Avi (use Gerrit)
In crbug.com/166680, Nico wonders if you can do this kind of work with +[NSEvent addLocalMonitorForEventsMatchingMask:handler:]. ...
8 years ago (2012-12-19 17:48:32 UTC) #35
Avi (use Gerrit)
On 2012/12/19 17:48:32, Avi wrote: > In crbug.com/166680, Nico wonders if you can do this ...
8 years ago (2012-12-20 19:15:14 UTC) #36
keishi
On 2012/12/20 19:15:14, Avi wrote: > On 2012/12/19 17:48:32, Avi wrote: > > In crbug.com/166680, ...
8 years ago (2012-12-21 12:00:53 UTC) #37
Avi (use Gerrit)
LGTM with style nit. Thanks! I'm going to remove the event hook stuff now. https://codereview.chromium.org/11498008/diff/49001/content/browser/renderer_host/render_widget_host_view_mac.mm ...
8 years ago (2012-12-21 15:21:28 UTC) #38
Nico
Nice! (Feel free to land when you want.) https://codereview.chromium.org/11498008/diff/49001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/11498008/diff/49001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode208 content/browser/renderer_host/render_widget_host_view_mac.mm:208: - ...
8 years ago (2012-12-21 15:36:08 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/11498008/56001
7 years, 11 months ago (2013-01-07 04:37:22 UTC) #40
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests, unit_tests
7 years, 11 months ago (2013-01-07 04:50:24 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/11498008/56001
7 years, 11 months ago (2013-01-07 08:44:14 UTC) #42
commit-bot: I haz the power
Retried try job too often on ios_dbg_simulator for step(s) sync_unit_tests, unit_tests
7 years, 11 months ago (2013-01-07 08:52:38 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/keishi@chromium.org/11498008/56001
7 years, 11 months ago (2013-01-08 02:24:07 UTC) #44
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 06:09:22 UTC) #45
Message was sent while issue was closed.
Change committed as 175488

Powered by Google App Engine
This is Rietveld 408576698