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

Issue 36953002: views: Support Desktop Aura creation on Ozone (Closed)

Created:
7 years, 2 months ago by vignatti (out of this project)
Modified:
5 years, 10 months ago
CC:
chromium-reviews, tfarina, dnicoara, ozone-dev_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

views: Support Desktop Aura creation on Ozone This CL creates classes BrowserDesktopRootWindowHostOzone and DesktopRootWindowHostOzone to support for Aura Ozone implementations based on views. Different than other Aura platforms, DesktopRootWindowHostOzone is an abstract class where it delegates the construction and also all its methods for the native Ozone implementation. A pointer called drwh_ozone_ is used for storing the implementation vtable. The Ozone implementation is actually the responsible for implementing DRWHOzone, but the implementation class cannot derivate from DRWHOzone since such class was already inherited by a different scope, BrowserDesktopRootWindowHostOzone. Therefore the implementation class has to simply create another class with the same classes derivation as in DRWHOzone. In particular, this CL gives support for Chromium browser in Ozone-Wayland. BUG=295089

Patch Set 1 #

Patch Set 2 : creating BrowserDesktopRootWindowHostOzone instead #

Total comments: 2

Patch Set 3 : implementing with DesktopRootWindowHostOzone class instead #

Total comments: 6

Patch Set 4 : fix Elliot's concerns #

Patch Set 5 : fix Elliot's concerns #

Patch Set 6 : trying one more time upload the same set due "HTTP Error 500: Internal Server Error" #

Total comments: 3

Patch Set 7 : without cast, as suggested by Elliot #

Unified diffs Side-by-side diffs Delta from patch set Stats (+562 lines, -6 lines) Patch
A chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/views.gyp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_factory_ozone.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A ui/views/widget/desktop_aura/desktop_root_window_host_ozone.h View 1 2 3 1 chunk +127 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc View 1 2 3 4 5 6 1 chunk +342 lines, -3 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
vignatti (out of this project)
7 years, 2 months ago (2013-10-23 13:49:26 UTC) #1
James Cook
I'm not the right reviewer for this change - I don't know much about desktop ...
7 years, 2 months ago (2013-10-23 16:51:46 UTC) #2
rjkroege
On 2013/10/23 16:51:46, James Cook wrote: > I'm not the right reviewer for this change ...
7 years, 2 months ago (2013-10-23 18:47:48 UTC) #3
James Cook
-sky erg, are you the right person to look at this?
7 years, 2 months ago (2013-10-23 19:26:01 UTC) #4
Elliot Glaysher
+sky Readding sky. I am wary of the implementation of BDRWHLinux ::AsDesktopRootWindowHost(). You're returning a ...
7 years, 2 months ago (2013-10-23 22:20:58 UTC) #5
sky
This is such a hack (and I suspect it leaks too). Why not create a ...
7 years, 2 months ago (2013-10-23 22:56:48 UTC) #6
vignatti (out of this project)
On 2013/10/23 22:56:48, sky wrote: > This is such a hack (and I suspect it ...
7 years, 2 months ago (2013-10-24 09:14:05 UTC) #7
vignatti (out of this project)
On 2013/10/24 09:14:05, vignatti wrote: > On 2013/10/23 22:56:48, sky wrote: > > This is ...
7 years, 1 month ago (2013-10-28 12:51:01 UTC) #8
Elliot Glaysher
https://codereview.chromium.org/36953002/diff/120001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/120001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode31 chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc:31: return desktop_root_window_host_; You haven't fixed the major problem here. ...
7 years, 1 month ago (2013-10-28 19:50:00 UTC) #9
vignatti (out of this project)
https://codereview.chromium.org/36953002/diff/120001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/120001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode31 chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc:31: return desktop_root_window_host_; On 2013/10/28 19:50:00, Elliot Glaysher wrote: > ...
7 years, 1 month ago (2013-10-29 16:08:38 UTC) #10
rjkroege
On 2013/10/29 16:08:38, vignatti wrote: > https://codereview.chromium.org/36953002/diff/120001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc > File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc > (right): > > https://codereview.chromium.org/36953002/diff/120001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode31 ...
7 years, 1 month ago (2013-10-29 19:32:54 UTC) #11
vignatti (out of this project)
alright, another try now after the long pause here. PTAL in Patch Set 3 now ...
7 years, 1 month ago (2013-11-22 18:15:30 UTC) #12
vignatti (out of this project)
On 2013/11/22 18:15:30, vignatti wrote: > alright, another try now after the long pause here. ...
7 years, 1 month ago (2013-11-22 18:17:05 UTC) #13
Elliot Glaysher
https://codereview.chromium.org/36953002/diff/190001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/190001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode42 chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc:42: void BrowserDesktopRootWindowHostOzone::Init( You don't need to override these methods ...
7 years, 1 month ago (2013-11-22 18:50:04 UTC) #14
vignatti (out of this project)
Thanks for the review! PTAL. https://codereview.chromium.org/36953002/diff/190001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/190001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode42 chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc:42: void BrowserDesktopRootWindowHostOzone::Init( On 2013/11/22 ...
7 years, 1 month ago (2013-11-22 19:54:19 UTC) #15
Elliot Glaysher
Please reupload. I can't see several of the files.
7 years, 1 month ago (2013-11-22 20:21:57 UTC) #16
vignatti (out of this project)
On 2013/11/22 20:21:57, Elliot Glaysher wrote: > Please reupload. I can't see several of the ...
7 years, 1 month ago (2013-11-22 21:10:29 UTC) #17
Elliot Glaysher
https://codereview.chromium.org/36953002/diff/430001/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc File ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/430001/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc#newcode24 ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc:24: drwh_ozone_ = (DesktopRootWindowHostOzone *) Why are you doing this ...
7 years, 1 month ago (2013-11-22 21:19:37 UTC) #18
kalyank
https://codereview.chromium.org/36953002/diff/430001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/430001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode48 chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc:48: return new BrowserDesktopRootWindowHostOzone(native_widget_delegate, Why not use the existing DesktopFactory ...
7 years, 1 month ago (2013-11-23 12:11:52 UTC) #19
vignatti (out of this project)
https://codereview.chromium.org/36953002/diff/430001/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc File ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc (right): https://codereview.chromium.org/36953002/diff/430001/ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc#newcode24 ui/views/widget/desktop_aura/desktop_root_window_host_ozone.cc:24: drwh_ozone_ = (DesktopRootWindowHostOzone *) On 2013/11/22 21:19:38, Elliot Glaysher ...
7 years ago (2013-11-25 20:41:30 UTC) #20
vignatti (out of this project)
On 2013/11/23 12:11:52, kalyank wrote: > https://codereview.chromium.org/36953002/diff/430001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc > File chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc > (right): > > https://codereview.chromium.org/36953002/diff/430001/chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.cc#newcode48 ...
7 years ago (2013-11-25 22:44:23 UTC) #21
kalyank
On 2013/11/25 22:44:23, vignatti wrote: > On 2013/11/23 12:11:52, kalyank wrote: > > > But ...
7 years ago (2013-11-26 05:06:10 UTC) #22
vignatti (out of this project)
On 2013/11/26 05:06:10, kalyank wrote: > On 2013/11/25 22:44:23, vignatti wrote: > > On 2013/11/23 ...
7 years ago (2013-11-26 11:43:08 UTC) #23
rjkroege
sadrul@: can you evaluate this from the viewpoint of the refactoring that we discussed?
7 years ago (2013-11-26 22:14:45 UTC) #24
Elliot Glaysher
At this point, I think you should work with Robert to work through the issues ...
7 years ago (2013-11-26 22:29:46 UTC) #25
vignatti (out of this project)
Thanks erg@. I'm adding sadrul@ now -- please check rjkroege@ message above.
7 years ago (2013-11-27 11:38:29 UTC) #26
rjkroege
On 2013/11/27 11:38:29, vignatti wrote: > Thanks erg@. I'm adding sadrul@ now -- please check ...
6 years, 5 months ago (2014-07-14 22:09:08 UTC) #27
vignatti (out of this project)
On 2014/07/14 22:09:08, rjkroege wrote: > On 2013/11/27 11:38:29, vignatti wrote: > > Thanks erg@. ...
6 years, 5 months ago (2014-07-16 18:52:17 UTC) #28
kalyank
6 years, 5 months ago (2014-07-17 06:43:34 UTC) #29
On 2014/07/16 18:52:17, vignatti wrote:
> On 2014/07/14 22:09:08, rjkroege wrote:
> > On 2013/11/27 11:38:29, vignatti wrote:
> > > Thanks erg@. I'm adding sadrul@ now -- please check rjkroege@ message
above.
> > 
> > Now that we've landed PlatformWindow, you should be able to restructure
this?
> 
> I've been following the PlatformWindow changes but unfortunately to track back
> them in desktop aura side would be a low-priority task for me. I hope someone
> could pick this work from me in the mean time.
> 
> Thanks for the reminding.

I can take it up, if no one handles this before August 10th (I am on vacation
till August 10th)

Powered by Google App Engine
This is Rietveld 408576698