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

Side by Side Diff: Source/core/dom/Node.h

Issue 1347893002: Add WebElement::isEditable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 virtual bool shouldHaveFocusAppearance() const; 409 virtual bool shouldHaveFocusAppearance() const;
410 410
411 // Whether the node is inert. This can't be in Element because text nodes 411 // Whether the node is inert. This can't be in Element because text nodes
412 // must be recognized as inert to prevent text selection. 412 // must be recognized as inert to prevent text selection.
413 bool isInert() const; 413 bool isInert() const;
414 414
415 enum UserSelectAllTreatment { 415 enum UserSelectAllTreatment {
416 UserSelectAllDoesNotAffectEditability, 416 UserSelectAllDoesNotAffectEditability,
417 UserSelectAllIsAlwaysNonEditable 417 UserSelectAllIsAlwaysNonEditable
418 }; 418 };
419 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd itability); 419 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd itability) const;
420 bool isContentRichlyEditable(); 420 bool isContentRichlyEditable() const;
421 421
422 bool hasEditableStyle(EditableType editableType = ContentIsEditable, UserSel ectAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const 422 bool hasEditableStyle(EditableType editableType = ContentIsEditable, UserSel ectAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const
423 { 423 {
424 switch (editableType) { 424 switch (editableType) {
425 case ContentIsEditable: 425 case ContentIsEditable:
426 return hasEditableStyle(Editable, treatment); 426 return hasEditableStyle(Editable, treatment);
427 case HasEditableAXRole: 427 case HasEditableAXRole:
428 return isEditableToAccessibility(Editable); 428 return isEditableToAccessibility(Editable);
429 } 429 }
430 ASSERT_NOT_REACHED(); 430 ASSERT_NOT_REACHED();
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
906 } // namespace blink 906 } // namespace blink
907 907
908 #ifndef NDEBUG 908 #ifndef NDEBUG
909 // Outside the WebCore namespace for ease of invocation from gdb. 909 // Outside the WebCore namespace for ease of invocation from gdb.
910 void showNode(const blink::Node*); 910 void showNode(const blink::Node*);
911 void showTree(const blink::Node*); 911 void showTree(const blink::Node*);
912 void showNodePath(const blink::Node*); 912 void showNodePath(const blink::Node*);
913 #endif 913 #endif
914 914
915 #endif // Node_h 915 #endif // Node_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698