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

Issue 403263002: platform-window: Add a PlatformWindowFactory for creating windows.

Created:
6 years, 5 months ago by sadrul
Modified:
5 years, 4 months ago
Reviewers:
spang
CC:
chromium-reviews, ozone-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Project:
chromium
Visibility:
Public.

Description

platform-window: Add a PlatformWindowFactory for creating windows. This allows using a common NativeViewport implementation on x11, win32 and ozone: PlatformViewport. A test-factory can be used in tests to create dummy PlatformWindow objects, once off-screen rendering is possible for mojo. BUG=none

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : win32 #

Patch Set 6 : win32 #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -497 lines) Patch
M mojo/mojo_services.gypi View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -9 lines 0 comments Download
D mojo/services/native_viewport/native_viewport_ozone.cc View 1 2 3 4 1 chunk +0 lines, -99 lines 0 comments Download
D mojo/services/native_viewport/native_viewport_win.cc View 1 2 3 4 1 chunk +0 lines, -107 lines 0 comments Download
D mojo/services/native_viewport/native_viewport_x11.cc View 1 2 3 4 1 chunk +0 lines, -122 lines 0 comments Download
A + mojo/services/native_viewport/platform_viewport.cc View 1 2 3 4 5 6 3 chunks +16 lines, -22 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -1 line 0 comments Download
M ui/aura/window_tree_host_ozone.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/window_tree_host_ozone.cc View 1 2 3 4 5 6 1 chunk +5 lines, -5 lines 0 comments Download
M ui/aura/window_tree_host_win.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/window_tree_host_win.cc View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M ui/ozone/demo/ozone_demo.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/ozone.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/caca/caca_window.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/caca/caca_window.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/dri/dri_window.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/dri/dri_window.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ui/ozone/platform/test/test_window.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/test/test_window.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/DEPS View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
D ui/platform_window/platform_window.h View 1 2 3 4 5 6 1 chunk +0 lines, -46 lines 0 comments Download
M ui/platform_window/platform_window.gyp View 1 2 3 4 5 6 1 chunk +28 lines, -2 lines 0 comments Download
D ui/platform_window/platform_window_delegate.h View 1 2 3 4 5 6 1 chunk +0 lines, -53 lines 0 comments Download
A ui/platform_window/platform_window_factory.h View 1 2 3 4 5 6 1 chunk +37 lines, -0 lines 0 comments Download
A ui/platform_window/platform_window_factory.cc View 1 2 3 4 5 6 1 chunk +81 lines, -0 lines 0 comments Download
A + ui/platform_window/types/platform_window.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A + ui/platform_window/types/platform_window_delegate.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ui/platform_window/win/win_window.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/win/win_window.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/win/win_window.gyp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/x11/x11_window.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M ui/platform_window/x11/x11_window.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/platform_window/x11/x11_window.gyp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 38 (1 generated)
sadrul
spang@ for changes in ui/ozone/, and platform_viewport.cc (I considered splitting out OzoneWindowFactory into its own ...
6 years, 5 months ago (2014-07-20 08:09:21 UTC) #1
spang
On 2014/07/20 08:09:21, sadrul wrote: > spang@ for changes in ui/ozone/, and platform_viewport.cc (I considered ...
6 years, 5 months ago (2014-07-21 16:46:58 UTC) #2
spang
On 2014/07/21 16:46:58, spang wrote: > On 2014/07/20 08:09:21, sadrul wrote: > > spang@ for ...
6 years, 5 months ago (2014-07-21 16:58:44 UTC) #3
spang
https://codereview.chromium.org/403263002/diff/40001/mojo/services/native_viewport/platform_viewport.cc File mojo/services/native_viewport/platform_viewport.cc (left): https://codereview.chromium.org/403263002/diff/40001/mojo/services/native_viewport/platform_viewport.cc#oldcode27 mojo/services/native_viewport/platform_viewport.cc:27: ui::OzonePlatform::InitializeForUI(); did this move somewhere?
6 years, 5 months ago (2014-07-21 16:59:07 UTC) #4
sadrul
On 2014/07/21 16:58:44, spang wrote: > On 2014/07/21 16:46:58, spang wrote: > > On 2014/07/20 ...
6 years, 5 months ago (2014-07-21 17:39:54 UTC) #5
spang
On 2014/07/21 17:39:54, sadrul wrote: > On 2014/07/21 16:58:44, spang wrote: > > On 2014/07/21 ...
6 years, 5 months ago (2014-07-21 18:09:41 UTC) #6
spang
On 2014/07/21 18:09:41, spang wrote: > On 2014/07/21 17:39:54, sadrul wrote: > > On 2014/07/21 ...
6 years, 5 months ago (2014-07-21 18:14:47 UTC) #7
sadrul
On 2014/07/21 18:09:41, spang wrote: > On 2014/07/21 17:39:54, sadrul wrote: > > On 2014/07/21 ...
6 years, 5 months ago (2014-07-21 18:21:01 UTC) #8
spang
On 2014/07/21 18:21:01, sadrul wrote: > On 2014/07/21 18:09:41, spang wrote: > > On 2014/07/21 ...
6 years, 5 months ago (2014-07-21 18:33:39 UTC) #9
spang
lgtm
6 years, 5 months ago (2014-07-21 22:40:29 UTC) #10
Ben Goodger (Google)
https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h File ui/platform_window/win/win_window_factory.h (right): https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h#newcode15 ui/platform_window/win/win_window_factory.h:15: class WIN_WINDOW_EXPORT WinWindowFactory : public PlatformWindowFactory { Why do ...
6 years, 5 months ago (2014-07-23 16:03:43 UTC) #11
sadrul
https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h File ui/platform_window/win/win_window_factory.h (right): https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h#newcode15 ui/platform_window/win/win_window_factory.h:15: class WIN_WINDOW_EXPORT WinWindowFactory : public PlatformWindowFactory { On 2014/07/23 ...
6 years, 5 months ago (2014-07-23 16:40:17 UTC) #12
spang
On 2014/07/23 16:40:17, sadrul wrote: > https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h > File ui/platform_window/win/win_window_factory.h (right): > > https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h#newcode15 > ...
6 years, 5 months ago (2014-07-23 17:35:53 UTC) #13
spang
On 2014/07/23 17:35:53, spang wrote: > On 2014/07/23 16:40:17, sadrul wrote: > > > https://codereview.chromium.org/403263002/diff/100001/ui/platform_window/win/win_window_factory.h ...
6 years, 5 months ago (2014-07-23 17:44:31 UTC) #14
Ben Goodger (Google)
On 2014/07/23 17:44:31, spang wrote: > On 2014/07/23 17:35:53, spang wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-23 17:53:02 UTC) #15
sadrul
On 2014/07/23 17:44:31, spang wrote: > On 2014/07/23 17:35:53, spang wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-23 18:51:32 UTC) #16
spang
On 2014/07/23 18:51:32, sadrul wrote: > On 2014/07/23 17:44:31, spang wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-23 21:06:09 UTC) #17
sadrul
On 2014/07/23 21:06:09, spang wrote: > On 2014/07/23 18:51:32, sadrul wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-23 21:14:08 UTC) #18
sadrul
On 2014/07/23 21:14:08, sadrul wrote: > On 2014/07/23 21:06:09, spang wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-24 14:11:23 UTC) #19
spang
On 2014/07/24 14:11:23, sadrul wrote: > On 2014/07/23 21:14:08, sadrul wrote: > > On 2014/07/23 ...
6 years, 5 months ago (2014-07-24 19:23:24 UTC) #20
spang
https://codereview.chromium.org/403263002/diff/320001/ui/platform_window/DEPS File ui/platform_window/DEPS (right): https://codereview.chromium.org/403263002/diff/320001/ui/platform_window/DEPS#newcode4 ui/platform_window/DEPS:4: "+ui/ozone", ui/ozone/public
6 years, 5 months ago (2014-07-24 19:23:36 UTC) #21
sadrul
https://codereview.chromium.org/403263002/diff/320001/ui/platform_window/DEPS File ui/platform_window/DEPS (right): https://codereview.chromium.org/403263002/diff/320001/ui/platform_window/DEPS#newcode4 ui/platform_window/DEPS:4: "+ui/ozone", On 2014/07/24 19:23:36, spang wrote: > ui/ozone/public Whoops. ...
6 years, 5 months ago (2014-07-24 20:37:34 UTC) #22
sadrul
ben@: ping
6 years, 4 months ago (2014-07-29 04:19:17 UTC) #23
Ben Goodger (Google)
On 2014/07/29 04:19:17, sadrul wrote: > ben@: ping What didn't work out about splitting the ...
6 years, 4 months ago (2014-07-31 20:21:53 UTC) #24
spang
On 2014/07/31 20:21:53, Ben Goodger (Google) wrote: > On 2014/07/29 04:19:17, sadrul wrote: > > ...
6 years, 4 months ago (2014-07-31 20:34:21 UTC) #25
sadrul
On 2014/07/31 20:21:53, Ben Goodger (Google) wrote: > On 2014/07/29 04:19:17, sadrul wrote: > > ...
6 years, 4 months ago (2014-07-31 20:35:52 UTC) #26
spang
On 2014/07/31 20:34:21, spang wrote: > On 2014/07/31 20:21:53, Ben Goodger (Google) wrote: > > ...
6 years, 4 months ago (2014-07-31 20:36:14 UTC) #27
spang
On 2014/07/31 20:35:52, sadrul wrote: > On 2014/07/31 20:21:53, Ben Goodger (Google) wrote: > > ...
6 years, 4 months ago (2014-07-31 20:46:33 UTC) #28
sadrul
On 2014/07/31 20:46:33, spang wrote: > On 2014/07/31 20:35:52, sadrul wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 20:54:10 UTC) #29
spang
On 2014/07/31 20:54:10, sadrul wrote: > On 2014/07/31 20:46:33, spang wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 21:07:45 UTC) #30
sadrul
On 2014/07/31 21:07:45, spang wrote: > On 2014/07/31 20:54:10, sadrul wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 21:35:57 UTC) #31
sadrul
On 2014/07/31 21:35:57, sadrul wrote: > On 2014/07/31 21:07:45, spang wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-07-31 21:36:39 UTC) #32
spang
On 2014/07/31 21:35:57, sadrul wrote: > On 2014/07/31 21:07:45, spang wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-08-01 17:34:44 UTC) #33
spang
On 2014/08/01 17:34:44, spang wrote: > On 2014/07/31 21:35:57, sadrul wrote: > > On 2014/07/31 ...
6 years, 4 months ago (2014-08-01 17:38:05 UTC) #34
spang
On Fri, Aug 1, 2014 at 1:38 PM, <spang@chromium.org> wrote: > On 2014/08/01 17:34:44, spang ...
6 years, 4 months ago (2014-08-01 17:48:03 UTC) #35
rjkroege
sadrul: kill it or finish it? On 2014/08/01 17:48:03, spang wrote: > On Fri, Aug ...
5 years, 4 months ago (2015-08-13 18:15:26 UTC) #36
sadrul
5 years, 4 months ago (2015-08-13 18:31:50 UTC) #37
On 2015/08/13 18:15:26, rjkroege wrote:
> sadrul: kill it or finish it?

view_manager has already been cleaned up
(https://codereview.chromium.org/1180573004,
https://codereview.chromium.org/1216113004), without using a factory. Similar
change can be made for WindowTreeHost* in aura (would reduce some code dup, and
avoid more dup for android-aura: https://codereview.chromium.org/1284343005/).

Powered by Google App Engine
This is Rietveld 408576698