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 #include "chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.h" | 5 #include "chrome/browser/chromeos/dom_ui/keyboard_overlay_ui.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents) | 288 KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents) |
289 : HtmlDialogUI(contents) { | 289 : HtmlDialogUI(contents) { |
290 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(); | 290 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(); |
291 AddMessageHandler((handler)->Attach(this)); | 291 AddMessageHandler((handler)->Attach(this)); |
292 KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource(); | 292 KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource(); |
293 | 293 |
294 // Set up the chrome://keyboardoverlay/ source. | 294 // Set up the chrome://keyboardoverlay/ source. |
295 BrowserThread::PostTask( | 295 BrowserThread::PostTask( |
296 BrowserThread::IO, FROM_HERE, | 296 BrowserThread::IO, FROM_HERE, |
297 NewRunnableMethod( | 297 NewRunnableMethod( |
298 Singleton<ChromeURLDataManager>::get(), | 298 ChromeURLDataManager::GetInstance(), |
299 &ChromeURLDataManager::AddDataSource, | 299 &ChromeURLDataManager::AddDataSource, |
300 make_scoped_refptr(html_source))); | 300 make_scoped_refptr(html_source))); |
301 } | 301 } |
OLD | NEW |