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

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

Issue 7222006: Add missing shortcuts to the keyboard overlay. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« no previous file with comments | « chrome/browser/resources/keyboard_overlay_data.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ui/webui/chromeos/keyboard_overlay_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 { "keyboardOverlayDeveloperTools", IDS_KEYBOARD_OVERLAY_DEVELOPER_TOOLS }, 78 { "keyboardOverlayDeveloperTools", IDS_KEYBOARD_OVERLAY_DEVELOPER_TOOLS },
79 { "keyboardOverlayDomInspector", IDS_KEYBOARD_OVERLAY_DOM_INSPECTOR }, 79 { "keyboardOverlayDomInspector", IDS_KEYBOARD_OVERLAY_DOM_INSPECTOR },
80 { "keyboardOverlayDownloads", IDS_KEYBOARD_OVERLAY_DOWNLOADS }, 80 { "keyboardOverlayDownloads", IDS_KEYBOARD_OVERLAY_DOWNLOADS },
81 { "keyboardOverlayEnd", IDS_KEYBOARD_OVERLAY_END }, 81 { "keyboardOverlayEnd", IDS_KEYBOARD_OVERLAY_END },
82 { "keyboardOverlayFindAgain", IDS_KEYBOARD_OVERLAY_FIND_AGAIN }, 82 { "keyboardOverlayFindAgain", IDS_KEYBOARD_OVERLAY_FIND_AGAIN },
83 { "keyboardOverlayFindPrevious", IDS_KEYBOARD_OVERLAY_FIND_PREVIOUS }, 83 { "keyboardOverlayFindPrevious", IDS_KEYBOARD_OVERLAY_FIND_PREVIOUS },
84 { "keyboardOverlayFindText", IDS_KEYBOARD_OVERLAY_FIND_TEXT }, 84 { "keyboardOverlayFindText", IDS_KEYBOARD_OVERLAY_FIND_TEXT },
85 { "keyboardOverlayFocusAddressBar", IDS_KEYBOARD_OVERLAY_FOCUS_ADDRESS_BAR }, 85 { "keyboardOverlayFocusAddressBar", IDS_KEYBOARD_OVERLAY_FOCUS_ADDRESS_BAR },
86 { "keyboardOverlayFocusAddressBarInSearchMode", 86 { "keyboardOverlayFocusAddressBarInSearchMode",
87 IDS_KEYBOARD_OVERLAY_FOCUS_ADDRESS_BAR_IN_SEARCH_MODE }, 87 IDS_KEYBOARD_OVERLAY_FOCUS_ADDRESS_BAR_IN_SEARCH_MODE },
88 { "keyboardOverlayFocusBookmarks", IDS_KEYBOARD_OVERLAY_FOCUS_BOOKMARKS },
89 { "keyboardOverlayFocusStatusIcon", IDS_KEYBOARD_OVERLAY_FOCUS_STATUS_ICON },
90 { "keyboardOverlayFocusToolbar", IDS_KEYBOARD_OVERLAY_FOCUS_TOOLBAR },
91 { "keyboardOverlayFocusWrenchMenu", IDS_KEYBOARD_OVERLAY_FOCUS_WRENCH_MENU },
88 { "keyboardOverlayForward", IDS_KEYBOARD_OVERLAY_FORWARD }, 92 { "keyboardOverlayForward", IDS_KEYBOARD_OVERLAY_FORWARD },
89 { "keyboardOverlayHelp", IDS_KEYBOARD_OVERLAY_HELP }, 93 { "keyboardOverlayHelp", IDS_KEYBOARD_OVERLAY_HELP },
90 { "keyboardOverlayHistory", IDS_KEYBOARD_OVERLAY_HISTORY }, 94 { "keyboardOverlayHistory", IDS_KEYBOARD_OVERLAY_HISTORY },
91 { "keyboardOverlayHome", IDS_KEYBOARD_OVERLAY_HOME }, 95 { "keyboardOverlayHome", IDS_KEYBOARD_OVERLAY_HOME },
92 { "keyboardOverlayInputUnicodeCharacters", 96 { "keyboardOverlayInputUnicodeCharacters",
93 IDS_KEYBOARD_OVERLAY_INPUT_UNICODE_CHARACTERS }, 97 IDS_KEYBOARD_OVERLAY_INPUT_UNICODE_CHARACTERS },
98 { "keyboardOverlayJavascriptConsole",
99 IDS_KEYBOARD_OVERLAY_JAVASCRIPT_CONSOLE },
94 { "keyboardOverlayLockScreenOrPowerOff", 100 { "keyboardOverlayLockScreenOrPowerOff",
95 IDS_KEYBOARD_OVERLAY_LOCK_SCREEN_OR_POWER_OFF }, 101 IDS_KEYBOARD_OVERLAY_LOCK_SCREEN_OR_POWER_OFF },
96 { "keyboardOverlayNewIncognitoWindow", 102 { "keyboardOverlayNewIncognitoWindow",
97 IDS_KEYBOARD_OVERLAY_NEW_INCOGNITO_WINDOW }, 103 IDS_KEYBOARD_OVERLAY_NEW_INCOGNITO_WINDOW },
98 { "keyboardOverlayNewTab", IDS_KEYBOARD_OVERLAY_NEW_TAB }, 104 { "keyboardOverlayNewTab", IDS_KEYBOARD_OVERLAY_NEW_TAB },
99 { "keyboardOverlayNewWindow", IDS_KEYBOARD_OVERLAY_NEW_WINDOW }, 105 { "keyboardOverlayNewWindow", IDS_KEYBOARD_OVERLAY_NEW_WINDOW },
100 { "keyboardOverlayNextWindow", IDS_KEYBOARD_OVERLAY_NEXT_WINDOW }, 106 { "keyboardOverlayNextWindow", IDS_KEYBOARD_OVERLAY_NEXT_WINDOW },
101 { "keyboardOverlayOpenAddressInNewTab", 107 { "keyboardOverlayOpenAddressInNewTab",
102 IDS_KEYBOARD_OVERLAY_OPEN_ADDRESS_IN_NEW_TAB }, 108 IDS_KEYBOARD_OVERLAY_OPEN_ADDRESS_IN_NEW_TAB },
103 { "keyboardOverlayOpenFileManager", IDS_KEYBOARD_OVERLAY_OPEN_FILE_MANAGER }, 109 { "keyboardOverlayOpenFileManager", IDS_KEYBOARD_OVERLAY_OPEN_FILE_MANAGER },
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents) 301 KeyboardOverlayUI::KeyboardOverlayUI(TabContents* contents)
296 : HtmlDialogUI(contents) { 302 : HtmlDialogUI(contents) {
297 KeyboardOverlayHandler* handler = 303 KeyboardOverlayHandler* handler =
298 new KeyboardOverlayHandler(contents->profile()); 304 new KeyboardOverlayHandler(contents->profile());
299 AddMessageHandler((handler)->Attach(this)); 305 AddMessageHandler((handler)->Attach(this));
300 KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource(); 306 KeyboardOverlayUIHTMLSource* html_source = new KeyboardOverlayUIHTMLSource();
301 307
302 // Set up the chrome://keyboardoverlay/ source. 308 // Set up the chrome://keyboardoverlay/ source.
303 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); 309 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source);
304 } 310 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/keyboard_overlay_data.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698