-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8313424: JavaFX controls in the title bar #1605
Open
mstr2
wants to merge
28
commits into
openjdk:master
Choose a base branch
from
mstr2:feature/extended-window
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,460
−514
Open
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
3d19b87
WIP
mstr2 0ddd63d
doc change
mstr2 7969622
revert unintended change
mstr2 a289572
Merge branch 'master' into feature/extended-window
mstr2 ba02e8f
Improve HeaderBar documentation
mstr2 f973e8c
improve documentation
mstr2 f02e7e9
Windows: add system menu
mstr2 fef8cfc
Windows: custom context menu overrides system menu
mstr2 778e6c1
GTK: prevent resizing below window button size, fix crash
mstr2 3b468fe
GTK: add system menu
mstr2 0526edb
small code changes
mstr2 95736df
remove unused code
mstr2 d9c0fe2
Merge branch 'master' into feature/extended-window
mstr2 c0b588f
set minHeight to native height of title bar
mstr2 d7f88c3
better documentation
mstr2 9de4694
macOS: hide window title
mstr2 cd5d443
improve title text documentation
mstr2 bc48ae0
fix peer access outside of synchronizer
mstr2 804d0be
NPE
mstr2 f5e3121
fix header bar height flicker
mstr2 1c4ecc1
macOS: dynamically adapt toolbar style to headerbar height
mstr2 15dc3ff
Merge branch 'master' into feature/extended-window
mstr2 9b63892
Merge branch 'master' into feature/extended-window
mstr2 e7febc5
fix mirroring/unmirroring of X coord in win-glass
mstr2 d1c388b
stylistic changes
mstr2 8c9fbbd
use CsvSource in HeaderBarTest
mstr2 3660a29
EMPTY Dimension2D constant
mstr2 8974c14
HeaderBar changes
mstr2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
modules/javafx.graphics/src/main/java/com/sun/glass/ui/NonClientHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. Oracle designates this | ||
* particular file as subject to the "Classpath" exception as provided | ||
* by Oracle in the LICENSE file that accompanied this code. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
|
||
package com.sun.glass.ui; | ||
|
||
import javafx.stage.StageStyle; | ||
|
||
/** | ||
* A non-client handler is used in some implementations of windows with the {@link StageStyle#EXTENDED} style. | ||
* It can inspect a mouse event before it is sent to FX, and decide to consume it if it affects | ||
* a non-client part of the window (for example, minimize/maximize/close buttons). | ||
*/ | ||
public interface NonClientHandler { | ||
|
||
/** | ||
* Handles the event. | ||
* | ||
* @return {@code true} if the event was handled, {@code false} otherwise | ||
*/ | ||
boolean handleMouseEvent(int type, int button, int x, int y, int xAbs, int yAbs, int clickCount); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor suggestion: placing each entry on separate line might simplify maintenance and reduce merge conflicts.