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

Issue 801953002: Use template specialization to generate WindowProperty code (Closed)

Created:
6 years ago by oshima
Modified:
5 years, 11 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use template specialization to generate WindowProperty code. They used to be a inlined function in the header, which led to code generation when method is used. This changes the code generation only in DECLARE_WINDOW_PROPERTY_TYPE(). BUG=None R=sadrul@chromium.org Committed: https://crrev.com/f62e152bb7a13135a597d9766eb79551d3a24a73 Cr-Commit-Position: refs/heads/master@{#309252} Committed: https://crrev.com/3d8840e01a5c8fbe45b492ce29c9eb34d17eeb25 Cr-Commit-Position: refs/heads/master@{#310179}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : addressed comment. nullptr in window_property.h #

Patch Set 8 : update type decls. some are not necessary, and some were missing #

Patch Set 9 : use namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -76 lines) Patch
M ash/shelf/shelf_util.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M ash/touch/touch_uma.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ash/wm/system_modal_container_layout_manager.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M ash/wm/window_properties.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M athena/extensions/athena_constrained_window_views_client.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M athena/screen/modal_window_controller.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M athena/screen/screen_manager_impl.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M athena/util/fill_layout_manager.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M athena/wm/window_list_provider_impl.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/client/focus_client.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
M ui/aura/window_property.h View 1 2 3 4 5 6 7 8 2 chunks +52 lines, -38 lines 0 comments Download
M ui/aura/window_unittest.cc View 1 2 3 4 5 6 7 2 chunks +23 lines, -22 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M ui/wm/core/transient_window_manager.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ui/wm/core/window_animations.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 48 (16 generated)
oshima
6 years ago (2014-12-12 22:11:33 UTC) #1
sadrul
Does this make it possible for external code to Set/Get this property? If so, I ...
6 years ago (2014-12-15 17:13:39 UTC) #2
oshima
On 2014/12/15 17:13:39, sadrul wrote: > Does this make it possible for external code to ...
6 years ago (2014-12-15 21:20:11 UTC) #3
sadrul
On 2014/12/15 21:20:11, oshima wrote: > On 2014/12/15 17:13:39, sadrul wrote: > > Does this ...
6 years ago (2014-12-15 21:50:46 UTC) #4
oshima
ok that makes sense. Updated the CL. PTAL.
6 years ago (2014-12-15 22:48:42 UTC) #6
sadrul
https://codereview.chromium.org/801953002/diff/40001/ui/views/views.gyp File ui/views/views.gyp (right): https://codereview.chromium.org/801953002/diff/40001/ui/views/views.gyp#newcode415 ui/views/views.gyp:415: 'widget/desktop_aura/desktop_native_widget_property.cc', I think you missed this file?
6 years ago (2014-12-15 22:53:09 UTC) #7
oshima
https://codereview.chromium.org/801953002/diff/40001/ui/views/views.gyp File ui/views/views.gyp (right): https://codereview.chromium.org/801953002/diff/40001/ui/views/views.gyp#newcode415 ui/views/views.gyp:415: 'widget/desktop_aura/desktop_native_widget_property.cc', On 2014/12/15 22:53:09, sadrul wrote: > I think ...
6 years ago (2014-12-15 22:57:47 UTC) #8
sadrul
Could you explain a little more what problem this change fixes? What/where are the dup ...
6 years ago (2014-12-16 17:25:17 UTC) #9
oshima
window_property is used to instantiate template specializationm, so it creates the symbol for GetProperty(kShowStateKey) as ...
6 years ago (2014-12-16 21:09:12 UTC) #10
sadrul
On 2014/12/16 21:09:12, oshima wrote: > window_property is used to instantiate template specializationm, so it ...
6 years ago (2014-12-16 22:20:11 UTC) #11
oshima
On 2014/12/16 22:20:11, sadrul wrote: > On 2014/12/16 21:09:12, oshima wrote: > > window_property is ...
6 years ago (2014-12-16 22:36:21 UTC) #12
sadrul
+sky@ On 2014/12/16 22:36:21, oshima wrote: > On 2014/12/16 22:20:11, sadrul wrote: > > On ...
6 years ago (2014-12-17 19:42:00 UTC) #14
sky
LGTM I feel this is all crap too. Hopefully we can straighten that out separately ...
6 years ago (2014-12-18 00:37:52 UTC) #15
oshima
I think I took wrong approach. Changed the window_property to generate the code only when ...
6 years ago (2014-12-18 17:05:41 UTC) #19
sky
Yes, much, thanks. LGTM https://codereview.chromium.org/801953002/diff/180001/ui/aura/window_unittest.cc File ui/aura/window_unittest.cc (right): https://codereview.chromium.org/801953002/diff/180001/ui/aura/window_unittest.cc#newcode55 ui/aura/window_unittest.cc:55: virtual ~TestProperty() { nit: no ...
6 years ago (2014-12-18 17:46:08 UTC) #20
oshima
https://codereview.chromium.org/801953002/diff/180001/ui/aura/window_unittest.cc File ui/aura/window_unittest.cc (right): https://codereview.chromium.org/801953002/diff/180001/ui/aura/window_unittest.cc#newcode55 ui/aura/window_unittest.cc:55: virtual ~TestProperty() { On 2014/12/18 17:46:08, sky wrote: > ...
6 years ago (2014-12-18 18:14:43 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801953002/200001
6 years ago (2014-12-18 18:16:21 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/44368)
6 years ago (2014-12-18 18:34:50 UTC) #25
oshima
I had to update a few more ash / athena files, and wth files which ...
6 years ago (2014-12-19 20:07:55 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801953002/330001
6 years ago (2014-12-19 20:08:49 UTC) #34
commit-bot: I haz the power
Committed patchset #8 (id:330001)
6 years ago (2014-12-19 20:51:36 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/f62e152bb7a13135a597d9766eb79551d3a24a73 Cr-Commit-Position: refs/heads/master@{#309252}
6 years ago (2014-12-19 20:53:08 UTC) #36
Chirantan Ekbote
A revert of this CL (patchset #8 id:330001) has been created in https://codereview.chromium.org/814313002/ by chirantan@chromium.org. ...
6 years ago (2014-12-19 22:23:42 UTC) #37
oshima
Thanks, looks like the waterfall has different compiler options than CQ/try bots :( On Fri, ...
6 years ago (2014-12-20 18:02:14 UTC) #38
tfarina
On 2014/12/20 18:02:14, oshima (OOO Dec 18 - Jan 4) wrote: > Thanks, looks like ...
6 years ago (2014-12-20 18:49:42 UTC) #39
tfarina
On 2014/12/20 18:02:14, oshima (OOO Dec 18 - Jan 4) wrote: > Thanks, looks like ...
6 years ago (2014-12-20 18:50:56 UTC) #40
oshima
On 2014/12/20 18:50:56, tfarina wrote: > On 2014/12/20 18:02:14, oshima (OOO Dec 18 - Jan ...
6 years ago (2014-12-20 20:18:54 UTC) #42
oshima
sky@, can you take another look? Here is the difference from original CL. https://codereview.chromium.org/801953002/diff2/330001:370001/ui/aura/window_property.h
5 years, 11 months ago (2015-01-06 23:20:59 UTC) #43
sky
SLGTM
5 years, 11 months ago (2015-01-06 23:24:10 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/801953002/370001
5 years, 11 months ago (2015-01-06 23:27:15 UTC) #46
commit-bot: I haz the power
Committed patchset #9 (id:370001)
5 years, 11 months ago (2015-01-07 00:18:52 UTC) #47
commit-bot: I haz the power
5 years, 11 months ago (2015-01-07 00:20:05 UTC) #48
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3d8840e01a5c8fbe45b492ce29c9eb34d17eeb25
Cr-Commit-Position: refs/heads/master@{#310179}

Powered by Google App Engine
This is Rietveld 408576698