Commit 68c978df authored by Jun Mukai's avatar Jun Mukai Committed by Commit Bot

Add comments to some of the properties of AppWindowInfo.

The autotestPrivate API provides the information of a window,
but I guess some properties might not be very clear to every
developers. I added comments to some of them, I hope some things
are a bit clearer without looking into the code.

Bug: none
Test: none
Change-Id: Iee076c45a89b0fdd8382f200cc584b86f3512671
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1907269Reviewed-by: default avatarRicardo Quesada <ricardoq@chromium.org>
Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
Commit-Queue: Jun Mukai <mukai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#714292}
parent fee33f3b
......@@ -336,19 +336,42 @@ namespace autotestPrivate {
};
dictionary AppWindowInfo {
// The identifier of the window. This shouldn't change across the time.
long id;
// The name of the window object -- typically internal class name of the
// window (like 'BrowserFrame').
DOMString name;
AppWindowType windowType;
WindowStateType stateType;
// The bounds of the window, in the coordinate of the root window (i.e.
// relative to the display where this window resides).
Bounds boundsInRoot;
Bounds targetBounds;
// The identifier of the display where this window resides.
DOMString displayId;
boolean isVisible;
boolean canFocus;
// The title of the window; this can be seen in the window caption, or in
// the overview mode. Typically, this provides the title of the webpage or
// the title supplied by the application.
DOMString title;
// Whether some animation is ongoing on the window or not.
boolean isAnimating;
boolean isVisible;
// The final bounds of the window when the animation completes. This should
// be same as |boundsInRoot| when |isAnimating| is false.
Bounds targetBounds;
// Whether or not the window is going to be visible after the animation
// completes. This should be same as |isVisible| when |isAnimating| is
// false.
boolean targetVisibility;
boolean canFocus;
// WM Releated stats
boolean isActive;
......@@ -358,7 +381,10 @@ namespace autotestPrivate {
// Window frame info
long captionHeight;
// The bitset of the enabled caption buttons. See
// ui/views/window/caption_button_types.h.
long captionButtonEnabledStatus;
// The bitset of the caption buttons which are visible on the frame.
long captionButtonVisibleStatus;
DOMString? arcPackageName;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment