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

Issue 11614037: Call ShowRootWindow on NativeWindow's RootWindow to display the window. (Closed)

Created:
8 years ago by Nayan
Modified:
7 years, 11 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, jochen+watch_chromium.org
Base URL:
https://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Call ShowRootWindow on NativeWindow's RootWindow to display the window. RootWindowHost which gets created by WebContents creation doesn't get ShowRootWindow call, hence the corresponding X window doesn't get mapped. BUG=166914 TEST=Build and run content_shell for chromiumos (chromiumos=1). Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178918

Patch Set 1 #

Total comments: 4

Patch Set 2 : Create RootWindowFirst #

Total comments: 19

Patch Set 3 : Rewored patch #

Total comments: 6

Patch Set 4 : Reworked patch #

Total comments: 4

Patch Set 5 : Parameterized PlatformInitialize #

Patch Set 6 : Reworked patch. #

Total comments: 6

Patch Set 7 : Reworked patch #

Patch Set 8 : Add explicit keyword #

Total comments: 2

Patch Set 9 : Reworked Patch #

Total comments: 2

Patch Set 10 : Call ShowRootWindow in non-chromeos #

Total comments: 1

Patch Set 11 : Removed redundant OS_CHROMEOS ifdef #

Patch Set 12 : Fix mac build failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -13 lines) Patch
M content/shell/minimal_ash.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M content/shell/minimal_ash.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/shell/shell.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -1 line 0 comments Download
M content/shell/shell.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/shell_android.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_aura.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -4 lines 0 comments Download
M content/shell/shell_browser_main_parts.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_gtk.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M content/shell/shell_win.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (0 generated)
Nayan
This issue is still seen in content_shell for chromeos. Please review.
7 years, 11 months ago (2013-01-07 22:42:42 UTC) #1
sky
https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc#newcode341 content/shell/shell_aura.cc:341: window_->GetRootWindow()->SetHostSize(gfx::Size(width, height)); Why is this needed?
7 years, 11 months ago (2013-01-08 01:20:04 UTC) #2
Nayan
https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc#newcode341 content/shell/shell_aura.cc:341: window_->GetRootWindow()->SetHostSize(gfx::Size(width, height)); On 2013/01/08 01:20:05, sky wrote: > Why ...
7 years, 11 months ago (2013-01-08 02:25:38 UTC) #3
sky
https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc#newcode341 content/shell/shell_aura.cc:341: window_->GetRootWindow()->SetHostSize(gfx::Size(width, height)); On 2013/01/08 02:25:38, Nayan wrote: > On ...
7 years, 11 months ago (2013-01-08 18:28:14 UTC) #4
Nayan
> > Shouldn't the size passed to CreateWindowWithBounds be used? Size set to RootWindow is ...
7 years, 11 months ago (2013-01-08 19:38:36 UTC) #5
sky
My point is why isn't the root window getting sized to the widget?
7 years, 11 months ago (2013-01-08 21:26:23 UTC) #6
Nayan
On 2013/01/08 21:26:23, sky wrote: > My point is why isn't the root window getting ...
7 years, 11 months ago (2013-01-08 23:12:18 UTC) #7
oshima
On 2013/01/08 23:12:18, Nayan wrote: > On 2013/01/08 21:26:23, sky wrote: > > My point ...
7 years, 11 months ago (2013-01-08 23:45:56 UTC) #8
sky
What ever approach you end up going with, make sure you add a comment.
7 years, 11 months ago (2013-01-09 00:45:14 UTC) #9
Nayan
> I think better solution is to create a root window first. As you can ...
7 years, 11 months ago (2013-01-13 03:06:31 UTC) #10
Nayan
https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/1/content/shell/shell_aura.cc#newcode341 content/shell/shell_aura.cc:341: window_->GetRootWindow()->SetHostSize(gfx::Size(width, height)); On 2013/01/08 18:28:15, sky wrote: > On ...
7 years, 11 months ago (2013-01-13 03:07:18 UTC) #11
sky
https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.cc File content/shell/shell.cc (right): https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.cc#newcode130 content/shell/shell.cc:130: create_params.context = Shell::stacking_client_->GetDefaultParent(NULL, NULL, gfx::Rect()); > 80 https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.h File ...
7 years, 11 months ago (2013-01-15 21:53:49 UTC) #12
Nayan
https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.cc File content/shell/shell.cc (right): https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.cc#newcode130 content/shell/shell.cc:130: create_params.context = Shell::stacking_client_->GetDefaultParent(NULL, NULL, gfx::Rect()); On 2013/01/15 21:53:49, sky ...
7 years, 11 months ago (2013-01-15 23:39:03 UTC) #13
sky
https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.h File content/shell/shell.h (right): https://codereview.chromium.org/11614037/diff/19001/content/shell/shell.h#newcode44 content/shell/shell.h:44: // Content area size for newly created windows. On ...
7 years, 11 months ago (2013-01-16 00:55:39 UTC) #14
Nayan
https://codereview.chromium.org/11614037/diff/29001/content/shell/shell.cc File content/shell/shell.cc (right): https://codereview.chromium.org/11614037/diff/29001/content/shell/shell.cc#newcode125 content/shell/shell.cc:125: browser_context, site_instance); On 2013/01/16 00:55:39, sky wrote: > Why ...
7 years, 11 months ago (2013-01-16 01:07:29 UTC) #15
oshima
+erg for DCHECK change below. https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h File content/shell/shell.h (right): https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h#newcode47 content/shell/shell.h:47: static const int kTestWindowHeight ...
7 years, 11 months ago (2013-01-17 08:57:56 UTC) #16
Nayan
On 2013/01/17 08:57:56, oshima wrote: > +erg for DCHECK change below. > > https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h > ...
7 years, 11 months ago (2013-01-17 19:55:52 UTC) #17
oshima
On 2013/01/17 19:55:52, Nayan wrote: > On 2013/01/17 08:57:56, oshima wrote: > > +erg for ...
7 years, 11 months ago (2013-01-17 19:58:45 UTC) #18
jochen (gone - plz use gerrit)
https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h File content/shell/shell.h (right): https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h#newcode47 content/shell/shell.h:47: static const int kTestWindowHeight = 600; Can you instead ...
7 years, 11 months ago (2013-01-17 20:02:09 UTC) #19
Nayan
https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h File content/shell/shell.h (right): https://codereview.chromium.org/11614037/diff/31002/content/shell/shell.h#newcode47 content/shell/shell.h:47: static const int kTestWindowHeight = 600; On 2013/01/17 20:02:09, ...
7 years, 11 months ago (2013-01-18 18:59:56 UTC) #20
Nayan
With the recent changes https://codereview.chromium.org/11829040, ShellStackingClientAsh gets replaced with MinimalAsh and DCHECK in ui/aura/window.cc is ...
7 years, 11 months ago (2013-01-23 21:10:06 UTC) #21
sky
https://codereview.chromium.org/11614037/diff/48001/content/shell/minimal_ash.cc File content/shell/minimal_ash.cc (right): https://codereview.chromium.org/11614037/diff/48001/content/shell/minimal_ash.cc#newcode19 content/shell/minimal_ash.cc:19: gfx::Rect(default_window_size.width(), There is a constructor that takes a Size. ...
7 years, 11 months ago (2013-01-23 22:12:10 UTC) #22
Nayan
https://codereview.chromium.org/11614037/diff/48001/content/shell/minimal_ash.cc File content/shell/minimal_ash.cc (right): https://codereview.chromium.org/11614037/diff/48001/content/shell/minimal_ash.cc#newcode19 content/shell/minimal_ash.cc:19: gfx::Rect(default_window_size.width(), On 2013/01/23 22:12:10, sky wrote: > There is ...
7 years, 11 months ago (2013-01-23 22:23:10 UTC) #23
Nayan
https://codereview.chromium.org/11614037/diff/48001/content/shell/minimal_ash.h File content/shell/minimal_ash.h (right): https://codereview.chromium.org/11614037/diff/48001/content/shell/minimal_ash.h#newcode43 content/shell/minimal_ash.h:43: MinimalAsh(gfx::Size default_window_size); On 2013/01/23 22:12:10, sky wrote: > explicit ...
7 years, 11 months ago (2013-01-23 22:28:39 UTC) #24
oshima
https://codereview.chromium.org/11614037/diff/54001/content/shell/shell.h File content/shell/shell.h (right): https://codereview.chromium.org/11614037/diff/54001/content/shell/shell.h#newcode150 content/shell/shell.h:150: static void PlatformInitialize(gfx::Size default_window_size); const gfx::Size&
7 years, 11 months ago (2013-01-24 01:56:11 UTC) #25
Nayan
https://codereview.chromium.org/11614037/diff/54001/content/shell/shell.h File content/shell/shell.h (right): https://codereview.chromium.org/11614037/diff/54001/content/shell/shell.h#newcode150 content/shell/shell.h:150: static void PlatformInitialize(gfx::Size default_window_size); On 2013/01/24 01:56:11, oshima wrote: ...
7 years, 11 months ago (2013-01-24 03:27:50 UTC) #26
oshima
lgtm (I'm not owner though)
7 years, 11 months ago (2013-01-24 04:01:19 UTC) #27
sky
https://codereview.chromium.org/11614037/diff/56002/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/56002/content/shell/shell_aura.cc#newcode350 content/shell/shell_aura.cc:350: #if defined(OS_CHROMEOS) Why is this chromeos specific? Don't we ...
7 years, 11 months ago (2013-01-24 18:39:06 UTC) #28
Nayan
https://codereview.chromium.org/11614037/diff/56002/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/56002/content/shell/shell_aura.cc#newcode350 content/shell/shell_aura.cc:350: #if defined(OS_CHROMEOS) On 2013/01/24 18:39:06, sky wrote: > Why ...
7 years, 11 months ago (2013-01-24 18:49:11 UTC) #29
sky
On Thu, Jan 24, 2013 at 10:49 AM, <qtc746@motorola.com> wrote: > > https://codereview.chromium.org/11614037/diff/56002/content/shell/shell_aura.cc > File ...
7 years, 11 months ago (2013-01-24 19:40:41 UTC) #30
Nayan
> > Then why the ifdef? Sorry for not being descriptive. I haven't tested this ...
7 years, 11 months ago (2013-01-24 20:48:17 UTC) #31
sky
On Thu, Jan 24, 2013 at 12:48 PM, <qtc746@motorola.com> wrote: > >> Then why the ...
7 years, 11 months ago (2013-01-24 22:28:47 UTC) #32
Nayan
> I think the same problem exists for aura-windows. So, nuke the ifdefs. Thanks, I ...
7 years, 11 months ago (2013-01-24 23:47:59 UTC) #33
sky
https://codereview.chromium.org/11614037/diff/60001/content/shell/shell_aura.cc File content/shell/shell_aura.cc (right): https://codereview.chromium.org/11614037/diff/60001/content/shell/shell_aura.cc#newcode285 content/shell/shell_aura.cc:285: #if defined(OS_CHROMEOS) Sorry, since you're here can you merge ...
7 years, 11 months ago (2013-01-25 00:59:04 UTC) #34
Nayan
Removed redundant OS_CHROMEOS ifdef.
7 years, 11 months ago (2013-01-25 01:06:39 UTC) #35
sky
LGTM - thanks
7 years, 11 months ago (2013-01-25 16:25:01 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qtc746@motorola.com/11614037/54002
7 years, 11 months ago (2013-01-25 18:06:13 UTC) #37
commit-bot: I haz the power
Presubmit check for 11614037-54002 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-25 18:06:21 UTC) #38
jochen (gone - plz use gerrit)
lgtm
7 years, 11 months ago (2013-01-25 19:20:03 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qtc746@motorola.com/11614037/54002
7 years, 11 months ago (2013-01-25 19:21:39 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qtc746@motorola.com/11614037/58004
7 years, 11 months ago (2013-01-25 20:03:13 UTC) #41
commit-bot: I haz the power
7 years, 11 months ago (2013-01-25 22:29:25 UTC) #42
Message was sent while issue was closed.
Change committed as 178918

Powered by Google App Engine
This is Rietveld 408576698