tapted for apps specific stuff (and anything else you wanna look at) sadrul for the ...
6 years, 8 months ago
(2014-04-03 07:37:02 UTC)
#1
tapted for apps specific stuff (and anything else you wanna look at)
sadrul for the crazy native widget / tree host stuff. Please reassign if there
is a better reviewer for the windows stuff.
sadrul
+sky@ On 2014/04/03 07:37:02, benwells wrote: > tapted for apps specific stuff (and anything else ...
6 years, 8 months ago
(2014-04-03 17:10:55 UTC)
#2
+sky@
On 2014/04/03 07:37:02, benwells wrote:
> tapted for apps specific stuff (and anything else you wanna look at)
> sadrul for the crazy native widget / tree host stuff. Please reassign if there
> is a better reviewer for the windows stuff.
I looked at the code, but the Windows code includes things I am not familiar
with. So redirecting to sky@
tapted
sorry I am not awesomely familiar with the Windows APIs either, so maybe some silly ...
6 years, 8 months ago
(2014-04-03 19:40:24 UTC)
#3
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h File chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h (right): https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h#newcode39 chrome/browser/ui/views/apps/app_window_desktop_native_widget_aura_win.h:39: AppWindowDesktopWindowTreeHostWin* app_window_desktop_window_tree_host_; Is there a reason you need as ...
6 years, 8 months ago
(2014-04-03 19:43:55 UTC)
#4
lgtm https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/glass_app_window_frame_view.cc File chrome/browser/ui/views/apps/glass_app_window_frame_view.cc (right): https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/apps/glass_app_window_frame_view.cc#newcode34 chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:34: int frame_size = GetSystemMetrics(SM_CXSIZEFRAME) - 1; On 2014/04/04 ...
6 years, 8 months ago
(2014-04-04 16:15:18 UTC)
#6
lgtm
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
File chrome/browser/ui/views/apps/glass_app_window_frame_view.cc (right):
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:34: int frame_size =
GetSystemMetrics(SM_CXSIZEFRAME) - 1;
On 2014/04/04 06:50:43, benwells wrote:
> On 2014/04/03 19:40:24, tapted wrote:
> > Can GetSystemMetrics ever fail/ return 0?
>
> According to MSDN if it fails it will return 0. It does not mention why it
would
> fail, the only thing I can think of is if you give it a bad metric, but maybe
> there are other cases (e.g. your system is totally screwed).
>
> I now make sure the insets are min 1. I tested what happens in these cases and
> it isn't great but there are no explosions. Not that the normal chrome frame
> will also be pretty broken in these cases. (From testing, if the insets are 0
> there are explosions as the view size at widget initialization is 0,0)
cool - wild conjecture: maybe this is the explanation for having to subtract 1
(otherwise the function could never return 0 without the possibility of someone
thinking it an error..)
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:112:
min_size.Enlarge(0, client_bounds.y());
On 2014/04/03 19:40:24, tapted wrote:
> why just the y? (should x always be 0?)
there was one last question :). But I think I grok it.
sky
LGTM
6 years, 8 months ago
(2014-04-04 17:09:00 UTC)
#7
6 years, 8 months ago
(2014-04-08 04:38:36 UTC)
#8
On 2014/04/04 16:15:18, tapted wrote:
> lgtm
>
>
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
> File chrome/browser/ui/views/apps/glass_app_window_frame_view.cc (right):
>
>
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
> chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:34: int frame_size
=
> GetSystemMetrics(SM_CXSIZEFRAME) - 1;
> On 2014/04/04 06:50:43, benwells wrote:
> > On 2014/04/03 19:40:24, tapted wrote:
> > > Can GetSystemMetrics ever fail/ return 0?
> >
> > According to MSDN if it fails it will return 0. It does not mention why it
> would
> > fail, the only thing I can think of is if you give it a bad metric, but
maybe
> > there are other cases (e.g. your system is totally screwed).
> >
> > I now make sure the insets are min 1. I tested what happens in these cases
and
> > it isn't great but there are no explosions. Not that the normal chrome frame
> > will also be pretty broken in these cases. (From testing, if the insets are
0
> > there are explosions as the view size at widget initialization is 0,0)
>
> cool - wild conjecture: maybe this is the explanation for having to subtract 1
> (otherwise the function could never return 0 without the possibility of
someone
> thinking it an error..)
>
>
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
> chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:112:
> min_size.Enlarge(0, client_bounds.y());
> On 2014/04/03 19:40:24, tapted wrote:
> > why just the y? (should x always be 0?)
>
> there was one last question :). But I think I grok it.
I missed that. It actually looks like a bug to me...
benwells
On 2014/04/08 04:38:36, benwells wrote: > On 2014/04/04 16:15:18, tapted wrote: > > lgtm > ...
6 years, 8 months ago
(2014-04-08 19:21:50 UTC)
#9
On 2014/04/08 04:38:36, benwells wrote:
> On 2014/04/04 16:15:18, tapted wrote:
> > lgtm
> >
> >
>
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
> > File chrome/browser/ui/views/apps/glass_app_window_frame_view.cc (right):
> >
> >
>
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
> > chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:34: int
frame_size
> =
> > GetSystemMetrics(SM_CXSIZEFRAME) - 1;
> > On 2014/04/04 06:50:43, benwells wrote:
> > > On 2014/04/03 19:40:24, tapted wrote:
> > > > Can GetSystemMetrics ever fail/ return 0?
> > >
> > > According to MSDN if it fails it will return 0. It does not mention why it
> > would
> > > fail, the only thing I can think of is if you give it a bad metric, but
> maybe
> > > there are other cases (e.g. your system is totally screwed).
> > >
> > > I now make sure the insets are min 1. I tested what happens in these cases
> and
> > > it isn't great but there are no explosions. Not that the normal chrome
frame
> > > will also be pretty broken in these cases. (From testing, if the insets
are
> 0
> > > there are explosions as the view size at widget initialization is 0,0)
> >
> > cool - wild conjecture: maybe this is the explanation for having to subtract
1
> > (otherwise the function could never return 0 without the possibility of
> someone
> > thinking it an error..)
> >
> >
>
https://codereview.chromium.org/213743017/diff/20001/chrome/browser/ui/views/...
> > chrome/browser/ui/views/apps/glass_app_window_frame_view.cc:112:
> > min_size.Enlarge(0, client_bounds.y());
> > On 2014/04/03 19:40:24, tapted wrote:
> > > why just the y? (should x always be 0?)
> >
> > there was one last question :). But I think I grok it.
>
> I missed that. It actually looks like a bug to me...
Hmm, can't really test this at the moment as I'm only on RDP. I'll land it as is
and check / fix it when back home.
benwells
The CQ bit was checked by benwells@chromium.org
6 years, 8 months ago
(2014-04-08 19:22:07 UTC)
#10
Issue 213743017: Remove title and icon from chrome apps native style title bars.
(Closed)
Created 6 years, 8 months ago by benwells
Modified 6 years, 8 months ago
Reviewers: tapted, sky, Matt Giuca
Base URL: https://chromium.googlesource.com/chromium/src.git@master
Comments: 36