| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/spellchecker/spellcheck_action.h" | 5 #include "components/spellcheck/browser/spellcheck_action.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 | 9 |
| 10 SpellcheckAction::SpellcheckAction() : type_(TYPE_PENDING), index_(-1) {} | 10 SpellcheckAction::SpellcheckAction() : type_(TYPE_PENDING), index_(-1) {} |
| 11 | 11 |
| 12 SpellcheckAction::SpellcheckAction(SpellcheckActionType type, | 12 SpellcheckAction::SpellcheckAction(SpellcheckActionType type, |
| 13 int index, | 13 int index, |
| 14 base::string16 value) | 14 base::string16 value) |
| 15 : type_(type), index_(index), value_(value) {} | 15 : type_(type), index_(index), value_(value) {} |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 case TYPE_PENDING: | 65 case TYPE_PENDING: |
| 66 case TYPE_PENDING_IGNORE: | 66 case TYPE_PENDING_IGNORE: |
| 67 result->SetString("actionType", "PENDING"); | 67 result->SetString("actionType", "PENDING"); |
| 68 break; | 68 break; |
| 69 default: | 69 default: |
| 70 NOTREACHED(); | 70 NOTREACHED(); |
| 71 break; | 71 break; |
| 72 } | 72 } |
| 73 return result; | 73 return result; |
| 74 } | 74 } |
| OLD | NEW |