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 // ChromeFrameHost implementation. | 5 // ChromeFrameHost implementation. |
6 #include "ceee/ie/common/chrome_frame_host.h" | 6 #include "ceee/ie/common/chrome_frame_host.h" |
7 | 7 |
8 #include <algorithm> | 8 #include <algorithm> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 DWORD we = ::GetLastError(); | 100 DWORD we = ::GetLastError(); |
101 DCHECK(automating_extension_api_ != NULL && | 101 DCHECK(automating_extension_api_ != NULL && |
102 we != ERROR_ALREADY_EXISTS && | 102 we != ERROR_ALREADY_EXISTS && |
103 we != ERROR_ACCESS_DENIED); | 103 we != ERROR_ACCESS_DENIED); |
104 } | 104 } |
105 #endif // NDEBUG | 105 #endif // NDEBUG |
106 } | 106 } |
107 return hr; | 107 return hr; |
108 } | 108 } |
109 | 109 |
| 110 STDMETHODIMP ChromeFrameHost::ShouldShowVersionMismatchDialog() { |
| 111 // Only our toolband allows the notification dialog to be shown. |
| 112 return S_FALSE; |
| 113 } |
| 114 |
110 HRESULT ChromeFrameHost::Initialize() { | 115 HRESULT ChromeFrameHost::Initialize() { |
111 return S_OK; | 116 return S_OK; |
112 } | 117 } |
113 | 118 |
114 STDMETHODIMP ChromeFrameHost::TearDown() { | 119 STDMETHODIMP ChromeFrameHost::TearDown() { |
115 if (IsWindow()) { | 120 if (IsWindow()) { |
116 // TearDown the ActiveX host window. | 121 // TearDown the ActiveX host window. |
117 CAxWindow host(m_hWnd); | 122 CAxWindow host(m_hWnd); |
118 CComPtr<IObjectWithSite> host_with_site; | 123 CComPtr<IObjectWithSite> host_with_site; |
119 HRESULT hr = host.QueryHost(&host_with_site); | 124 HRESULT hr = host.QueryHost(&host_with_site); |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 375 |
371 // Forward to the sink. | 376 // Forward to the sink. |
372 event_sink_->OnCfPrivateMessage(V_BSTR(&data), V_BSTR(&origin), target); | 377 event_sink_->OnCfPrivateMessage(V_BSTR(&data), V_BSTR(&origin), target); |
373 } | 378 } |
374 | 379 |
375 STDMETHODIMP_(void) ChromeFrameHost::SetChromeProfileName( | 380 STDMETHODIMP_(void) ChromeFrameHost::SetChromeProfileName( |
376 const wchar_t* chrome_profile_name) { | 381 const wchar_t* chrome_profile_name) { |
377 chrome_profile_name_ = chrome_profile_name; | 382 chrome_profile_name_ = chrome_profile_name; |
378 DLOG(INFO) << "Assigned profile name " << chrome_profile_name_; | 383 DLOG(INFO) << "Assigned profile name " << chrome_profile_name_; |
379 } | 384 } |
OLD | NEW |