OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/chromeos/input_method/candidate_window_controller.h" | 5 #include "chrome/browser/chromeos/input_method/candidate_window_controller.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/input_method/candidate_window_controller_impl. h" | 7 #include "chrome/browser/chromeos/input_method/candidate_window_controller_impl. h" |
8 #include "chrome/browser/chromeos/input_method/ibus_controller.h" | |
8 | 9 |
9 namespace chromeos { | 10 namespace chromeos { |
10 namespace input_method { | 11 namespace input_method { |
11 | 12 |
12 // static | 13 // static |
13 CandidateWindowController* | 14 CandidateWindowController* |
14 CandidateWindowController::CreateCandidateWindowController() { | 15 CandidateWindowController::CreateCandidateWindowController( |
15 return new CandidateWindowControllerImpl; | 16 IBusController* controller) { |
17 CandidateWindowControllerImpl* candidate_window_controller = | |
18 new CandidateWindowControllerImpl; | |
19 // TODO(nona): Refine observer chain after remove IBusUiController. | |
satorux1
2012/11/30 05:37:34
once IBusUiController is removed.
Seigo Nonaka
2012/12/01 16:22:42
Done.
| |
20 controller->AddObserver(candidate_window_controller); | |
21 return candidate_window_controller; | |
16 } | 22 } |
17 | 23 |
18 } // namespace input_method | 24 } // namespace input_method |
19 } // namespace chromeos | 25 } // namespace chromeos |
OLD | NEW |