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

Unified Diff: chromeos/ime/candidate_window.cc

Issue 132453002: Moves CandidateWindow model to ui/base/ime (2nd) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/ime/candidate_window.h ('k') | chromeos/ime/candidate_window_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/ime/candidate_window.cc
diff --git a/chromeos/ime/candidate_window.cc b/chromeos/ime/candidate_window.cc
deleted file mode 100644
index 9fb22ea436b1a0151f2c83997c9597485f58fdc4..0000000000000000000000000000000000000000
--- a/chromeos/ime/candidate_window.cc
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2013 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/ime/candidate_window.h"
-
-#include <string>
-#include "base/logging.h"
-#include "base/values.h"
-
-namespace chromeos {
-namespace input_method {
-
-namespace {
-// The default entry number of a page in CandidateWindow.
-const int kDefaultPageSize = 9;
-} // namespace
-
-CandidateWindow::CandidateWindow()
- : property_(new CandidateWindowProperty) {
-}
-
-CandidateWindow::~CandidateWindow() {
-}
-
-bool CandidateWindow::IsEqual(const CandidateWindow& cw) const {
- if (page_size() != cw.page_size() ||
- cursor_position() != cw.cursor_position() ||
- is_cursor_visible() != cw.is_cursor_visible() ||
- orientation() != cw.orientation() ||
- show_window_at_composition() != cw.show_window_at_composition() ||
- is_auxiliary_text_visible() != cw.is_auxiliary_text_visible() ||
- auxiliary_text() != cw.auxiliary_text() ||
- candidates_.size() != cw.candidates_.size())
- return false;
-
- for (size_t i = 0; i < candidates_.size(); ++i) {
- const Entry& left = candidates_[i];
- const Entry& right = cw.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 CandidateWindow::CopyFrom(const CandidateWindow& cw) {
- SetProperty(cw.GetProperty());
- candidates_.clear();
- candidates_ = cw.candidates_;
-}
-
-
-// When the default values are changed, please modify
-// InputMethodEngineInterface::CandidateWindowProperty too.
-CandidateWindow::CandidateWindowProperty::CandidateWindowProperty()
- : page_size(kDefaultPageSize),
- cursor_position(0),
- is_cursor_visible(true),
- is_vertical(false),
- show_window_at_composition(false),
- is_auxiliary_text_visible(false) {
-}
-
-CandidateWindow::CandidateWindowProperty::~CandidateWindowProperty() {
-}
-
-CandidateWindow::Entry::Entry() {
-}
-
-CandidateWindow::Entry::~Entry() {
-}
-
-} // namespace input_method
-} // namespace chromeos
« no previous file with comments | « chromeos/ime/candidate_window.h ('k') | chromeos/ime/candidate_window_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698