Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
5fbe1059
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5fbe1059
编写于
5月 18, 2012
作者:
D
dcherepanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7156191: [macosx] Can't type into applet demos in Pivot
Reviewed-by: art
上级
be8c2d4b
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
19 deletion
+16
-19
src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java
src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java
+6
-15
src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java
src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java
+4
-0
src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
+2
-2
src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
+4
-2
未找到文件。
src/macosx/classes/sun/lwawt/macosx/CEmbeddedFrame.java
浏览文件 @
5fbe1059
...
...
@@ -112,28 +112,19 @@ public class CEmbeddedFrame extends EmbeddedFrame {
public
void
handleFocusEvent
(
boolean
focused
)
{
this
.
focused
=
focused
;
updateOverlayWindowActiveState
();
if
(
parentWindowActive
)
{
responder
.
handleWindowFocusEvent
(
focused
);
}
}
public
void
handleWindowFocusEvent
(
boolean
parentWindowActive
)
{
this
.
parentWindowActive
=
parentWindowActive
;
updateOverlayWindowActiveState
();
if
(
focused
)
{
responder
.
handleWindowFocusEvent
(
parentWindowActive
);
}
}
public
boolean
isParentWindowActive
()
{
return
parentWindowActive
;
}
/*
* May change appearance of contents of window, and generate a
* WINDOW_ACTIVATED event.
*/
private
void
updateOverlayWindowActiveState
()
{
final
boolean
showAsFocused
=
parentWindowActive
&&
focused
;
dispatchEvent
(
new
FocusEvent
(
this
,
showAsFocused
?
FocusEvent
.
FOCUS_GAINED
:
FocusEvent
.
FOCUS_LOST
));
}
}
src/macosx/classes/sun/lwawt/macosx/CPlatformResponder.java
浏览文件 @
5fbe1059
...
...
@@ -204,4 +204,8 @@ final class CPlatformResponder {
}
}
}
void
handleWindowFocusEvent
(
boolean
gained
)
{
peer
.
notifyActivation
(
gained
);
}
}
src/macosx/classes/sun/lwawt/macosx/CPlatformView.java
浏览文件 @
5fbe1059
...
...
@@ -49,9 +49,9 @@ public class CPlatformView extends CFRetainedResource {
super
(
0
,
true
);
}
public
void
initialize
(
LWWindowPeer
peer
)
{
public
void
initialize
(
LWWindowPeer
peer
,
CPlatformResponder
responder
)
{
this
.
peer
=
peer
;
this
.
responder
=
new
CPlatformResponder
(
peer
,
false
)
;
this
.
responder
=
responder
;
if
(!
LWCToolkit
.
getSunAwtDisableCALayers
())
{
this
.
windowLayer
=
new
CGLLayer
(
peer
);
...
...
src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
浏览文件 @
5fbe1059
...
...
@@ -208,6 +208,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
private
boolean
visible
=
false
;
// visibility status from native perspective
private
boolean
undecorated
;
// initialized in getInitialStyleBits()
private
Rectangle
normalBounds
=
null
;
// not-null only for undecorated maximized windows
private
CPlatformResponder
responder
;
public
CPlatformWindow
(
final
PeerType
peerType
)
{
super
(
0
,
true
);
...
...
@@ -232,8 +233,9 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
final
long
parentNSWindowPtr
=
(
owner
!=
null
?
owner
.
getNSWindowPtr
()
:
0
);
String
warningString
=
target
.
getWarningString
();
responder
=
new
CPlatformResponder
(
peer
,
false
);
contentView
=
new
CPlatformView
();
contentView
.
initialize
(
peer
);
contentView
.
initialize
(
peer
,
responder
);
final
long
nativeWindowPtr
=
nativeCreateNSWindow
(
contentView
.
getAWTView
(),
styleBits
,
0
,
0
,
0
,
0
);
setPtr
(
nativeWindowPtr
);
...
...
@@ -865,7 +867,7 @@ public class CPlatformWindow extends CFRetainedResource implements PlatformWindo
focusLogger
.
fine
(
"the app is inactive, so the notification is ignored"
);
return
;
}
peer
.
notifyActivation
(
gained
);
responder
.
handleWindowFocusEvent
(
gained
);
}
private
void
deliverMoveResizeEvent
(
int
x
,
int
y
,
int
width
,
int
height
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录