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

Side by Side Diff: chrome_frame/chrome_active_document.cc

Issue 3549006: Top level navigations are not sent to the host browser in the ChromeFrame NPA... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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
« no previous file with comments | « chrome/test/automation/automation_messages.h ('k') | chrome_frame/chrome_frame_activex.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Implementation of ChromeActiveDocument 5 // Implementation of ChromeActiveDocument
6 #include "chrome_frame/chrome_active_document.h" 6 #include "chrome_frame/chrome_active_document.h"
7 7
8 #include <hlink.h> 8 #include <hlink.h>
9 #include <htiface.h> 9 #include <htiface.h>
10 #include <initguid.h> 10 #include <initguid.h>
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 1035
1036 automation_client_->SetUrlFetcher(url_fetcher_.get()); 1036 automation_client_->SetUrlFetcher(url_fetcher_.get());
1037 if (launch_params_) { 1037 if (launch_params_) {
1038 return automation_client_->Initialize(this, launch_params_); 1038 return automation_client_->Initialize(this, launch_params_);
1039 } else { 1039 } else {
1040 std::wstring profile = UTF8ToWide(cf_url.profile_name()); 1040 std::wstring profile = UTF8ToWide(cf_url.profile_name());
1041 // If no profile was given, then make use of the host process's name. 1041 // If no profile was given, then make use of the host process's name.
1042 if (profile.empty()) 1042 if (profile.empty())
1043 profile = GetHostProcessName(false); 1043 profile = GetHostProcessName(false);
1044 return InitializeAutomation(profile, L"", IsIEInPrivate(), 1044 return InitializeAutomation(profile, L"", IsIEInPrivate(),
1045 false, cf_url.gurl(), GURL(referrer)); 1045 false, cf_url.gurl(), GURL(referrer),
1046 false);
1046 } 1047 }
1047 } 1048 }
1048 1049
1049 1050
1050 HRESULT ChromeActiveDocument::OnRefreshPage(const GUID* cmd_group_guid, 1051 HRESULT ChromeActiveDocument::OnRefreshPage(const GUID* cmd_group_guid,
1051 DWORD command_id, DWORD cmd_exec_opt, VARIANT* in_args, VARIANT* out_args) { 1052 DWORD command_id, DWORD cmd_exec_opt, VARIANT* in_args, VARIANT* out_args) {
1052 DLOG(INFO) << __FUNCTION__; 1053 DLOG(INFO) << __FUNCTION__;
1053 popup_allowed_ = false; 1054 popup_allowed_ = false;
1054 if (in_args->vt == VT_I4 && 1055 if (in_args->vt == VT_I4 &&
1055 in_args->lVal & OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW) { 1056 in_args->lVal & OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW) {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 web_browser2->put_Height(dimensions_.height()); 1298 web_browser2->put_Height(dimensions_.height());
1298 web_browser2->put_Left(dimensions_.x()); 1299 web_browser2->put_Left(dimensions_.x());
1299 web_browser2->put_Top(dimensions_.y()); 1300 web_browser2->put_Top(dimensions_.y());
1300 web_browser2->put_MenuBar(VARIANT_FALSE); 1301 web_browser2->put_MenuBar(VARIANT_FALSE);
1301 web_browser2->put_ToolBar(VARIANT_FALSE); 1302 web_browser2->put_ToolBar(VARIANT_FALSE);
1302 1303
1303 dimensions_.set_height(0); 1304 dimensions_.set_height(0);
1304 dimensions_.set_width(0); 1305 dimensions_.set_width(0);
1305 } 1306 }
1306 } 1307 }
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_messages.h ('k') | chrome_frame/chrome_frame_activex.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698