| 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 // Implementation of the infobar browser window. | 5 // Implementation of the infobar browser window. |
| 6 | 6 |
| 7 #include "ceee/ie/plugin/bho/infobar_browser_window.h" | 7 #include "ceee/ie/plugin/bho/infobar_browser_window.h" |
| 8 | 8 |
| 9 #include <atlapp.h> | 9 #include <atlapp.h> |
| 10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 ceee_module_util::GetBrokerProfileNameForIe()); | 57 ceee_module_util::GetBrokerProfileNameForIe()); |
| 58 return S_OK; | 58 return S_OK; |
| 59 } | 59 } |
| 60 | 60 |
| 61 STDMETHODIMP InfobarBrowserWindow::GetExtensionApisToAutomate( | 61 STDMETHODIMP InfobarBrowserWindow::GetExtensionApisToAutomate( |
| 62 BSTR* functions_enabled) { | 62 BSTR* functions_enabled) { |
| 63 *functions_enabled = NULL; | 63 *functions_enabled = NULL; |
| 64 return S_FALSE; | 64 return S_FALSE; |
| 65 } | 65 } |
| 66 | 66 |
| 67 STDMETHODIMP InfobarBrowserWindow::ShouldShowVersionMismatchDialog() { |
| 68 // Only our toolband allows the notification dialog to be shown. |
| 69 return S_FALSE; |
| 70 } |
| 71 |
| 67 STDMETHODIMP_(void) InfobarBrowserWindow::OnCfReadyStateChanged(LONG state) { | 72 STDMETHODIMP_(void) InfobarBrowserWindow::OnCfReadyStateChanged(LONG state) { |
| 68 if (state == READYSTATE_COMPLETE) { | 73 if (state == READYSTATE_COMPLETE) { |
| 69 // We already loaded the extension, enable them in this CF. | 74 // We already loaded the extension, enable them in this CF. |
| 70 chrome_frame_->getEnabledExtensions(); | 75 chrome_frame_->getEnabledExtensions(); |
| 71 // Also we should already have URL, navigate to it. | 76 // Also we should already have URL, navigate to it. |
| 72 Navigate(); | 77 Navigate(); |
| 73 infobar_events_funnel().OnDocumentComplete(); | 78 infobar_events_funnel().OnDocumentComplete(); |
| 74 } | 79 } |
| 75 } | 80 } |
| 76 | 81 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 if (url_.empty()) { | 201 if (url_.empty()) { |
| 197 LOG(WARNING) << "Navigating infobar to not specified URL"; | 202 LOG(WARNING) << "Navigating infobar to not specified URL"; |
| 198 } else { | 203 } else { |
| 199 HRESULT hr = chrome_frame_->put_src(CComBSTR(url_.c_str())); | 204 HRESULT hr = chrome_frame_->put_src(CComBSTR(url_.c_str())); |
| 200 LOG_IF(WARNING, FAILED(hr)) << | 205 LOG_IF(WARNING, FAILED(hr)) << |
| 201 "Infobar: ChromeFrame::put_src returned: " << com::LogHr(hr); | 206 "Infobar: ChromeFrame::put_src returned: " << com::LogHr(hr); |
| 202 } | 207 } |
| 203 } | 208 } |
| 204 | 209 |
| 205 } // namespace infobar_api | 210 } // namespace infobar_api |
| OLD | NEW |