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

Side by Side Diff: chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc

Issue 10448066: Move the web dialogs code to src/ui/web_dialogs from src/chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/chromeos/keyboard_overlay_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 13 matching lines...) Expand all
24 #include "content/public/browser/web_contents_delegate.h" 24 #include "content/public/browser/web_contents_delegate.h"
25 #include "content/public/browser/web_ui.h" 25 #include "content/public/browser/web_ui.h"
26 #include "content/public/browser/web_ui_message_handler.h" 26 #include "content/public/browser/web_ui_message_handler.h"
27 #include "grit/browser_resources.h" 27 #include "grit/browser_resources.h"
28 #include "grit/generated_resources.h" 28 #include "grit/generated_resources.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 #include "ui/base/resource/resource_bundle.h" 30 #include "ui/base/resource/resource_bundle.h"
31 31
32 using chromeos::input_method::ModifierKey; 32 using chromeos::input_method::ModifierKey;
33 using content::WebUIMessageHandler; 33 using content::WebUIMessageHandler;
34 using ui::WebDialogUI;
34 35
35 namespace { 36 namespace {
36 37
37 const char kLearnMoreURL[] = 38 const char kLearnMoreURL[] =
38 #if defined(OFFICIAL_BUILD) 39 #if defined(OFFICIAL_BUILD)
39 "chrome-extension://honijodknafkokifofgiaalefdiedpko/" 40 "chrome-extension://honijodknafkokifofgiaalefdiedpko/"
40 "main.html?answer=188743"; 41 "main.html?answer=188743";
41 #else 42 #else
42 "http://support.google.com/chromeos/bin/answer.py?answer=183101"; 43 "http://support.google.com/chromeos/bin/answer.py?answer=183101";
43 #endif 44 #endif
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 KeyboardOverlayUI::KeyboardOverlayUI(content::WebUI* web_ui) 322 KeyboardOverlayUI::KeyboardOverlayUI(content::WebUI* web_ui)
322 : WebDialogUI(web_ui) { 323 : WebDialogUI(web_ui) {
323 Profile* profile = Profile::FromWebUI(web_ui); 324 Profile* profile = Profile::FromWebUI(web_ui);
324 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(profile); 325 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(profile);
325 web_ui->AddMessageHandler(handler); 326 web_ui->AddMessageHandler(handler);
326 327
327 // Set up the chrome://keyboardoverlay/ source. 328 // Set up the chrome://keyboardoverlay/ source.
328 ChromeURLDataManager::AddDataSource(profile, 329 ChromeURLDataManager::AddDataSource(profile,
329 CreateKeyboardOverlayUIHTMLSource()); 330 CreateKeyboardOverlayUIHTMLSource());
330 } 331 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h ('k') | chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698