OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/l10n_util.h" | 14 #include "app/l10n_util.h" |
15 #include "app/resource_bundle.h" | 15 #include "app/resource_bundle.h" |
16 #include "base/at_exit.h" | 16 #include "base/at_exit.h" |
17 #include "base/command_line.h" | 17 #include "base/command_line.h" |
18 #include "base/logging.h" | 18 #include "base/logging.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
21 #include "base/process_util.h" | 21 #include "base/process_util.h" |
22 #include "base/scoped_ptr.h" | 22 #include "base/scoped_ptr.h" |
23 #include "base/string_util.h" | 23 #include "base/string_util.h" |
24 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
25 #include "base/utf_string_conversions.h" | 25 #include "base/utf_string_conversions.h" |
26 #include "chrome/browser/chromeos/cros/cros_library_loader.h" | 26 #include "chrome/browser/chromeos/cros/cros_library_loader.h" |
27 #include "chrome/common/chrome_paths.h" | 27 #include "chrome/common/chrome_paths.h" |
28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "cros/chromeos_cros_api.h" |
| 30 #include "cros/chromeos_input_method_ui.h" |
29 #include "gfx/canvas.h" | 31 #include "gfx/canvas.h" |
30 #include "gfx/font.h" | 32 #include "gfx/font.h" |
31 #include "grit/app_locale_settings.h" | 33 #include "grit/app_locale_settings.h" |
32 #include "cros/chromeos_cros_api.h" | |
33 #include "cros/chromeos_input_method_ui.h" | |
34 #include "views/controls/label.h" | 34 #include "views/controls/label.h" |
35 #include "views/controls/textfield/textfield.h" | 35 #include "views/controls/textfield/textfield.h" |
36 #include "views/event.h" | 36 #include "views/event.h" |
37 #include "views/fill_layout.h" | 37 #include "views/fill_layout.h" |
38 #include "views/focus/accelerator_handler.h" | 38 #include "views/focus/accelerator_handler.h" |
39 #include "views/grid_layout.h" | 39 #include "views/grid_layout.h" |
40 #include "views/screen.h" | 40 #include "views/screen.h" |
41 #include "views/widget/root_view.h" | 41 #include "views/widget/root_view.h" |
42 #include "views/widget/widget.h" | 42 #include "views/widget/widget.h" |
43 #include "views/widget/widget_gtk.h" | 43 #include "views/widget/widget_gtk.h" |
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 if (!controller.Init()) { | 1325 if (!controller.Init()) { |
1326 return 1; | 1326 return 1; |
1327 } | 1327 } |
1328 | 1328 |
1329 // Start the main loop. | 1329 // Start the main loop. |
1330 views::AcceleratorHandler accelerator_handler; | 1330 views::AcceleratorHandler accelerator_handler; |
1331 MessageLoopForUI::current()->Run(&accelerator_handler); | 1331 MessageLoopForUI::current()->Run(&accelerator_handler); |
1332 | 1332 |
1333 return 0; | 1333 return 0; |
1334 } | 1334 } |
OLD | NEW |