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

Unified Diff: ui/base/ime/composition_underline.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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 | « ui/base/ime/composition_text_util_pango_unittest.cc ('k') | ui/base/ime/dummy_input_method.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/composition_underline.h
diff --git a/ui/base/ime/composition_underline.h b/ui/base/ime/composition_underline.h
deleted file mode 100644
index a8c44b66854d534ef673c14fc073f4d8e9c41022..0000000000000000000000000000000000000000
--- a/ui/base/ime/composition_underline.h
+++ /dev/null
@@ -1,62 +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.
-
-#ifndef UI_BASE_IME_COMPOSITION_UNDERLINE_H_
-#define UI_BASE_IME_COMPOSITION_UNDERLINE_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "third_party/skia/include/core/SkColor.h"
-
-namespace ui {
-
-// Intentionally keep sync with blink::WebCompositionUnderline defined in:
-// third_party/WebKit/public/web/WebCompositionUnderline.h
-struct CompositionUnderline {
- CompositionUnderline()
- : start_offset(0),
- end_offset(0),
- color(SK_ColorTRANSPARENT),
- thick(false),
- background_color(SK_ColorTRANSPARENT) {}
-
- // TODO(huangs): remove this constructor.
- CompositionUnderline(uint32 s, uint32 e, SkColor c, bool t)
- : start_offset(s),
- end_offset(e),
- color(c),
- thick(t),
- background_color(SK_ColorTRANSPARENT) {}
-
- CompositionUnderline(uint32 s, uint32 e, SkColor c, bool t, SkColor bc)
- : start_offset(s),
- end_offset(e),
- color(c),
- thick(t),
- background_color(bc) {}
-
- bool operator==(const CompositionUnderline& rhs) const {
- return (this->start_offset == rhs.start_offset) &&
- (this->end_offset == rhs.end_offset) && (this->color == rhs.color) &&
- (this->thick == rhs.thick) &&
- (this->background_color == rhs.background_color);
- }
-
- bool operator!=(const CompositionUnderline& rhs) const {
- return !(*this == rhs);
- }
-
- uint32 start_offset;
- uint32 end_offset;
- SkColor color;
- bool thick;
- SkColor background_color;
-};
-
-typedef std::vector<CompositionUnderline> CompositionUnderlines;
-
-} // namespace ui
-
-#endif // UI_BASE_IME_COMPOSITION_UNDERLINE_H_
« no previous file with comments | « ui/base/ime/composition_text_util_pango_unittest.cc ('k') | ui/base/ime/dummy_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698