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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_engine_ibus.cc

Issue 11783085: Extends IBusLookupTable to handle IsEqual/CopyFrom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/chromeos/input_method/input_method_engine_ibus.h" 5 #include "chrome/browser/chromeos/input_method/input_method_engine_ibus.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 return true; 215 return true;
216 } 216 }
217 217
218 void InputMethodEngineIBus::SetCandidateWindowCursorVisible(bool visible) { 218 void InputMethodEngineIBus::SetCandidateWindowCursorVisible(bool visible) {
219 table_->set_is_cursor_visible(visible); 219 table_->set_is_cursor_visible(visible);
220 if (active_) 220 if (active_)
221 GetCurrentService()->UpdateLookupTable(*table_.get(), window_visible_); 221 GetCurrentService()->UpdateLookupTable(*table_.get(), window_visible_);
222 } 222 }
223 223
224 void InputMethodEngineIBus::SetCandidateWindowVertical(bool vertical) { 224 void InputMethodEngineIBus::SetCandidateWindowVertical(bool vertical) {
225 table_->set_orientation( 225 table_->set_orientation(vertical ? ibus::IBusLookupTable::VERTICAL :
226 vertical ? ibus::IBusLookupTable::IBUS_LOOKUP_TABLE_ORIENTATION_VERTICAL : 226 ibus::IBusLookupTable::HORIZONTAL);
227 ibus::IBusLookupTable::IBUS_LOOKUP_TABLE_ORIENTATION_HORIZONTAL);
228 if (active_) 227 if (active_)
229 GetCurrentService()->UpdateLookupTable(*table_.get(), window_visible_); 228 GetCurrentService()->UpdateLookupTable(*table_.get(), window_visible_);
230 } 229 }
231 230
232 void InputMethodEngineIBus::SetCandidateWindowPageSize(int size) { 231 void InputMethodEngineIBus::SetCandidateWindowPageSize(int size) {
233 table_->set_page_size(size); 232 table_->set_page_size(size);
234 if (active_) 233 if (active_)
235 GetCurrentService()->UpdateLookupTable(*table_.get(), window_visible_); 234 GetCurrentService()->UpdateLookupTable(*table_.get(), window_visible_);
236 } 235 }
237 236
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 DBusThreadManager::Get()->RemoveIBusEngineService(object_path_); 575 DBusThreadManager::Get()->RemoveIBusEngineService(object_path_);
577 576
578 current_object_path_++; 577 current_object_path_++;
579 object_path_ = dbus::ObjectPath(kObjectPathPrefix + 578 object_path_ = dbus::ObjectPath(kObjectPathPrefix +
580 base::IntToString(current_object_path_)); 579 base::IntToString(current_object_path_));
581 GetCurrentService()->SetEngine(this); 580 GetCurrentService()->SetEngine(this);
582 sender.Run(object_path_); 581 sender.Run(object_path_);
583 } 582 }
584 583
585 } // namespace chromeos 584 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/input_method/ibus_ui_controller.cc ('k') | chromeos/dbus/ibus/ibus_lookup_table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698