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> |
11 | 11 |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "chrome_frame/chrome_frame_activex_base.h" | 16 #include "chrome_frame/chrome_frame_activex_base.h" |
| 17 #include "chrome_frame/chrome_tab.h" |
17 #include "chrome_frame/com_type_info_holder.h" | 18 #include "chrome_frame/com_type_info_holder.h" |
18 #include "grit/chrome_frame_resources.h" | 19 #include "grit/chrome_frame_resources.h" |
19 | 20 |
20 // Include without path to make GYP build see it. | |
21 #include "chrome_tab.h" // NOLINT | |
22 | |
23 #define WM_HOST_MOVED_NOTIFICATION (WM_APP + 1) | 21 #define WM_HOST_MOVED_NOTIFICATION (WM_APP + 1) |
24 | 22 |
25 // ChromeFrameActivex: Implementation of the ActiveX control that is | 23 // ChromeFrameActivex: Implementation of the ActiveX control that is |
26 // responsible for hosting a chrome frame, i.e. an iframe like widget which | 24 // responsible for hosting a chrome frame, i.e. an iframe like widget which |
27 // hosts the the chrome window. This object delegates to Chrome.exe | 25 // hosts the the chrome window. This object delegates to Chrome.exe |
28 // (via the Chrome IPC-based automation mechanism) for the actual rendering. | 26 // (via the Chrome IPC-based automation mechanism) for the actual rendering. |
29 class ATL_NO_VTABLE ChromeFrameActivex | 27 class ATL_NO_VTABLE ChromeFrameActivex |
30 : public ChromeFrameActivexBase<ChromeFrameActivex, CLSID_ChromeFrame>, | 28 : public ChromeFrameActivexBase<ChromeFrameActivex, CLSID_ChromeFrame>, |
31 public IObjectSafetyImpl<ChromeFrameActivex, | 29 public IObjectSafetyImpl<ChromeFrameActivex, |
32 INTERFACESAFE_FOR_UNTRUSTED_CALLER | | 30 INTERFACESAFE_FOR_UNTRUSTED_CALLER | |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 BSTR target); | 135 BSTR target); |
138 | 136 |
139 // Installs a hook on the top-level window hosting the control. | 137 // Installs a hook on the top-level window hosting the control. |
140 HRESULT InstallTopLevelHook(IOleClientSite* client_site); | 138 HRESULT InstallTopLevelHook(IOleClientSite* client_site); |
141 | 139 |
142 // 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. |
143 HHOOK chrome_wndproc_hook_; | 141 HHOOK chrome_wndproc_hook_; |
144 }; | 142 }; |
145 | 143 |
146 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ | 144 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_H_ |
OLD | NEW |