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 // TODO(satorux): | 5 // TODO(satorux): |
6 // - Implement a scroll bar or an indicator showing where you are in the | 6 // - Implement a scroll bar or an indicator showing where you are in the |
7 // candidate window. | 7 // candidate window. |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "app/app_paths.h" | 13 #include "app/app_paths.h" |
14 #include "app/gfx/canvas.h" | |
15 #include "app/gfx/font.h" | |
16 #include "app/resource_bundle.h" | 14 #include "app/resource_bundle.h" |
17 #include "base/at_exit.h" | 15 #include "base/at_exit.h" |
18 #include "base/file_path.h" | 16 #include "base/file_path.h" |
19 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
20 #include "base/path_service.h" | 18 #include "base/path_service.h" |
21 #include "base/process_util.h" | 19 #include "base/process_util.h" |
22 #include "base/scoped_ptr.h" | 20 #include "base/scoped_ptr.h" |
23 #include "base/utf_string_conversions.h" | 21 #include "base/utf_string_conversions.h" |
24 #include "chrome/browser/chromeos/cros/cros_library.h" | 22 #include "chrome/browser/chromeos/cros/cros_library.h" |
25 #include "chrome/common/chrome_paths.h" | 23 #include "chrome/common/chrome_paths.h" |
| 24 #include "gfx/canvas.h" |
| 25 #include "gfx/font.h" |
26 #include "third_party/cros/chromeos_cros_api.h" | 26 #include "third_party/cros/chromeos_cros_api.h" |
27 #include "third_party/cros/chromeos_ime.h" | 27 #include "third_party/cros/chromeos_ime.h" |
28 #include "views/controls/label.h" | 28 #include "views/controls/label.h" |
29 #include "views/controls/textfield/textfield.h" | 29 #include "views/controls/textfield/textfield.h" |
30 #include "views/event.h" | 30 #include "views/event.h" |
31 #include "views/fill_layout.h" | 31 #include "views/fill_layout.h" |
32 #include "views/focus/accelerator_handler.h" | 32 #include "views/focus/accelerator_handler.h" |
33 #include "views/grid_layout.h" | 33 #include "views/grid_layout.h" |
34 #include "views/screen.h" | 34 #include "views/screen.h" |
35 #include "views/widget/root_view.h" | 35 #include "views/widget/root_view.h" |
(...skipping 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 // Create the candidate window controller. | 957 // Create the candidate window controller. |
958 chromeos::CandidateWindowController controller; | 958 chromeos::CandidateWindowController controller; |
959 controller.Init(); | 959 controller.Init(); |
960 | 960 |
961 // Start the main loop. | 961 // Start the main loop. |
962 views::AcceleratorHandler accelerator_handler; | 962 views::AcceleratorHandler accelerator_handler; |
963 MessageLoopForUI::current()->Run(&accelerator_handler); | 963 MessageLoopForUI::current()->Run(&accelerator_handler); |
964 | 964 |
965 return 0; | 965 return 0; |
966 } | 966 } |
OLD | NEW |