equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
57 static jmethodID setExtendedStateMID; |
57 static jmethodID setExtendedStateMID; |
58 static jmethodID getExtendedStateMID; |
58 static jmethodID getExtendedStateMID; |
59 |
59 |
60 /* method id for WEmbeddedFrame.requestActivate() method */ |
60 /* method id for WEmbeddedFrame.requestActivate() method */ |
61 static jmethodID activateEmbeddingTopLevelMID; |
61 static jmethodID activateEmbeddingTopLevelMID; |
|
62 |
|
63 /* field id for WEmbeddedFrame.isEmbeddedInIE */ |
|
64 static jfieldID isEmbeddedInIEID; |
62 |
65 |
63 AwtFrame(); |
66 AwtFrame(); |
64 virtual ~AwtFrame(); |
67 virtual ~AwtFrame(); |
65 |
68 |
66 virtual void Dispose(); |
69 virtual void Dispose(); |
169 AwtMenuBar* menuBar; |
172 AwtMenuBar* menuBar; |
170 |
173 |
171 /* The frame is an EmbeddedFrame. */ |
174 /* The frame is an EmbeddedFrame. */ |
172 BOOL m_isEmbedded; |
175 BOOL m_isEmbedded; |
173 |
176 |
|
177 /* Fix for JDK-8056915: |
|
178 The embedded frame must gain focus by setting focus to its parent. */ |
|
179 BOOL m_isEmbeddedInIE; |
|
180 |
|
181 /* Checks whether the frame is embedded in IE */ |
|
182 static BOOL IsEmbeddedInIE(HWND hwndParent); |
|
183 |
174 /* The frame is a LightweightFrame */ |
184 /* The frame is a LightweightFrame */ |
175 BOOL m_isLightweight; |
185 BOOL m_isLightweight; |
176 |
186 |
177 /* used so that calls to ::MoveWindow in SetMenuBar don't propogate |
187 /* used so that calls to ::MoveWindow in SetMenuBar don't propogate |
178 because they are immediately followed by calls to Component.resize */ |
188 because they are immediately followed by calls to Component.resize */ |