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

Side by Side Diff: chrome/browser/extensions/api/braille_display_private/brlapi_keycode_map.cc

Issue 1556783002: Convert Pass()→std::move() for CrOS extension code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/api/braille_display_private/brlapi_keycode_m ap.h" 5 #include "chrome/browser/extensions/api/braille_display_private/brlapi_keycode_m ap.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/strings/stringprintf.h" 9 #include "base/strings/stringprintf.h"
10 #include "base/strings/utf_string_conversion_utils.h" 10 #include "base/strings/utf_string_conversion_utils.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 switch (code & BRLAPI_KEY_TYPE_MASK) { 158 switch (code & BRLAPI_KEY_TYPE_MASK) {
159 case BRLAPI_KEY_TYPE_SYM: 159 case BRLAPI_KEY_TYPE_SYM:
160 MapKeySym(code, result.get()); 160 MapKeySym(code, result.get());
161 break; 161 break;
162 case BRLAPI_KEY_TYPE_CMD: 162 case BRLAPI_KEY_TYPE_CMD:
163 MapCommand(code, result.get()); 163 MapCommand(code, result.get());
164 break; 164 break;
165 } 165 }
166 if (result->command == KEY_COMMAND_NONE) 166 if (result->command == KEY_COMMAND_NONE)
167 result.reset(); 167 result.reset();
168 return result.Pass(); 168 return result;
169 } 169 }
170 170
171 } // namespace braille_display_private 171 } // namespace braille_display_private
172 } // namespace api 172 } // namespace api
173 } // namespace extensions 173 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698