| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "win8/metro_driver/ime/input_source.h" | 5 #include "win8/metro_driver/ime/input_source.h" |
| 6 | 6 |
| 7 #include <atlbase.h> | 7 #include <atlbase.h> |
| 8 #include <atlcom.h> | 8 #include <atlcom.h> |
| 9 #include <msctf.h> | 9 #include <msctf.h> |
| 10 | 10 |
| 11 #include "base/bind.h" | 11 #include "base/bind.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 16 #include "base/win/scoped_comptr.h" | 17 #include "base/win/scoped_comptr.h" |
| 17 #include "ui/base/win/atl_module.h" | 18 #include "ui/base/win/atl_module.h" |
| 18 #include "win8/metro_driver/ime/input_source_observer.h" | 19 #include "win8/metro_driver/ime/input_source_observer.h" |
| 19 | 20 |
| 20 namespace metro_driver { | 21 namespace metro_driver { |
| 21 namespace { | 22 namespace { |
| 22 | 23 |
| 23 // An implementation of ITfLanguageProfileNotifySink interface, which will be | 24 // An implementation of ITfLanguageProfileNotifySink interface, which will be |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 LOG(ERROR) << "Failed to initialize the monitor."; | 163 LOG(ERROR) << "Failed to initialize the monitor."; |
| 163 return scoped_ptr<InputSource>(); | 164 return scoped_ptr<InputSource>(); |
| 164 } | 165 } |
| 165 | 166 |
| 166 // Transfer the ownership. | 167 // Transfer the ownership. |
| 167 return scoped_ptr<InputSource>( | 168 return scoped_ptr<InputSource>( |
| 168 new InputSourceImpl(profile_manager.get(), monitor)); | 169 new InputSourceImpl(profile_manager.get(), monitor)); |
| 169 } | 170 } |
| 170 | 171 |
| 171 } // namespace metro_driver | 172 } // namespace metro_driver |
| OLD | NEW |