Home
last modified time | relevance | path

Searched refs:shortcut (Results 1 – 25 of 110) sorted by relevance

12345

/external/chromium_org/ui/base/accelerators/
Daccelerator.cc181 base::string16 shortcut; in GetShortcutText() local
195 shortcut += key; in GetShortcutText()
199 shortcut += in GetShortcutText()
203 shortcut = l10n_util::GetStringUTF16(string_id); in GetShortcutText()
212 if (base::i18n::IsRTL() && shortcut.length() == 1 && in GetShortcutText()
213 !IsAsciiAlpha(shortcut[0]) && !IsAsciiDigit(shortcut[0])) { in GetShortcutText()
215 shortcut_rtl.assign(shortcut); in GetShortcutText()
219 shortcut = l10n_util::GetStringFUTF16(IDS_APP_SHIFT_MODIFIER, shortcut); in GetShortcutText()
225 shortcut = l10n_util::GetStringFUTF16(IDS_APP_CONTROL_MODIFIER, shortcut); in GetShortcutText()
227 shortcut = l10n_util::GetStringFUTF16(IDS_APP_ALT_MODIFIER, shortcut); in GetShortcutText()
[all …]
/external/chromium_org/chrome/browser/history/
Dshortcuts_database.cc31 const history::ShortcutsDatabase::Shortcut& shortcut, in BindShortcutToStatement() argument
33 DCHECK(base::IsValidGUID(shortcut.id)); in BindShortcutToStatement()
34 s->BindString(0, shortcut.id); in BindShortcutToStatement()
35 s->BindString16(1, shortcut.text); in BindShortcutToStatement()
36 s->BindString16(2, shortcut.match_core.fill_into_edit); in BindShortcutToStatement()
37 s->BindString(3, shortcut.match_core.destination_url.spec()); in BindShortcutToStatement()
38 s->BindString16(4, shortcut.match_core.contents); in BindShortcutToStatement()
39 s->BindString(5, shortcut.match_core.contents_class); in BindShortcutToStatement()
40 s->BindString16(6, shortcut.match_core.description); in BindShortcutToStatement()
41 s->BindString(7, shortcut.match_core.description_class); in BindShortcutToStatement()
[all …]
Dshortcuts_database_unittest.cc157 ShortcutsDatabase::Shortcut shortcut( in TEST_F() local
159 shortcut.match_core.contents = ASCIIToUTF16("gro.todhsals"); in TEST_F()
160 EXPECT_TRUE(db_->UpdateShortcut(shortcut)); in TEST_F()
164 shortcuts.find(shortcut.id)); in TEST_F()
166 EXPECT_TRUE(it->second.match_core.contents == shortcut.match_core.contents); in TEST_F()
/external/chromium_org/chrome/common/extensions/
Dcommand.cc304 std::string shortcut; in AcceleratorToString() local
308 shortcut += values::kKeyCtrl; in AcceleratorToString()
310 shortcut += values::kKeyAlt; in AcceleratorToString()
311 if (!shortcut.empty()) in AcceleratorToString()
312 shortcut += values::kKeySeparator; in AcceleratorToString()
317 shortcut += values::kKeySearch; in AcceleratorToString()
319 shortcut += values::kKeyCommand; in AcceleratorToString()
321 shortcut += values::kKeySeparator; in AcceleratorToString()
325 shortcut += values::kKeyShift; in AcceleratorToString()
326 shortcut += values::kKeySeparator; in AcceleratorToString()
[all …]
/external/chromium_org/ui/webui/resources/js/cr/ui/
Dcommand.js26 function KeyboardShortcut(shortcut) { argument
29 shortcut.split('-').forEach(function(part) {
84 this.shortcut = this.getAttribute('shortcut');
132 get shortcut() { getter in Command
135 set shortcut(shortcut) { setter in Command
137 if (shortcut !== oldShortcut) {
138 this.keyboardShortcuts_ = shortcut.split(/\s+/).map(function(shortcut) { argument
139 return new KeyboardShortcut(shortcut);
143 this.shortcut_ = shortcut;
Dmenu_item.js133 !this.command_.shortcut ||
137 var shortcuts = this.command_.shortcut.split(/\s+/);
142 var shortcut = shortcuts[0];
145 shortcut.split('-').forEach(function(part) {
/external/chromium_org/chrome/browser/autocomplete/
Dshortcuts_provider.cc185 const history::ShortcutsDatabase::Shortcut& shortcut, in ShortcutToACMatch() argument
194 match.fill_into_edit = shortcut.match_core.fill_into_edit; in ShortcutToACMatch()
195 match.destination_url = shortcut.match_core.destination_url; in ShortcutToACMatch()
197 match.contents = shortcut.match_core.contents; in ShortcutToACMatch()
199 shortcut.match_core.contents_class); in ShortcutToACMatch()
200 match.description = shortcut.match_core.description; in ShortcutToACMatch()
202 shortcut.match_core.description_class); in ShortcutToACMatch()
203 match.transition = ui::PageTransitionFromInt(shortcut.match_core.transition); in ShortcutToACMatch()
204 match.type = static_cast<AutocompleteMatch::Type>(shortcut.match_core.type); in ShortcutToACMatch()
205 match.keyword = shortcut.match_core.keyword; in ShortcutToACMatch()
[all …]
Dshortcuts_backend_unittest.cc53 bool AddShortcut(const history::ShortcutsDatabase::Shortcut& shortcut);
54 bool UpdateShortcut(const history::ShortcutsDatabase::Shortcut& shortcut);
153 const history::ShortcutsDatabase::Shortcut& shortcut) { in AddShortcut() argument
154 return backend_->AddShortcut(shortcut); in AddShortcut()
158 const history::ShortcutsDatabase::Shortcut& shortcut) { in UpdateShortcut() argument
159 return backend_->UpdateShortcut(shortcut); in UpdateShortcut()
251 history::ShortcutsDatabase::Shortcut shortcut( in TEST_F() local
254 EXPECT_TRUE(AddShortcut(shortcut)); in TEST_F()
257 shortcuts_map().find(shortcut.text)); in TEST_F()
259 EXPECT_EQ(shortcut.id, shortcut_iter->second.id); in TEST_F()
[all …]
Dshortcuts_backend.cc235 const history::ShortcutsDatabase::Shortcut& shortcut) { in AddShortcut() argument
238 DCHECK(guid_map_.find(shortcut.id) == guid_map_.end()); in AddShortcut()
239 guid_map_[shortcut.id] = shortcuts_map_.insert( in AddShortcut()
240 std::make_pair(base::i18n::ToLower(shortcut.text), shortcut)); in AddShortcut()
248 db_.get(), shortcut)); in AddShortcut()
252 const history::ShortcutsDatabase::Shortcut& shortcut) { in UpdateShortcut() argument
255 GuidMap::iterator it(guid_map_.find(shortcut.id)); in UpdateShortcut()
258 guid_map_[shortcut.id] = shortcuts_map_.insert( in UpdateShortcut()
259 std::make_pair(base::i18n::ToLower(shortcut.text), shortcut)); in UpdateShortcut()
267 db_.get(), shortcut)); in UpdateShortcut()
Dshortcuts_provider_unittest.cc284 const history::ShortcutsDatabase::Shortcut& shortcut,
326 history::ShortcutsDatabase::Shortcut shortcut( in FillData() local
335 backend_->AddShortcut(shortcut); in FillData()
395 const history::ShortcutsDatabase::Shortcut& shortcut, in CalculateScore() argument
397 return provider_->CalculateScore(ASCIIToUTF16(terms), shortcut, in CalculateScore()
715 history::ShortcutsDatabase::Shortcut shortcut( in TEST_F() local
727 const int kMaxScore = CalculateScore("test", shortcut, max_relevance); in TEST_F()
730 int score_three_quarters = CalculateScore("tes", shortcut, max_relevance); in TEST_F()
732 int score_one_half = CalculateScore("te", shortcut, max_relevance); in TEST_F()
734 int score_one_quarter = CalculateScore("t", shortcut, max_relevance); in TEST_F()
[all …]
Dshortcuts_provider.h57 const history::ShortcutsDatabase::Shortcut& shortcut,
101 const history::ShortcutsDatabase::Shortcut& shortcut,
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/main/
DMain.js465 var shortcut = WebInspector.KeyboardShortcut;
468 shortcut.makeDescriptor("[", shortcut.Modifiers.CtrlOrMeta),
469 shortcut.makeDescriptor("]", shortcut.Modifiers.CtrlOrMeta)
474 shortcut.makeDescriptor("[", shortcut.Modifiers.CtrlOrMeta | shortcut.Modifiers.Alt),
475 shortcut.makeDescriptor("]", shortcut.Modifiers.CtrlOrMeta | shortcut.Modifiers.Alt)
480 …section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tilde, shortcut.Modifiers.Ctrl), toggleConsol…
481 …section.addKey(shortcut.makeDescriptor(shortcut.Keys.Esc), WebInspector.UIString("Toggle drawer"));
483 …section.addKey(shortcut.makeDescriptor("M", shortcut.Modifiers.CtrlOrMeta | shortcut.Modifiers.Shi…
484 …section.addKey(shortcut.makeDescriptor("f", shortcut.Modifiers.CtrlOrMeta), WebInspector.UIString(…
489 var advancedSearchShortcut = shortcut.makeDescriptor("f", advancedSearchShortcutModifier);
[all …]
/external/chromium_org/chrome/browser/resources/chromeos/
Dkeyboard_overlay.css73 .keyboard-overlay-key.is-shortcut {
80 .keyboard-overlay-key.is-shortcut.modifier-shift {
84 .keyboard-overlay-key.is-shortcut.modifier-ctrl {
88 .keyboard-overlay-key.is-shortcut.modifier-alt {
92 .keyboard-overlay-key.is-shortcut.modifier-search {
96 .keyboard-overlay-key.is-shortcut.modifier-shift.modifier-ctrl {
100 .keyboard-overlay-key.is-shortcut.modifier-shift.modifier-alt {
104 .keyboard-overlay-key.is-shortcut.modifier-ctrl.modifier-alt {
108 .keyboard-overlay-key.is-shortcut.modifier-shift.modifier-ctrl.modifier-alt {
171 .keyboard-overlay-shortcut-text {
[all …]
/external/chromium_org/chrome/utility/importer/
Dbookmark_html_reader_unittest.cc60 base::string16 shortcut; in TEST() local
66 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); in TEST()
70 EXPECT_EQ(L"\x4E2D", UTF16ToWide(shortcut)); in TEST()
77 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); in TEST()
81 EXPECT_EQ(base::string16(), shortcut); in TEST()
87 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); in TEST()
91 EXPECT_EQ(base::string16(), shortcut); in TEST()
98 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); in TEST()
102 EXPECT_EQ(base::string16(), shortcut); in TEST()
112 charset, &title, &url, &favicon, &shortcut, &add_date, &post_data); in TEST()
[all …]
Dbookmark_html_reader.cc140 base::string16 shortcut; in ImportBookmarksFile() local
149 &url, &favicon, &shortcut, in ImportBookmarksFile()
309 base::string16* shortcut, in ParseBookmarkFromLine() argument
324 shortcut->clear(); in ParseBookmarkFromLine()
368 base::OnStringConversionError::SKIP, shortcut); in ParseBookmarkFromLine()
369 *shortcut = net::UnescapeForHTML(*shortcut); in ParseBookmarkFromLine()
/external/chromium_org/chrome/browser/
Dglobal_keyboard_shortcuts_mac.mm95 const KeyboardShortcutData& shortcut,
99 DCHECK((shortcut.key_char == 0) ^ (shortcut.vkey_code == 0));
100 if (shortcut.key_char) {
101 // The given shortcut key is to be matched by a keyboard character.
104 if (shortcut.command_key == command_key &&
105 shortcut.cntrl_key == cntrl_key &&
106 shortcut.key_char == key_char)
108 } else if (shortcut.vkey_code) {
109 // The given shortcut key is to be matched by a virtual key code.
110 if (shortcut.command_key == command_key &&
[all …]
Dshell_integration_win.cc457 for (base::FilePath shortcut = shortcuts_enum.Next(); !shortcut.empty(); in MigrateShortcutsInPathInternal() local
458 shortcut = shortcuts_enum.Next()) { in MigrateShortcutsInPathInternal()
461 if (!base::win::ResolveShortcut(shortcut, &target_path, &arguments) || in MigrateShortcutsInPathInternal()
480 FAILED(persist_file->Load(shortcut.value().c_str(), STGM_READ))) { in MigrateShortcutsInPathInternal()
481 DLOG(WARNING) << "Failed loading shortcut at " << shortcut.value(); in MigrateShortcutsInPathInternal()
550 shortcut, updated_properties, in MigrateShortcutsInPathInternal()
567 base::FilePath shortcut; in GetStartMenuShortcut() local
574 if (!PathService::Get(kFolderIds[folder], &shortcut)) { in GetStartMenuShortcut()
579 shortcut = shortcut.Append(shortcut_name).Append(shortcut_name + in GetStartMenuShortcut()
581 if (base::PathExists(shortcut)) in GetStartMenuShortcut()
[all …]
/external/chromium_org/win8/metro_driver/
Dwinrt_utils.cc172 bool GetArgumentsFromShortcut(const base::FilePath& shortcut, in GetArgumentsFromShortcut() argument
191 result = persist->Load(shortcut.value().c_str(), STGM_READ); in GetArgumentsFromShortcut()
208 base::FilePath shortcut(path_buffer); in ReadArgumentsFromPinnedTaskbarShortcut() local
209 shortcut = shortcut.Append( in ReadArgumentsFromPinnedTaskbarShortcut()
215 shortcut = shortcut.Append(link_name); in ReadArgumentsFromPinnedTaskbarShortcut()
218 if (GetArgumentsFromShortcut(shortcut, &arguments)) { in ReadArgumentsFromPinnedTaskbarShortcut()
/external/chromium_org/base/win/
Dshortcut.cc29 const wchar_t* shortcut, in InitializeShortcutInterfaces() argument
37 (shortcut && FAILED((*i_persist_file)->Load(shortcut, STGM_READWRITE)))) { in InitializeShortcutInterfaces()
308 bool TaskbarPinShortcutLink(const wchar_t* shortcut) { in TaskbarPinShortcutLink() argument
315 int result = reinterpret_cast<int>(ShellExecute(NULL, L"taskbarpin", shortcut, in TaskbarPinShortcutLink()
320 bool TaskbarUnpinShortcutLink(const wchar_t* shortcut) { in TaskbarUnpinShortcutLink() argument
328 shortcut, NULL, NULL, 0)); in TaskbarUnpinShortcutLink()
Dshortcut.h156 BASE_EXPORT bool TaskbarPinShortcutLink(const wchar_t* shortcut);
161 BASE_EXPORT bool TaskbarUnpinShortcutLink(const wchar_t* shortcut);
/external/chromium_org/win8/delegate_execute/
Ddelegate_execute_operation.cc25 base::FilePath shortcut( in Init() local
30 if (shortcut.empty() && in Init()
35 relaunch_shortcut_ = shortcut; in Init()
Ddelegate_execute.cc133 sei.lpFile = operation.shortcut().value().c_str(); in RelaunchChrome()
162 sei.lpFile = (launch_ash || operation.shortcut().empty()) ? in RelaunchChrome()
164 operation.shortcut().value().c_str(); in RelaunchChrome()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/console/
DConsoleView.js707 var shortcut = WebInspector.KeyboardShortcut;
710 var shortcutL = shortcut.makeDescriptor("l", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
714 … var shortcutK = shortcut.makeDescriptor("k", WebInspector.KeyboardShortcut.Modifiers.Meta);
720 …section.addKey(shortcut.makeDescriptor(shortcut.Keys.Tab), WebInspector.UIString("Autocomplete com…
721 …section.addKey(shortcut.makeDescriptor(shortcut.Keys.Right), WebInspector.UIString("Accept suggest…
723 var shortcutU = shortcut.makeDescriptor("u", WebInspector.KeyboardShortcut.Modifiers.Ctrl);
728 shortcut.makeDescriptor(shortcut.Keys.Down),
729 shortcut.makeDescriptor(shortcut.Keys.Up)
735 shortcut.makeDescriptor("N", shortcut.Modifiers.Alt),
736 shortcut.makeDescriptor("P", shortcut.Modifiers.Alt)
[all …]
/external/chromium_org/chrome/browser/resources/extensions/
Dextension_commands_overlay.css27 .command-shortcut-container {
33 .command-shortcut {
43 .command-shortcut-text {
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ui/
DKeyboardShortcut.js213 WebInspector.KeyboardShortcut.makeDescriptorFromBindingShortcut = function(shortcut) argument
215 var parts = shortcut.split(/\+(?!$)/);
223 …== parts.length - 1, "Only one key other than modifier is allowed in shortcut <" + shortcut + ">");
227 …console.assert(keyString, "Modifiers-only shortcuts are not allowed (encountered <" + shortcut + "…

12345