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

Side by Side Diff: ui/gfx/render_text_mac.h

Issue 2379993005: Label selection experiment (Closed)
Patch Set: -- Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/render_text_harfbuzz.cc ('k') | ui/gfx/render_text_mac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/render_text_harfbuzz.cc ('k') | ui/gfx/render_text_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698