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

Unified Diff: third_party/WebKit/Source/core/editing/markers/CompositionMarker.h

Issue 2906953002: [DMC #26] Add CompositionMarker::Thickness enum (Closed)
Patch Set: Created 3 years, 7 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
Index: third_party/WebKit/Source/core/editing/markers/CompositionMarker.h
diff --git a/third_party/WebKit/Source/core/editing/markers/CompositionMarker.h b/third_party/WebKit/Source/core/editing/markers/CompositionMarker.h
index 9fe170cf81bcf598fbfc57b652ce6fbceb0a8027..0c152264f72e7e802d7d2b66800df6e585672a3d 100644
--- a/third_party/WebKit/Source/core/editing/markers/CompositionMarker.h
+++ b/third_party/WebKit/Source/core/editing/markers/CompositionMarker.h
@@ -16,10 +16,12 @@ namespace blink {
// transparent).
class CORE_EXPORT CompositionMarker final : public DocumentMarker {
public:
+ enum class Thickness { kThin, kThick };
+
CompositionMarker(unsigned start_offset,
unsigned end_offset,
Color underline_color,
- bool thick,
+ Thickness,
Color background_color);
// DocumentMarker implementations
@@ -27,13 +29,13 @@ class CORE_EXPORT CompositionMarker final : public DocumentMarker {
// CompositionMarker-specific
Color UnderlineColor() const;
- bool Thick() const;
+ bool IsThick() const;
Color BackgroundColor() const;
private:
Color underline_color_;
Color background_color_;
- bool thick_;
+ Thickness thickness_;
DISALLOW_COPY_AND_ASSIGN(CompositionMarker);
};

Powered by Google App Engine
This is Rietveld 408576698