1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/chromeos/input_method/input_method_engine.h"
7 #include "chrome/browser/chromeos/input_method/input_method_engine_ibus.h"
11 InputMethodEngine::KeyboardEvent::KeyboardEvent()
17 InputMethodEngine::KeyboardEvent::~KeyboardEvent() {
20 InputMethodEngine::MenuItem::MenuItem() {
23 InputMethodEngine::MenuItem::~MenuItem() {
26 InputMethodEngine::Candidate::Candidate() {
29 InputMethodEngine::Candidate::~Candidate() {
33 // The default entry number of a page in CandidateWindowProperty.
34 const int kDefaultPageSize = 9;
37 // When the default values are changed, please modify
38 // CandidateWindow::CandidateWindowProperty defined in chromeos/ime/ too.
39 InputMethodEngine::CandidateWindowProperty::CandidateWindowProperty()
40 : page_size(kDefaultPageSize),
41 is_cursor_visible(true),
43 show_window_at_composition(false) {
46 InputMethodEngine::CandidateWindowProperty::~CandidateWindowProperty() {
49 InputMethodEngine::Observer::~Observer() {
52 InputMethodEngine* InputMethodEngine::CreateEngine(
53 InputMethodEngine::Observer* observer,
54 const char* engine_name,
55 const char* extension_id,
56 const char* engine_id,
57 const char* description,
58 const std::vector<std::string>& languages,
59 const std::vector<std::string>& layouts,
60 const GURL& options_page,
63 InputMethodEngineIBus* engine = new InputMethodEngineIBus();
64 engine->Initialize(observer,
76 } // namespace chromeos