| OLD | NEW |
| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 } | 351 } |
| 352 | 352 |
| 353 if (client_site == NULL) { | 353 if (client_site == NULL) { |
| 354 in_place_frame_.Release(); | 354 in_place_frame_.Release(); |
| 355 } | 355 } |
| 356 | 356 |
| 357 return CComControlBase::IOleObject_SetClientSite(client_site); | 357 return CComControlBase::IOleObject_SetClientSite(client_site); |
| 358 } | 358 } |
| 359 | 359 |
| 360 bool HandleContextMenuCommand(UINT cmd, | 360 bool HandleContextMenuCommand(UINT cmd, |
| 361 const IPC::ContextMenuParams& params) { | 361 const IPC::MiniContextMenuParams& params) { |
| 362 if (cmd == IDC_ABOUT_CHROME_FRAME) { | 362 if (cmd == IDC_ABOUT_CHROME_FRAME) { |
| 363 int tab_handle = automation_client_->tab()->handle(); | 363 int tab_handle = automation_client_->tab()->handle(); |
| 364 HostNavigate(GURL("about:version"), GURL(), NEW_WINDOW); | 364 HostNavigate(GURL("about:version"), GURL(), NEW_WINDOW); |
| 365 return true; | 365 return true; |
| 366 } else { | 366 } else { |
| 367 switch (cmd) { | 367 switch (cmd) { |
| 368 case IDS_CONTENT_CONTEXT_SAVEAUDIOAS: | 368 case IDS_CONTENT_CONTEXT_SAVEAUDIOAS: |
| 369 case IDS_CONTENT_CONTEXT_SAVEVIDEOAS: | 369 case IDS_CONTENT_CONTEXT_SAVEVIDEOAS: |
| 370 case IDS_CONTENT_CONTEXT_SAVEIMAGEAS: | 370 case IDS_CONTENT_CONTEXT_SAVEIMAGEAS: |
| 371 case IDS_CONTENT_CONTEXT_SAVELINKAS: { | 371 case IDS_CONTENT_CONTEXT_SAVELINKAS: { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 params.dimensions.x(), | 512 params.dimensions.x(), |
| 513 params.dimensions.y(), | 513 params.dimensions.y(), |
| 514 params.dimensions.width(), | 514 params.dimensions.width(), |
| 515 params.dimensions.height(), | 515 params.dimensions.height(), |
| 516 params.profile_name.c_str()); | 516 params.profile_name.c_str()); |
| 517 HostNavigate(GURL(url), GURL(), params.disposition); | 517 HostNavigate(GURL(url), GURL(), params.disposition); |
| 518 } | 518 } |
| 519 | 519 |
| 520 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle, | 520 virtual void OnHandleContextMenu(int tab_handle, HANDLE menu_handle, |
| 521 int align_flags, | 521 int align_flags, |
| 522 const IPC::ContextMenuParams& params) { | 522 const IPC::MiniContextMenuParams& params) { |
| 523 scoped_refptr<BasePlugin> ref(this); | 523 scoped_refptr<BasePlugin> ref(this); |
| 524 ChromeFramePlugin<T>::OnHandleContextMenu(tab_handle, menu_handle, | 524 ChromeFramePlugin<T>::OnHandleContextMenu(tab_handle, menu_handle, |
| 525 align_flags, params); | 525 align_flags, params); |
| 526 } | 526 } |
| 527 | 527 |
| 528 LRESULT OnCreate(UINT message, WPARAM wparam, LPARAM lparam, | 528 LRESULT OnCreate(UINT message, WPARAM wparam, LPARAM lparam, |
| 529 BOOL& handled) { // NO_LINT | 529 BOOL& handled) { // NO_LINT |
| 530 ModifyStyle(0, WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0); | 530 ModifyStyle(0, WS_CLIPCHILDREN | WS_CLIPSIBLINGS, 0); |
| 531 url_fetcher_->put_notification_window(m_hWnd); | 531 url_fetcher_->put_notification_window(m_hWnd); |
| 532 if (automation_client_.get()) { | 532 if (automation_client_.get()) { |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 EventHandlers onextensionready_; | 1258 EventHandlers onextensionready_; |
| 1259 | 1259 |
| 1260 // Handle network requests when host network stack is used. Passed to the | 1260 // Handle network requests when host network stack is used. Passed to the |
| 1261 // automation client on initialization. | 1261 // automation client on initialization. |
| 1262 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; | 1262 scoped_ptr<UrlmonUrlRequestManager> url_fetcher_; |
| 1263 | 1263 |
| 1264 HINSTANCE prev_resource_instance_; | 1264 HINSTANCE prev_resource_instance_; |
| 1265 }; | 1265 }; |
| 1266 | 1266 |
| 1267 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ | 1267 #endif // CHROME_FRAME_CHROME_FRAME_ACTIVEX_BASE_H_ |
| OLD | NEW |