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

Side by Side Diff: third_party/WebKit/public/web/WebSelection.h

Issue 2691583003: Removed fields from Selection classes (Closed)
Patch Set: Forgot to remove fields from test Created 3 years, 10 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 | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 WebSelection_h 5 #ifndef WebSelection_h
6 #define WebSelection_h 6 #define WebSelection_h
7 7
8 #include "../platform/WebCommon.h" 8 #include "../platform/WebCommon.h"
9 #include "../platform/WebSelectionBound.h" 9 #include "../platform/WebSelectionBound.h"
10 10
(...skipping 12 matching lines...) Expand all
23 #endif 23 #endif
24 WebSelection(const WebSelection&); 24 WebSelection(const WebSelection&);
25 25
26 const WebSelectionBound& start() const { return m_start; } 26 const WebSelectionBound& start() const { return m_start; }
27 const WebSelectionBound& end() const { return m_end; } 27 const WebSelectionBound& end() const { return m_end; }
28 28
29 bool isNone() const { return selectionType() == NoSelection; } 29 bool isNone() const { return selectionType() == NoSelection; }
30 bool isCaret() const { return selectionType() == CaretSelection; } 30 bool isCaret() const { return selectionType() == CaretSelection; }
31 bool isRange() const { return selectionType() == RangeSelection; } 31 bool isRange() const { return selectionType() == RangeSelection; }
32 32
33 bool isEditable() const { return m_isEditable; }
34 bool isEmptyTextFormControl() const { return m_isEmptyTextControl; }
35
36 private: 33 private:
37 SelectionType selectionType() const { return m_selectionType; } 34 SelectionType selectionType() const { return m_selectionType; }
38 35
39 SelectionType m_selectionType; 36 SelectionType m_selectionType;
40 37
41 WebSelectionBound m_start; 38 WebSelectionBound m_start;
42 WebSelectionBound m_end; 39 WebSelectionBound m_end;
43
44 // Whether the selection region consists of editable text.
45 bool m_isEditable;
46
47 // Whether the selection resides in an empty text form control. Note that
48 // this only applies to caret-type selections.
49 bool m_isEmptyTextControl;
50 }; 40 };
51 41
52 } // namespace blink 42 } // namespace blink
53 43
54 #endif // WebSelection_h 44 #endif // WebSelection_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698