| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 class LayoutSelection final : public GarbageCollected<LayoutSelection> { | 33 class LayoutSelection final : public GarbageCollected<LayoutSelection> { |
| 34 public: | 34 public: |
| 35 enum class PaintHint { kHide, kKeep, kPaint }; | 35 enum class PaintHint { kHide, kKeep, kPaint }; |
| 36 | 36 |
| 37 static LayoutSelection* Create(FrameSelection& frame_selection) { | 37 static LayoutSelection* Create(FrameSelection& frame_selection) { |
| 38 return new LayoutSelection(frame_selection); | 38 return new LayoutSelection(frame_selection); |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool HasPendingSelection() const { return has_pending_selection_; } | 41 bool HasPendingSelection() const { return has_pending_selection_; } |
| 42 bool ForceHide() const { return force_hide_; } |
| 42 void SetHasPendingSelection(PaintHint); | 43 void SetHasPendingSelection(PaintHint); |
| 43 void Commit(); | 44 void Commit(); |
| 44 | 45 |
| 45 IntRect SelectionBounds(); | 46 IntRect SelectionBounds(); |
| 46 void InvalidatePaintForSelection(); | 47 void InvalidatePaintForSelection(); |
| 47 enum SelectionPaintInvalidationMode { | 48 enum SelectionPaintInvalidationMode { |
| 48 kPaintInvalidationNewXOROld, | 49 kPaintInvalidationNewXOROld, |
| 49 kPaintInvalidationNewMinusOld | 50 kPaintInvalidationNewMinusOld |
| 50 }; | 51 }; |
| 51 void SetSelection( | 52 void SetSelection( |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 // TODO(yosin): Clarify the meaning of these variables. editing/ passes | 89 // TODO(yosin): Clarify the meaning of these variables. editing/ passes |
| 89 // them as offsets in the DOM tree but layout uses them as offset in the | 90 // them as offsets in the DOM tree but layout uses them as offset in the |
| 90 // layout tree. | 91 // layout tree. |
| 91 int selection_start_pos_; | 92 int selection_start_pos_; |
| 92 int selection_end_pos_; | 93 int selection_end_pos_; |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace blink | 96 } // namespace blink |
| 96 | 97 |
| 97 #endif | 98 #endif |
| OLD | NEW |