OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
122 | 122 |
123 class CORE_EXPORT Command { | 123 class CORE_EXPORT Command { |
124 STACK_ALLOCATED(); | 124 STACK_ALLOCATED(); |
125 public: | 125 public: |
126 Command(); | 126 Command(); |
127 Command(const EditorInternalCommand*, EditorCommandSource, PassRefPtrWil lBeRawPtr<LocalFrame>); | 127 Command(const EditorInternalCommand*, EditorCommandSource, PassRefPtrWil lBeRawPtr<LocalFrame>); |
128 | 128 |
129 bool execute(const String& parameter = String(), Event* triggeringEvent = nullptr) const; | 129 bool execute(const String& parameter = String(), Event* triggeringEvent = nullptr) const; |
130 bool execute(Event* triggeringEvent) const; | 130 bool execute(Event* triggeringEvent) const; |
131 | 131 |
132 bool isSupported() const; | 132 bool isSupported(bool enabled = false) const; |
dcheng
2015/04/20 17:09:03
I don't really understand why we added this defaul
Abhijeet Kandalkar Slow
2015/04/21 14:14:33
current implementation of isSupported() check whet
| |
133 bool isEnabled(Event* triggeringEvent = nullptr) const; | 133 bool isEnabled(Event* triggeringEvent = nullptr) const; |
134 | 134 |
135 TriState state(Event* triggeringEvent = nullptr) const; | 135 TriState state(Event* triggeringEvent = nullptr) const; |
136 String value(Event* triggeringEvent = nullptr) const; | 136 String value(Event* triggeringEvent = nullptr) const; |
137 | 137 |
138 bool isTextInsertion() const; | 138 bool isTextInsertion() const; |
139 | 139 |
140 // Returns 0 if this Command is not supported. | 140 // Returns 0 if this Command is not supported. |
141 int idForHistogram() const; | 141 int idForHistogram() const; |
142 private: | 142 private: |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
300 | 300 |
301 inline bool Editor::markedTextMatchesAreHighlighted() const | 301 inline bool Editor::markedTextMatchesAreHighlighted() const |
302 { | 302 { |
303 return m_areMarkedTextMatchesHighlighted; | 303 return m_areMarkedTextMatchesHighlighted; |
304 } | 304 } |
305 | 305 |
306 | 306 |
307 } // namespace blink | 307 } // namespace blink |
308 | 308 |
309 #endif // Editor_h | 309 #endif // Editor_h |
OLD | NEW |