OLD | NEW |
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/login/html_page_screen.h" | 5 #include "chrome/browser/chromeos/login/html_page_screen.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/chromeos/input_method/input_method_manager.h" | 10 #include "chrome/browser/chromeos/input_method/input_method_manager.h" |
11 #include "chrome/browser/chromeos/input_method/input_method_util.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_util.h" |
12 #include "chrome/browser/chromeos/login/screen_observer.h" | 12 #include "chrome/browser/chromeos/login/screen_observer.h" |
13 #include "chrome/browser/profiles/profile_manager.h" | 13 #include "chrome/browser/profiles/profile_manager.h" |
14 #include "chrome/browser/ui/views/handle_web_keyboard_event.h" | 14 #include "chrome/browser/ui/views/handle_web_keyboard_event.h" |
15 #include "content/browser/renderer_host/render_view_host.h" | 15 #include "content/browser/renderer_host/render_view_host.h" |
16 #include "content/browser/site_instance.h" | 16 #include "content/browser/site_instance.h" |
17 #include "content/browser/tab_contents/tab_contents.h" | 17 #include "content/browser/tab_contents/tab_contents.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 #include "views/events/event.h" | 19 #include "ui/views/events/event.h" |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 | 22 |
23 /////////////////////////////////////////////////////////////////////////////// | 23 /////////////////////////////////////////////////////////////////////////////// |
24 // HTMLPageDomView | 24 // HTMLPageDomView |
25 TabContents* HTMLPageDomView::CreateTabContents(Profile* profile, | 25 TabContents* HTMLPageDomView::CreateTabContents(Profile* profile, |
26 SiteInstance* instance) { | 26 SiteInstance* instance) { |
27 return new WizardWebPageViewTabContents(profile, | 27 return new WizardWebPageViewTabContents(profile, |
28 instance, | 28 instance, |
29 page_delegate_); | 29 page_delegate_); |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 if (g_browser_process) { | 111 if (g_browser_process) { |
112 const std::string locale = g_browser_process->GetApplicationLocale(); | 112 const std::string locale = g_browser_process->GetApplicationLocale(); |
113 input_method::InputMethodManager* manager = | 113 input_method::InputMethodManager* manager = |
114 input_method::InputMethodManager::GetInstance(); | 114 input_method::InputMethodManager::GetInstance(); |
115 manager->EnableInputMethods(locale, input_method::kKeyboardLayoutsOnly, ""); | 115 manager->EnableInputMethods(locale, input_method::kKeyboardLayoutsOnly, ""); |
116 } | 116 } |
117 delegate()->GetObserver()->OnExit(code); | 117 delegate()->GetObserver()->OnExit(code); |
118 } | 118 } |
119 | 119 |
120 } // namespace chromeos | 120 } // namespace chromeos |
OLD | NEW |