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 #include "chrome_frame/com_message_event.h" | 5 #include "chrome_frame/com_message_event.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 9 #include "base/utf_string_conversions.h" |
9 | 10 |
10 ComMessageEvent::ComMessageEvent() { | 11 ComMessageEvent::ComMessageEvent() { |
11 } | 12 } |
12 | 13 |
13 ComMessageEvent::~ComMessageEvent() { | 14 ComMessageEvent::~ComMessageEvent() { |
14 } | 15 } |
15 | 16 |
16 bool ComMessageEvent::Initialize(IOleContainer* container, | 17 bool ComMessageEvent::Initialize(IOleContainer* container, |
17 const std::string& message, | 18 const std::string& message, |
18 const std::string& origin, | 19 const std::string& origin, |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 HRESULT hr; | 149 HRESULT hr; |
149 if (flags & DISPATCH_PROPERTYGET) { | 150 if (flags & DISPATCH_PROPERTYGET) { |
150 result->vt = VT_BSTR; | 151 result->vt = VT_BSTR; |
151 result->bstrVal = ::SysAllocString(value); | 152 result->bstrVal = ::SysAllocString(value); |
152 hr = S_OK; | 153 hr = S_OK; |
153 } else { | 154 } else { |
154 hr = DISP_E_TYPEMISMATCH; | 155 hr = DISP_E_TYPEMISMATCH; |
155 } | 156 } |
156 return hr; | 157 return hr; |
157 } | 158 } |
OLD | NEW |