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