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

Side by Side Diff: ui/base/ime/chromeos/input_method_descriptor.h

Issue 1871743003: ui: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ 5 #ifndef UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_
6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ui/base/ime/ui_base_ime_export.h" 11 #include "ui/base/ime/ui_base_ime_export.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 namespace input_method { 15 namespace input_method {
16 16
17 // A structure which represents an input method. 17 // A structure which represents an input method.
18 class UI_BASE_IME_EXPORT InputMethodDescriptor { 18 class UI_BASE_IME_EXPORT InputMethodDescriptor {
19 public: 19 public:
20 InputMethodDescriptor(); 20 InputMethodDescriptor();
21 InputMethodDescriptor(const std::string& id, 21 InputMethodDescriptor(const std::string& id,
22 const std::string& name, 22 const std::string& name,
23 const std::string& indicator, 23 const std::string& indicator,
24 const std::vector<std::string>& keyboard_layouts, 24 const std::vector<std::string>& keyboard_layouts,
25 const std::vector<std::string>& language_codes, 25 const std::vector<std::string>& language_codes,
26 bool is_login_keyboard, 26 bool is_login_keyboard,
27 const GURL& options_page_url, 27 const GURL& options_page_url,
28 const GURL& input_view_url); 28 const GURL& input_view_url);
29 InputMethodDescriptor(const InputMethodDescriptor& other);
29 ~InputMethodDescriptor(); 30 ~InputMethodDescriptor();
30 31
31 // Accessors 32 // Accessors
32 const std::string& id() const { return id_; } 33 const std::string& id() const { return id_; }
33 const std::string& name() const { return name_; } 34 const std::string& name() const { return name_; }
34 const std::string& indicator() const { return indicator_; } 35 const std::string& indicator() const { return indicator_; }
35 const std::vector<std::string>& language_codes() const { 36 const std::vector<std::string>& language_codes() const {
36 return language_codes_; 37 return language_codes_;
37 } 38 }
38 const GURL& options_page_url() const { return options_page_url_; } 39 const GURL& options_page_url() const { return options_page_url_; }
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 // This field is valid only for input method extension. 83 // This field is valid only for input method extension.
83 GURL input_view_url_; 84 GURL input_view_url_;
84 }; 85 };
85 86
86 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors; 87 typedef std::vector<InputMethodDescriptor> InputMethodDescriptors;
87 88
88 } // namespace input_method 89 } // namespace input_method
89 } // namespace chromeos 90 } // namespace chromeos
90 91
91 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_ 92 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/component_extension_ime_manager.cc ('k') | ui/base/ime/chromeos/input_method_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698