Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: chrome_frame/chrome_frame_activex_base.h

Issue 1589013: Switch renderer in Moniker patch... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BASE_H_ 5 #ifndef CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 6 #define CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 DIID_DIChromeFrameEvents>, 163 DIID_DIChromeFrameEvents>,
164 public com_util::IDispatchImpl<IChromeFrame>, 164 public com_util::IDispatchImpl<IChromeFrame>,
165 public IConnectionPointContainerImpl<T>, 165 public IConnectionPointContainerImpl<T>,
166 public ProxyDIChromeFrameEvents<T>, 166 public ProxyDIChromeFrameEvents<T>,
167 public IPropertyNotifySinkCP<T>, 167 public IPropertyNotifySinkCP<T>,
168 public CComCoClass<T, &class_id>, 168 public CComCoClass<T, &class_id>,
169 public CComControl<T>, 169 public CComControl<T>,
170 public ChromeFramePlugin<T> { 170 public ChromeFramePlugin<T> {
171 protected: 171 protected:
172 typedef std::set<ScopedComPtr<IDispatch> > EventHandlers; 172 typedef std::set<ScopedComPtr<IDispatch> > EventHandlers;
173 typedef ChromeFrameActivexBase<T, class_id> Base; 173 typedef ChromeFrameActivexBase<T, class_id> BasePlugin;
174 174
175 public: 175 public:
176 ChromeFrameActivexBase() 176 ChromeFrameActivexBase()
177 : ready_state_(READYSTATE_UNINITIALIZED) { 177 : ready_state_(READYSTATE_UNINITIALIZED) {
178 m_bWindowOnly = TRUE; 178 m_bWindowOnly = TRUE;
179 } 179 }
180 180
181 ~ChromeFrameActivexBase() { 181 ~ChromeFrameActivexBase() {
182 } 182 }
183 183
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 const IPC::AttachExternalTabParams& params) { 443 const IPC::AttachExternalTabParams& params) {
444 std::string url; 444 std::string url;
445 url = StringPrintf("%lsattach_external_tab&%ls&%d", kChromeProtocolPrefix, 445 url = StringPrintf("%lsattach_external_tab&%ls&%d", kChromeProtocolPrefix,
446 Uint64ToWString(params.cookie).c_str(), params.disposition); 446 Uint64ToWString(params.cookie).c_str(), params.disposition);
447 HostNavigate(GURL(url), GURL(), params.disposition); 447 HostNavigate(GURL(url), GURL(), params.disposition);
448 } 448 }
449 449
450 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle, 450 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle,
451 int align_flags, 451 int align_flags,
452 const IPC::ContextMenuParams& params) { 452 const IPC::ContextMenuParams& params) {
453 scoped_refptr<Base> ref(this); 453 scoped_refptr<BasePlugin> ref(this);
454 ChromeFramePlugin<T>::OnHandleContextMenu(tab_handle, menu_handle, 454 ChromeFramePlugin<T>::OnHandleContextMenu(tab_handle, menu_handle,
455 align_flags, params); 455 align_flags, params);
456 } 456 }
457 457
458 LRESULT OnCreate(UINT message, WPARAM wparam, LPARAM lparam, 458 LRESULT OnCreate(UINT message, WPARAM wparam, LPARAM lparam,
459 BOOL& handled) { // NO_LINT 459 BOOL& handled) { // NO_LINT
460 ModifyStyle(0, WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0); 460 ModifyStyle(0, WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0);
461 url_fetcher_.put_notification_window(m_hWnd); 461 url_fetcher_.put_notification_window(m_hWnd);
462 automation_client_->SetParentWindow(m_hWnd); 462 automation_client_->SetParentWindow(m_hWnd);
463 // Only fire the 'interactive' ready state if we aren't there already. 463 // Only fire the 'interactive' ready state if we aren't there already.
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 EventHandlers onreadystatechanged_; 1119 EventHandlers onreadystatechanged_;
1120 EventHandlers onprivatemessage_; 1120 EventHandlers onprivatemessage_;
1121 EventHandlers onextensionready_; 1121 EventHandlers onextensionready_;
1122 1122
1123 // Handle network requests when host network stack is used. Passed to the 1123 // Handle network requests when host network stack is used. Passed to the
1124 // automation client on initialization. 1124 // automation client on initialization.
1125 UrlmonUrlRequestManager url_fetcher_; 1125 UrlmonUrlRequestManager url_fetcher_;
1126 }; 1126 };
1127 1127
1128 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ 1128 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698