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

Side by Side Diff: ash/common/system/tray/ime_info.cc

Issue 2271483003: Updates the IME list when the IME has refreshed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "ash/common/system/tray/ime_info.h" 5 #include "ash/common/system/tray/ime_info.h"
6 6
7 #include "base/strings/utf_string_conversions.h"
8
7 namespace ash { 9 namespace ash {
8 10
9 IMEInfo::IMEInfo() : selected(false), third_party(false) {} 11 IMEInfo::IMEInfo() : selected(false), third_party(false) {}
10 12
13 IMEInfo::IMEInfo(bool selected,
14 bool third_party,
15 const std::string& id,
16 const std::string& name,
17 const std::string& medium_name,
18 const std::string& short_name) {
19 this->selected = selected;
20 this->third_party = third_party;
21 this->id = id;
22 this->name = base::UTF8ToUTF16(name);
23 this->medium_name = base::UTF8ToUTF16(medium_name);
24 this->short_name = base::UTF8ToUTF16(short_name);
25 }
26
11 IMEInfo::IMEInfo(const IMEInfo& other) = default; 27 IMEInfo::IMEInfo(const IMEInfo& other) = default;
12 28
13 IMEInfo::~IMEInfo() {} 29 IMEInfo::~IMEInfo() {}
14 30
15 IMEPropertyInfo::IMEPropertyInfo() : selected(false) {} 31 IMEPropertyInfo::IMEPropertyInfo() : selected(false) {}
16 32
17 IMEPropertyInfo::~IMEPropertyInfo() {} 33 IMEPropertyInfo::~IMEPropertyInfo() {}
18 34
19 } // namespace ash 35 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698