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

Issue 9254046: Custom frame UI for platform apps on Windows. (Closed)

Created:
8 years, 11 months ago by jeremya
Modified:
8 years, 10 months ago
CC:
chromium-reviews, penghuang+watch_chromium.org, yusukes+watch_chromium.org, jam, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, James Su, cpu_(ooo_6.6-7.5), benwells
Visibility:
Public.

Description

Custom frame UI for platform apps on Windows. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=121408

Patch Set 1 #

Total comments: 2

Patch Set 2 : comments #

Patch Set 3 : rebase #

Total comments: 6

Patch Set 4 : Rearchitect to use NonClientFrameView #

Total comments: 3

Patch Set 5 : InitParam #

Patch Set 6 : Change DEFICA call sites #

Total comments: 16

Patch Set 7 : comments #

Total comments: 2

Patch Set 8 : comment #

Patch Set 9 : trybots #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -7 lines) Patch
M chrome/browser/ui/views/extensions/extension_view.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_view.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/extensions/shell_window_views.cc View 1 2 3 4 5 6 7 8 4 chunks +109 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 4 5 6 7 8 5 chunks +7 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 3 chunks +22 lines, -1 line 1 comment Download
M ui/views/widget/native_widget_win.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 6 chunks +16 lines, -3 lines 0 comments Download
M ui/views/widget/widget.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/views/widget/widget.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
jeremya
beng- could you look at the windows API and Views hackery? mpcomplete- i think you're ...
8 years, 11 months ago (2012-01-19 23:52:15 UTC) #1
Matt Perry
https://chromiumcodereview.appspot.com/9254046/diff/1/chrome/browser/ui/views/extensions/extension_view.h File chrome/browser/ui/views/extensions/extension_view.h (right): https://chromiumcodereview.appspot.com/9254046/diff/1/chrome/browser/ui/views/extensions/extension_view.h#newcode32 chrome/browser/ui/views/extensions/extension_view.h:32: virtual void OnRenderViewSizeChanged() {} this method name is confusing. ...
8 years, 11 months ago (2012-01-20 00:22:47 UTC) #2
jeremya
https://chromiumcodereview.appspot.com/9254046/diff/1/chrome/browser/ui/views/extensions/extension_view.h File chrome/browser/ui/views/extensions/extension_view.h (right): https://chromiumcodereview.appspot.com/9254046/diff/1/chrome/browser/ui/views/extensions/extension_view.h#newcode32 chrome/browser/ui/views/extensions/extension_view.h:32: virtual void OnRenderViewSizeChanged() {} On 2012/01/20 00:22:47, Matt Perry ...
8 years, 11 months ago (2012-01-20 00:59:49 UTC) #3
Matt Perry
lgtm
8 years, 11 months ago (2012-01-20 01:04:43 UTC) #4
Ben Goodger (Google)
So, what I think you should be able to do is: - create a regular ...
8 years, 11 months ago (2012-01-26 23:03:45 UTC) #5
jeremya
I don't think I can use NonClientFrameView, since I need to respond very specifically to ...
8 years, 11 months ago (2012-01-26 23:15:56 UTC) #6
beng (no_code_reviews)
Is it that you think you have to call DwmExtendFrameIntoClientArea() in WM_NCCALCSIZE or that you ...
8 years, 11 months ago (2012-01-26 23:37:41 UTC) #7
jeremya
On 2012/01/26 23:37:41, beng wrote: > Is it that you think you have to call ...
8 years, 11 months ago (2012-01-26 23:39:48 UTC) #8
beng (no_code_reviews)
So, specifically: When you create the window, you want to send a frame change that'll ...
8 years, 11 months ago (2012-01-26 23:41:18 UTC) #9
jeremya
On 2012/01/26 23:41:18, beng wrote: > So, specifically: > > When you create the window, ...
8 years, 11 months ago (2012-01-26 23:46:34 UTC) #10
jeremya
On 2012/01/26 23:46:34, jeremya wrote: > On 2012/01/26 23:41:18, beng wrote: > > So, specifically: ...
8 years, 11 months ago (2012-01-26 23:49:19 UTC) #11
beng (no_code_reviews)
On Thu, Jan 26, 2012 at 3:49 PM, <jeremya@chromium.org> wrote: > Every calcsize I need ...
8 years, 11 months ago (2012-01-26 23:50:05 UTC) #12
jeremya
My bad -- it's not NCFV that does that. It's NativeWidgetWin::OnNCCalcSize. On Fri, Jan 27, ...
8 years, 11 months ago (2012-01-26 23:54:03 UTC) #13
beng (no_code_reviews)
So, I think we should fix NativeWidgetWin to handle your case. General comment is I ...
8 years, 11 months ago (2012-01-26 23:59:26 UTC) #14
jeremya
On Fri, Jan 27, 2012 at 10:59 AM, Ben Goodger <beng@google.com> wrote: > So, I ...
8 years, 11 months ago (2012-01-27 00:29:21 UTC) #15
beng (no_code_reviews)
oops you're right yes I had it backwards. Yes the code you show makes sense ...
8 years, 11 months ago (2012-01-27 01:38:58 UTC) #16
jeremya
Meanwhile: from where should I call DwmExtendFrameIntoClientArea? The only other place this is done is ...
8 years, 10 months ago (2012-02-01 23:46:15 UTC) #17
jeremya
Another problem: for windows to actually remove the standard frame, it needs to be convinced ...
8 years, 10 months ago (2012-02-02 04:19:02 UTC) #18
jeremya
I'm not sure the signal for 'Should remove standard frame' should come from the NonClientFrameView ...
8 years, 10 months ago (2012-02-06 00:58:32 UTC) #19
Ben Goodger (Google)
On 2012/02/01 23:46:15, jeremya wrote: > Meanwhile: from where should I call DwmExtendFrameIntoClientArea? The only ...
8 years, 10 months ago (2012-02-06 19:45:52 UTC) #20
jeremya
On Tue, Feb 7, 2012 at 6:45 AM, <ben@chromium.org> wrote: > On 2012/02/01 23:46:15, jeremya ...
8 years, 10 months ago (2012-02-07 00:35:53 UTC) #21
jeremya
On Tue, Feb 7, 2012 at 11:35 AM, Jeremy Apthorp <jeremya@chromium.org>wrote: > On Tue, Feb ...
8 years, 10 months ago (2012-02-07 02:39:19 UTC) #22
jeremya
Changed to use a Widget::InitParam.
8 years, 10 months ago (2012-02-07 04:25:04 UTC) #23
Ben Goodger (Google)
https://chromiumcodereview.appspot.com/9254046/diff/22003/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): https://chromiumcodereview.appspot.com/9254046/diff/22003/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode27 chrome/browser/ui/views/extensions/shell_window_views.cc:27: explicit ShellWindowFrameView(); no explicit https://chromiumcodereview.appspot.com/9254046/diff/22003/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode39 chrome/browser/ui/views/extensions/shell_window_views.cc:39: }; private: DISALLOW_COPY_AND.. ...
8 years, 10 months ago (2012-02-07 20:18:57 UTC) #24
jeremya
http://codereview.chromium.org/9254046/diff/22003/chrome/browser/ui/views/extensions/shell_window_views.cc File chrome/browser/ui/views/extensions/shell_window_views.cc (right): http://codereview.chromium.org/9254046/diff/22003/chrome/browser/ui/views/extensions/shell_window_views.cc#newcode27 chrome/browser/ui/views/extensions/shell_window_views.cc:27: explicit ShellWindowFrameView(); On 2012/02/07 20:18:57, Ben Goodger (Google) wrote: ...
8 years, 10 months ago (2012-02-08 00:35:16 UTC) #25
Ben Goodger (Google)
http://codereview.chromium.org/9254046/diff/28001/ui/views/widget/native_widget_win.cc File ui/views/widget/native_widget_win.cc (right): http://codereview.chromium.org/9254046/diff/28001/ui/views/widget/native_widget_win.cc#newcode555 ui/views/widget/native_widget_win.cc:555: UpdateDWMFrame(); Rather than call this here, and in OnCreate() ...
8 years, 10 months ago (2012-02-09 19:21:05 UTC) #26
jeremya
http://codereview.chromium.org/9254046/diff/28001/ui/views/widget/native_widget_win.cc File ui/views/widget/native_widget_win.cc (right): http://codereview.chromium.org/9254046/diff/28001/ui/views/widget/native_widget_win.cc#newcode555 ui/views/widget/native_widget_win.cc:555: UpdateDWMFrame(); On 2012/02/09 19:21:06, Ben Goodger (Google) wrote: > ...
8 years, 10 months ago (2012-02-09 23:15:50 UTC) #27
Ben Goodger (Google)
Great. LGTM.
8 years, 10 months ago (2012-02-10 01:01:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/9254046/33001
8 years, 10 months ago (2012-02-10 02:04:02 UTC) #29
commit-bot: I haz the power
Try job failure for 9254046-33001 (retry) on linux_rel for step "check_deps". It's a second try, ...
8 years, 10 months ago (2012-02-10 03:00:46 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jeremya@chromium.org/9254046/37003
8 years, 10 months ago (2012-02-10 04:09:22 UTC) #31
commit-bot: I haz the power
Change committed as 121408
8 years, 10 months ago (2012-02-10 05:33:24 UTC) #32
Ben Goodger (Google)
LGTM
8 years, 10 months ago (2012-02-15 02:06:47 UTC) #33
sail
8 years, 10 months ago (2012-02-24 04:19:09 UTC) #34
http://codereview.chromium.org/9254046/diff/37003/content/browser/renderer_ho...
File content/browser/renderer_host/render_widget_host_view_win.cc (right):

http://codereview.chromium.org/9254046/diff/37003/content/browser/renderer_ho...
content/browser/renderer_host/render_widget_host_view_win.cc:1155:
transparent_region_.release();
quick question, why do you need to do a release here? Won't this cause a memory
leak?

Powered by Google App Engine
This is Rietveld 408576698