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

Issue 2222703002: Aura Icon Capture (Closed)

Created:
4 years, 4 months ago by qiangchen
Modified:
4 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, sadrul, tfarina, feature-media-reviews_chromium.org, mcasas+watch+vc_chromium.org, kalyank, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Aura Icon Capture For better usability, we wants to display icon for window capture. In this CL, we store the window icon into Aura::Window for aura windows. In the future CL, we will use display the icon onto the UI. BUG=631604 Committed: https://crrev.com/c18dd6cae23fdfc04d3b5d2e3e38b122c06583dd Cr-Commit-Position: refs/heads/master@{#411095}

Patch Set 1 : Add Icons To Aura::Window #

Total comments: 8

Patch Set 2 : Using SetProperty #

Total comments: 6

Patch Set 3 : Remove duplicate code #

Total comments: 2

Patch Set 4 : Clear Property When Null #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -3 lines) Patch
M ui/aura/client/aura_constants.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 2 chunks +18 lines, -1 line 0 comments Download

Messages

Total messages: 33 (20 generated)
qiangchen
Can you take a look? Thanks.
4 years, 4 months ago (2016-08-08 17:26:13 UTC) #8
sky
Also, please update the bug to include a screenshot of what you are after. https://codereview.chromium.org/2222703002/diff/20001/ui/aura/window.h ...
4 years, 4 months ago (2016-08-08 19:19:47 UTC) #9
qiangchen
Updated the bug. But I encountered some difficulty when trying to use SetProperty, as the ...
4 years, 4 months ago (2016-08-09 16:48:40 UTC) #10
sky
https://codereview.chromium.org/2222703002/diff/20001/ui/aura/window.h File ui/aura/window.h (right): https://codereview.chromium.org/2222703002/diff/20001/ui/aura/window.h#newcode113 ui/aura/window.h:113: const gfx::ImageSkia icon() const { return icon_; } On ...
4 years, 4 months ago (2016-08-09 19:12:11 UTC) #11
qiangchen
Fixed. Thanks. https://codereview.chromium.org/2222703002/diff/20001/ui/aura/window.h File ui/aura/window.h (right): https://codereview.chromium.org/2222703002/diff/20001/ui/aura/window.h#newcode113 ui/aura/window.h:113: const gfx::ImageSkia icon() const { return icon_; ...
4 years, 4 months ago (2016-08-09 21:10:28 UTC) #14
sky
https://codereview.chromium.org/2222703002/diff/60001/ui/aura/client/aura_constants.cc File ui/aura/client/aura_constants.cc (right): https://codereview.chromium.org/2222703002/diff/60001/ui/aura/client/aura_constants.cc#newcode42 ui/aura/client/aura_constants.cc:42: DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::ImageSkia, kWindowIconKey, NULL); NULL -> nullptr https://codereview.chromium.org/2222703002/diff/60001/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc File ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ...
4 years, 4 months ago (2016-08-09 21:24:27 UTC) #16
qiangchen
fixed https://codereview.chromium.org/2222703002/diff/60001/ui/aura/client/aura_constants.cc File ui/aura/client/aura_constants.cc (right): https://codereview.chromium.org/2222703002/diff/60001/ui/aura/client/aura_constants.cc#newcode42 ui/aura/client/aura_constants.cc:42: DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::ImageSkia, kWindowIconKey, NULL); On 2016/08/09 21:24:27, sky wrote: ...
4 years, 4 months ago (2016-08-09 22:07:35 UTC) #18
sky
https://codereview.chromium.org/2222703002/diff/100001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/2222703002/diff/100001/ui/views/widget/native_widget_aura.cc#newcode108 ui/views/widget/native_widget_aura.cc:108: return; This should clear the property.
4 years, 4 months ago (2016-08-09 22:32:25 UTC) #21
qiangchen
Done. https://codereview.chromium.org/2222703002/diff/100001/ui/views/widget/native_widget_aura.cc File ui/views/widget/native_widget_aura.cc (right): https://codereview.chromium.org/2222703002/diff/100001/ui/views/widget/native_widget_aura.cc#newcode108 ui/views/widget/native_widget_aura.cc:108: return; On 2016/08/09 22:32:25, sky wrote: > This ...
4 years, 4 months ago (2016-08-09 22:53:55 UTC) #22
sky
LGTM
4 years, 4 months ago (2016-08-10 02:49:09 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2222703002/120001
4 years, 4 months ago (2016-08-10 18:21:48 UTC) #29
commit-bot: I haz the power
Committed patchset #4 (id:120001)
4 years, 4 months ago (2016-08-10 18:38:08 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-10 18:40:59 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/c18dd6cae23fdfc04d3b5d2e3e38b122c06583dd
Cr-Commit-Position: refs/heads/master@{#411095}

Powered by Google App Engine
This is Rietveld 408576698