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

Issue 216763002: DesktopWindowTreeHostX11::GetWindowBoundsInScreen returns window bounds. (Closed)

Created:
6 years, 9 months ago by Matt Giuca
Modified:
3 years, 3 months ago
CC:
chromium-reviews, tfarina, ben+views_chromium.org, benwells, chrome-apps-syd-reviews_chromium.org, sadrul, varkha
Visibility:
Public.

Description

DesktopWindowTreeHostX11::GetWindowBoundsInScreen returns window bounds. Previously it returned the client bounds. It now queries the X properties of the window to extend the client bounds by the border size. BUG=357533

Patch Set 1 #

Patch Set 2 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -20 lines) Patch
M extensions/browser/app_window/app_window_browsertest.cc View 1 2 chunks +8 lines, -20 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
Matt Giuca
Hi Elliot, As described by the bug, I caught this issue today trying to land ...
6 years, 9 months ago (2014-03-28 10:44:57 UTC) #1
Elliot Glaysher
First, this patch is correct. That said, this patch really *is* scary. XGetGeometry() and XTranslateCoordinates() ...
6 years, 9 months ago (2014-03-28 17:44:55 UTC) #2
Matt Giuca
On 2014/03/28 17:44:55, Elliot Glaysher wrote: > First, this patch is correct. > > That ...
6 years, 9 months ago (2014-03-28 21:04:30 UTC) #3
Matt Giuca
> That said, this patch really *is* scary. XGetGeometry() and > XTranslateCoordinates() block the world ...
6 years, 8 months ago (2014-04-08 01:57:22 UTC) #4
Elliot Glaysher
On 2014/04/08 01:57:22, Matt Giuca wrote: > > That said, this patch really *is* scary. ...
6 years, 8 months ago (2014-04-08 22:04:36 UTC) #5
Matt Giuca
sadrul, varkha: Do you have any opinions about the above plan before I implement it?
6 years, 8 months ago (2014-04-08 23:45:37 UTC) #6
varkha
pkotwicz@ was planning to implement the system-wide caching of X windows bounds and stacking order ...
6 years, 8 months ago (2014-04-09 00:35:23 UTC) #7
sadrul
For this particular case, can we keep track of the frame-extents in addition to the ...
6 years, 8 months ago (2014-04-09 00:56:38 UTC) #8
pkotwicz
A couple of things to maybe think about: - If we want to merge with ...
6 years, 8 months ago (2014-04-09 04:32:02 UTC) #9
Matt Giuca
On 2014/04/09 04:32:02, pkotwicz wrote: > A couple of things to maybe think about: > ...
6 years, 8 months ago (2014-04-09 05:54:01 UTC) #10
benwells
6 years, 8 months ago (2014-04-09 16:22:36 UTC) #11
On Wed, Apr 9, 2014 at 3:54 PM, <mgiuca@chromium.org> wrote:

> On 2014/04/09 04:32:02, pkotwicz wrote:
>
>> A couple of things to maybe think about:
>> - If we want to merge with M-35, I suggest hacking something which is as
>> close
>> to the app code which uses it as possible.
>>    (Something ugly similar to https://codereview.chromium.org/197283008)
>>
>
> Right. I don't think merging with M35 is strictly necessary. The original
> bug
> we're trying to fix is the return value of chrome.app.window.outerBounds
> and
> innerBounds, which are not available in M35 stable. It will also affect
> the old
> chrome.app.window.bounds, but that function was already broken in M34.
> (Basically it was fixed in M35 Aura, and me switching to native windows
> broke it
> again, but it isn't a regression compared to M34.)
>
>
>
>  Thank you very much for looking into a proper fix
>> - My main concern is to make sure that we return the outer bounds in the
>>
> proper
>
>> places and the inner bounds in the proper places
>>    A couple methods we need to figure out if they should take in the
>> outer or
>> inner bounds:
>>    DesktopWindowTreeHostX11::SetBounds()
>>    DesktopWindowTreeHostX11::GetBounds()
>>    there's unfortunately others too
>>
>
> I think we should wherever possible rename such methods to use the terms
> "InnerBounds" or "OuterBounds" where appropriate. It is currently very
> confusing
> to figure out which one any given method is talking about, requiring close
> inspection of the code and often transitive dependencies.
>

+1 we have had many bugs in the app window API due to this. It is super
confusing.


>
> https://codereview.chromium.org/216763002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698