| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlcom.h> | 9 #include <atlcom.h> |
| 10 #include <atlctl.h> | 10 #include <atlctl.h> |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 // This variant is used for the privatemessage handler only. | 133 // This variant is used for the privatemessage handler only. |
| 134 void FireEvent(const EventHandlers& handlers, IDispatch* event, | 134 void FireEvent(const EventHandlers& handlers, IDispatch* event, |
| 135 BSTR target); | 135 BSTR target); |
| 136 | 136 |
| 137 // Installs a hook on the top-level window hosting the control. | 137 // Installs a hook on the top-level window hosting the control. |
| 138 HRESULT InstallTopLevelHook(IOleClientSite* client_site); | 138 HRESULT InstallTopLevelHook(IOleClientSite* client_site); |
| 139 | 139 |
| 140 // A hook attached to the top-level window containing the ActiveX control. | 140 // A hook attached to the top-level window containing the ActiveX control. |
| 141 HHOOK chrome_wndproc_hook_; | 141 HHOOK chrome_wndproc_hook_; |
| 142 |
| 143 // Set to true if the current instance is attaching to an existing Chrome |
| 144 // tab. This occurs when a window.open request is performed by Chrome. |
| 145 bool attaching_to_existing_cf_tab_; |
| 142 }; | 146 }; |
| 143 | 147 |
| 144 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ | 148 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ |
| OLD | NEW |