| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // Override IPersistStorageImpl::IsDirty | 171 // Override IPersistStorageImpl::IsDirty |
| 172 STDMETHODIMP ChromeActiveDocument::IsDirty() { | 172 STDMETHODIMP ChromeActiveDocument::IsDirty() { |
| 173 DLOG(INFO) << __FUNCTION__; | 173 DLOG(INFO) << __FUNCTION__; |
| 174 return S_FALSE; | 174 return S_FALSE; |
| 175 } | 175 } |
| 176 | 176 |
| 177 bool ChromeActiveDocument::is_frame_busting_enabled() { | 177 bool ChromeActiveDocument::is_frame_busting_enabled() { |
| 178 return false; | 178 return false; |
| 179 } | 179 } |
| 180 | 180 |
| 181 void ChromeActiveDocument::OnAutomationServerReady() { |
| 182 Base::OnAutomationServerReady(); |
| 183 Base::GiveFocusToChrome(); |
| 184 } |
| 185 |
| 181 STDMETHODIMP ChromeActiveDocument::Load(BOOL fully_avalable, | 186 STDMETHODIMP ChromeActiveDocument::Load(BOOL fully_avalable, |
| 182 IMoniker* moniker_name, | 187 IMoniker* moniker_name, |
| 183 LPBC bind_context, | 188 LPBC bind_context, |
| 184 DWORD mode) { | 189 DWORD mode) { |
| 185 if (NULL == moniker_name) { | 190 if (NULL == moniker_name) { |
| 186 return E_INVALIDARG; | 191 return E_INVALIDARG; |
| 187 } | 192 } |
| 188 | 193 |
| 189 ScopedComPtr<IOleClientSite> client_site; | 194 ScopedComPtr<IOleClientSite> client_site; |
| 190 if (bind_context) { | 195 if (bind_context) { |
| (...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 hr = browser_service_local->GetTravelLog(travel_log); | 952 hr = browser_service_local->GetTravelLog(travel_log); |
| 948 DLOG_IF(INFO, !travel_log) << "browser_service->GetTravelLog failed: " | 953 DLOG_IF(INFO, !travel_log) << "browser_service->GetTravelLog failed: " |
| 949 << hr; | 954 << hr; |
| 950 } | 955 } |
| 951 | 956 |
| 952 if (browser_service) | 957 if (browser_service) |
| 953 *browser_service = browser_service_local.Detach(); | 958 *browser_service = browser_service_local.Detach(); |
| 954 | 959 |
| 955 return hr; | 960 return hr; |
| 956 } | 961 } |
| OLD | NEW |