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

Unified Diff: chromeos/dbus/ibus/ibus_lookup_table.cc

Issue 24946003: Rename IBusLookupTable to CandidateWindow, and move it to chromeos/ime. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/ibus/ibus_lookup_table.h ('k') | chromeos/dbus/ibus/ibus_lookup_table_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/ibus/ibus_lookup_table.cc
diff --git a/chromeos/dbus/ibus/ibus_lookup_table.cc b/chromeos/dbus/ibus/ibus_lookup_table.cc
deleted file mode 100644
index 0d54b158bbbeedfef87055890c27f5ab5d2ee6ce..0000000000000000000000000000000000000000
--- a/chromeos/dbus/ibus/ibus_lookup_table.cc
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chromeos/dbus/ibus/ibus_lookup_table.h"
-
-#include <string>
-#include "base/logging.h"
-#include "base/values.h"
-
-namespace chromeos {
-
-namespace {
-// The default entry number of a page in IBusLookupTable.
-const int kDefaultPageSize = 9;
-} // namespace
-
-///////////////////////////////////////////////////////////////////////////////
-// IBusLookupTable
-IBusLookupTable::IBusLookupTable()
- : property_(new CandidateWindowProperty) {
-}
-
-IBusLookupTable::~IBusLookupTable() {
-}
-
-bool IBusLookupTable::IsEqual(const IBusLookupTable& table) const {
- if (page_size() != table.page_size() ||
- cursor_position() != table.cursor_position() ||
- is_cursor_visible() != table.is_cursor_visible() ||
- orientation() != table.orientation() ||
- show_window_at_composition() != table.show_window_at_composition() ||
- candidates_.size() != table.candidates_.size())
- return false;
-
- for (size_t i = 0; i < candidates_.size(); ++i) {
- const Entry& left = candidates_[i];
- const Entry& right = table.candidates_[i];
- if (left.value != right.value ||
- left.label != right.label ||
- left.annotation != right.annotation ||
- left.description_title != right.description_title ||
- left.description_body != right.description_body)
- return false;
- }
- return true;
-}
-
-void IBusLookupTable::CopyFrom(const IBusLookupTable& table) {
- SetProperty(table.GetProperty());
- candidates_.clear();
- candidates_ = table.candidates_;
-}
-
-
-// When the default values are changed, please modify
-// InputMethodEngine::CandidateWindowProperty too.
-IBusLookupTable::CandidateWindowProperty::CandidateWindowProperty()
- : page_size(kDefaultPageSize),
- cursor_position(0),
- is_cursor_visible(true),
- is_vertical(false),
- show_window_at_composition(false) {
-}
-
-IBusLookupTable::CandidateWindowProperty::~CandidateWindowProperty() {
-}
-
-IBusLookupTable::Entry::Entry() {
-}
-
-IBusLookupTable::Entry::~Entry() {
-}
-
-} // namespace chromeos
« no previous file with comments | « chromeos/dbus/ibus/ibus_lookup_table.h ('k') | chromeos/dbus/ibus/ibus_lookup_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698