OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/strings/string_util.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 | 11 |
12 ComMessageEvent::ComMessageEvent() { | 12 ComMessageEvent::ComMessageEvent() { |
13 } | 13 } |
14 | 14 |
15 ComMessageEvent::~ComMessageEvent() { | 15 ComMessageEvent::~ComMessageEvent() { |
16 } | 16 } |
17 | 17 |
18 bool ComMessageEvent::Initialize(IOleContainer* container, | 18 bool ComMessageEvent::Initialize(IOleContainer* container, |
19 const std::string& message, | 19 const std::string& message, |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 HRESULT hr; | 152 HRESULT hr; |
153 if (flags & DISPATCH_PROPERTYGET) { | 153 if (flags & DISPATCH_PROPERTYGET) { |
154 result->vt = VT_BSTR; | 154 result->vt = VT_BSTR; |
155 result->bstrVal = ::SysAllocString(value); | 155 result->bstrVal = ::SysAllocString(value); |
156 hr = S_OK; | 156 hr = S_OK; |
157 } else { | 157 } else { |
158 hr = DISP_E_TYPEMISMATCH; | 158 hr = DISP_E_TYPEMISMATCH; |
159 } | 159 } |
160 return hr; | 160 return hr; |
161 } | 161 } |
OLD | NEW |