Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: chrome/browser/chromeos/input_method/candidate_window_main.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/browser/chromeos/input_method/candidate_window.h" 5 #include "chrome/browser/chromeos/input_method/candidate_window.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "app/app_paths.h" 11 #include "app/app_paths.h"
12 #include "app/l10n_util.h" 12 #include "app/l10n_util.h"
13 #include "app/resource_bundle.h"
14 #include "base/at_exit.h" 13 #include "base/at_exit.h"
15 #include "base/command_line.h" 14 #include "base/command_line.h"
16 #include "base/message_loop.h" 15 #include "base/message_loop.h"
17 #include "base/path_service.h" 16 #include "base/path_service.h"
18 #include "base/process_util.h" 17 #include "base/process_util.h"
19 #include "chrome/browser/chromeos/cros/cros_library_loader.h" 18 #include "chrome/browser/chromeos/cros/cros_library_loader.h"
20 #include "chrome/common/chrome_paths.h" 19 #include "chrome/common/chrome_paths.h"
21 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
22 #include "grit/app_locale_settings.h" 21 #include "grit/app_locale_settings.h"
23 #include "third_party/cros/chromeos_cros_api.h" 22 #include "third_party/cros/chromeos_cros_api.h"
23 #include "ui/base/resource/resource_bundle.h"
24 #include "ui/base/ui_base_paths.h"
24 #include "views/focus/accelerator_handler.h" 25 #include "views/focus/accelerator_handler.h"
25 26
26 int main(int argc, char** argv) { 27 int main(int argc, char** argv) {
27 // Initialize gtk stuff. 28 // Initialize gtk stuff.
28 g_thread_init(NULL); 29 g_thread_init(NULL);
29 g_type_init(); 30 g_type_init();
30 gtk_init(&argc, &argv); 31 gtk_init(&argc, &argv);
31 32
32 // Initialize Chrome stuff. 33 // Initialize Chrome stuff.
33 base::AtExitManager exit_manager; 34 base::AtExitManager exit_manager;
34 base::EnableTerminationOnHeapCorruption(); 35 base::EnableTerminationOnHeapCorruption();
35 app::RegisterPathProvider(); 36 app::RegisterPathProvider();
37 ui::RegisterPathProvider();
36 CommandLine::Init(argc, argv); 38 CommandLine::Init(argc, argv);
37 39
38 // Check if the UI language code is passed from the command line, 40 // Check if the UI language code is passed from the command line,
39 // otherwise, default to "en-US". 41 // otherwise, default to "en-US".
40 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 42 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
41 std::string ui_language_code = 43 std::string ui_language_code =
42 command_line.GetSwitchValueASCII(switches::kCandidateWindowLang); 44 command_line.GetSwitchValueASCII(switches::kCandidateWindowLang);
43 if (ui_language_code.empty()) { 45 if (ui_language_code.empty()) {
44 ui_language_code = "en-US"; 46 ui_language_code = "en-US";
45 } 47 }
(...skipping 25 matching lines...) Expand all
71 if (!controller.Init()) { 73 if (!controller.Init()) {
72 return 1; 74 return 1;
73 } 75 }
74 76
75 // Start the main loop. 77 // Start the main loop.
76 views::AcceleratorHandler accelerator_handler; 78 views::AcceleratorHandler accelerator_handler;
77 MessageLoopForUI::current()->Run(&accelerator_handler); 79 MessageLoopForUI::current()->Run(&accelerator_handler);
78 80
79 return 0; 81 return 0;
80 } 82 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/frame/panel_controller.cc ('k') | chrome/browser/chromeos/login/background_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698