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

Side by Side Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2821633002: Remove WTF::String::DeprecatedUpper() (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/text/WTFStringTest.cpp ('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 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 DCHECK(GetFrame()); 1047 DCHECK(GetFrame());
1048 1048
1049 if (name.length() <= 2) 1049 if (name.length() <= 2)
1050 return false; 1050 return false;
1051 1051
1052 // Since we don't have NSControl, we will convert the format of command 1052 // Since we don't have NSControl, we will convert the format of command
1053 // string and call the function on Editor directly. 1053 // string and call the function on Editor directly.
1054 String command = name; 1054 String command = name;
1055 1055
1056 // Make sure the first letter is upper case. 1056 // Make sure the first letter is upper case.
1057 command.Replace(0, 1, command.Substring(0, 1).DeprecatedUpper()); 1057 command.Replace(0, 1, command.Substring(0, 1).UpperASCII());
1058 1058
1059 // Remove the trailing ':' if existing. 1059 // Remove the trailing ':' if existing.
1060 if (command[command.length() - 1] == UChar(':')) 1060 if (command[command.length() - 1] == UChar(':'))
1061 command = command.Substring(0, command.length() - 1); 1061 command = command.Substring(0, command.length() - 1);
1062 1062
1063 Node* plugin_lookup_context_node = 1063 Node* plugin_lookup_context_node =
1064 context_menu_node_ && name == "Copy" ? context_menu_node_ : nullptr; 1064 context_menu_node_ && name == "Copy" ? context_menu_node_ : nullptr;
1065 WebPluginContainerImpl* plugin_container = 1065 WebPluginContainerImpl* plugin_container =
1066 CurrentPluginContainer(GetFrame(), plugin_lookup_context_node); 1066 CurrentPluginContainer(GetFrame(), plugin_lookup_context_node);
1067 if (plugin_container && plugin_container->ExecuteEditCommand(name)) 1067 if (plugin_container && plugin_container->ExecuteEditCommand(name))
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
2567 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const { 2567 TextCheckerClient& WebLocalFrameImpl::GetTextCheckerClient() const {
2568 return *text_checker_client_; 2568 return *text_checker_client_;
2569 } 2569 }
2570 2570
2571 void WebLocalFrameImpl::SetTextCheckClient( 2571 void WebLocalFrameImpl::SetTextCheckClient(
2572 WebTextCheckClient* text_check_client) { 2572 WebTextCheckClient* text_check_client) {
2573 text_check_client_ = text_check_client; 2573 text_check_client_ = text_check_client;
2574 } 2574 }
2575 2575
2576 } // namespace blink 2576 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/text/WTFStringTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698