| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_GFX_RENDER_TEXT_MAC_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_MAC_H_ |
| 6 #define UI_GFX_RENDER_TEXT_MAC_H_ | 6 #define UI_GFX_RENDER_TEXT_MAC_H_ |
| 7 | 7 |
| 8 #include <ApplicationServices/ApplicationServices.h> | 8 #include <ApplicationServices/ApplicationServices.h> |
| 9 #include <stddef.h> | 9 #include <stddef.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 RenderTextMac(); | 29 RenderTextMac(); |
| 30 ~RenderTextMac() override; | 30 ~RenderTextMac() override; |
| 31 | 31 |
| 32 // RenderText: | 32 // RenderText: |
| 33 std::unique_ptr<RenderText> CreateInstanceOfSameType() const override; | 33 std::unique_ptr<RenderText> CreateInstanceOfSameType() const override; |
| 34 bool MultilineSupported() const override; | 34 bool MultilineSupported() const override; |
| 35 const base::string16& GetDisplayText() override; | 35 const base::string16& GetDisplayText() override; |
| 36 Size GetStringSize() override; | 36 Size GetStringSize() override; |
| 37 SizeF GetStringSizeF() override; | 37 SizeF GetStringSizeF() override; |
| 38 SelectionModel FindCursorPosition(const Point& point) override; | 38 SelectionModel FindCursorPosition(const Point& point) override; |
| 39 bool IsSelectionSupported() const override; |
| 39 std::vector<FontSpan> GetFontSpansForTesting() override; | 40 std::vector<FontSpan> GetFontSpansForTesting() override; |
| 40 | 41 |
| 41 protected: | 42 protected: |
| 42 // RenderText: | 43 // RenderText: |
| 43 int GetDisplayTextBaseline() override; | 44 int GetDisplayTextBaseline() override; |
| 44 SelectionModel AdjacentCharSelectionModel( | 45 SelectionModel AdjacentCharSelectionModel( |
| 45 const SelectionModel& selection, | 46 const SelectionModel& selection, |
| 46 VisualCursorDirection direction) override; | 47 VisualCursorDirection direction) override; |
| 47 SelectionModel AdjacentWordSelectionModel( | 48 SelectionModel AdjacentWordSelectionModel( |
| 48 const SelectionModel& selection, | 49 const SelectionModel& selection, |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 132 |
| 132 // Indicates that |runs_| are valid, set by |ComputeRuns()|. | 133 // Indicates that |runs_| are valid, set by |ComputeRuns()|. |
| 133 bool runs_valid_; | 134 bool runs_valid_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(RenderTextMac); | 136 DISALLOW_COPY_AND_ASSIGN(RenderTextMac); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 } // namespace gfx | 139 } // namespace gfx |
| 139 | 140 |
| 140 #endif // UI_GFX_RENDER_TEXT_MAC_H_ | 141 #endif // UI_GFX_RENDER_TEXT_MAC_H_ |
| OLD | NEW |