OLD | NEW |
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 "ash/display/display_manager.h" | 7 #include "ash/display/display_manager.h" |
8 #include "ash/shell.h" | 8 #include "ash/shell.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 IDS_KEYBOARD_OVERLAY_SWAP_PRIMARY_MONITOR }, | 215 IDS_KEYBOARD_OVERLAY_SWAP_PRIMARY_MONITOR }, |
216 { "keyboardOverlayTakeScreenshot", IDS_KEYBOARD_OVERLAY_TAKE_SCREENSHOT }, | 216 { "keyboardOverlayTakeScreenshot", IDS_KEYBOARD_OVERLAY_TAKE_SCREENSHOT }, |
217 { "keyboardOverlayTaskManager", IDS_KEYBOARD_OVERLAY_TASK_MANAGER }, | 217 { "keyboardOverlayTaskManager", IDS_KEYBOARD_OVERLAY_TASK_MANAGER }, |
218 { "keyboardOverlayToggleBookmarkBar", | 218 { "keyboardOverlayToggleBookmarkBar", |
219 IDS_KEYBOARD_OVERLAY_TOGGLE_BOOKMARK_BAR }, | 219 IDS_KEYBOARD_OVERLAY_TOGGLE_BOOKMARK_BAR }, |
220 { "keyboardOverlayToggleCapsLock", IDS_KEYBOARD_OVERLAY_TOGGLE_CAPS_LOCK }, | 220 { "keyboardOverlayToggleCapsLock", IDS_KEYBOARD_OVERLAY_TOGGLE_CAPS_LOCK }, |
221 { "keyboardOverlayToggleSpeechInput", | 221 { "keyboardOverlayToggleSpeechInput", |
222 IDS_KEYBOARD_OVERLAY_TOGGLE_SPEECH_INPUT }, | 222 IDS_KEYBOARD_OVERLAY_TOGGLE_SPEECH_INPUT }, |
223 { "keyboardOverlayToggleSpokenFeedback", | 223 { "keyboardOverlayToggleSpokenFeedback", |
224 IDS_KEYBOARD_OVERLAY_TOGGLE_SPOKEN_FEEDBACK }, | 224 IDS_KEYBOARD_OVERLAY_TOGGLE_SPOKEN_FEEDBACK }, |
| 225 { "keyboardOverlayToggleTouchHudProjection", |
| 226 IDS_KEYBOARD_OVERLAY_TOGGLE_TOUCH_HUD_PROJECTION }, |
225 { "keyboardOverlayUndo", IDS_KEYBOARD_OVERLAY_UNDO }, | 227 { "keyboardOverlayUndo", IDS_KEYBOARD_OVERLAY_UNDO }, |
226 { "keyboardOverlayViewKeyboardOverlay", | 228 { "keyboardOverlayViewKeyboardOverlay", |
227 IDS_KEYBOARD_OVERLAY_VIEW_KEYBOARD_OVERLAY }, | 229 IDS_KEYBOARD_OVERLAY_VIEW_KEYBOARD_OVERLAY }, |
228 { "keyboardOverlayViewSource", IDS_KEYBOARD_OVERLAY_VIEW_SOURCE }, | 230 { "keyboardOverlayViewSource", IDS_KEYBOARD_OVERLAY_VIEW_SOURCE }, |
229 { "keyboardOverlayWordMove", IDS_KEYBOARD_OVERLAY_WORD_MOVE }, | 231 { "keyboardOverlayWordMove", IDS_KEYBOARD_OVERLAY_WORD_MOVE }, |
230 { "keyboardOverlayZoomIn", IDS_KEYBOARD_OVERLAY_ZOOM_IN }, | 232 { "keyboardOverlayZoomIn", IDS_KEYBOARD_OVERLAY_ZOOM_IN }, |
231 { "keyboardOverlayZoomOut", IDS_KEYBOARD_OVERLAY_ZOOM_OUT }, | 233 { "keyboardOverlayZoomOut", IDS_KEYBOARD_OVERLAY_ZOOM_OUT }, |
232 { "keyboardOverlayZoomScreenIn", IDS_KEYBOARD_OVERLAY_ZOOM_SCREEN_IN }, | 234 { "keyboardOverlayZoomScreenIn", IDS_KEYBOARD_OVERLAY_ZOOM_SCREEN_IN }, |
233 { "keyboardOverlayZoomScreenOut", IDS_KEYBOARD_OVERLAY_ZOOM_SCREEN_OUT }, | 235 { "keyboardOverlayZoomScreenOut", IDS_KEYBOARD_OVERLAY_ZOOM_SCREEN_OUT }, |
234 }; | 236 }; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 | 374 |
373 KeyboardOverlayUI::KeyboardOverlayUI(content::WebUI* web_ui) | 375 KeyboardOverlayUI::KeyboardOverlayUI(content::WebUI* web_ui) |
374 : WebDialogUI(web_ui) { | 376 : WebDialogUI(web_ui) { |
375 Profile* profile = Profile::FromWebUI(web_ui); | 377 Profile* profile = Profile::FromWebUI(web_ui); |
376 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(profile); | 378 KeyboardOverlayHandler* handler = new KeyboardOverlayHandler(profile); |
377 web_ui->AddMessageHandler(handler); | 379 web_ui->AddMessageHandler(handler); |
378 | 380 |
379 // Set up the chrome://keyboardoverlay/ source. | 381 // Set up the chrome://keyboardoverlay/ source. |
380 content::WebUIDataSource::Add(profile, CreateKeyboardOverlayUIHTMLSource()); | 382 content::WebUIDataSource::Add(profile, CreateKeyboardOverlayUIHTMLSource()); |
381 } | 383 } |
OLD | NEW |