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

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

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 virtual short tabIndex() const; 402 virtual short tabIndex() const;
403 403
404 // Whether this kind of node can receive focus by default. Most nodes are 404 // Whether this kind of node can receive focus by default. Most nodes are
405 // not focusable but some elements, such as form controls and links, are. 405 // not focusable but some elements, such as form controls and links, are.
406 virtual bool supportsFocus() const; 406 virtual bool supportsFocus() const;
407 // Whether the node can actually be focused. 407 // Whether the node can actually be focused.
408 virtual bool isFocusable() const; 408 virtual bool isFocusable() const;
409 virtual bool isKeyboardFocusable(KeyboardEvent*) const; 409 virtual bool isKeyboardFocusable(KeyboardEvent*) const;
410 virtual bool isMouseFocusable() const; 410 virtual bool isMouseFocusable() const;
411 virtual Node* focusDelegate(); 411 virtual Node* focusDelegate();
412 // This is called only when the node is focused.
413 virtual bool shouldHaveFocusAppearance() const;
412 414
413 enum UserSelectAllTreatment { 415 enum UserSelectAllTreatment {
414 UserSelectAllDoesNotAffectEditability, 416 UserSelectAllDoesNotAffectEditability,
415 UserSelectAllIsAlwaysNonEditable 417 UserSelectAllIsAlwaysNonEditable
416 }; 418 };
417 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd itability); 419 bool isContentEditable(UserSelectAllTreatment = UserSelectAllDoesNotAffectEd itability);
418 bool isContentRichlyEditable(); 420 bool isContentRichlyEditable();
419 421
420 bool rendererIsEditable(EditableType editableType = ContentIsEditable, UserS electAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const 422 bool rendererIsEditable(EditableType editableType = ContentIsEditable, UserS electAllTreatment treatment = UserSelectAllIsAlwaysNonEditable) const
421 { 423 {
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 889
888 } //namespace 890 } //namespace
889 891
890 #ifndef NDEBUG 892 #ifndef NDEBUG
891 // Outside the WebCore namespace for ease of invocation from gdb. 893 // Outside the WebCore namespace for ease of invocation from gdb.
892 void showTree(const WebCore::Node*); 894 void showTree(const WebCore::Node*);
893 void showNodePath(const WebCore::Node*); 895 void showNodePath(const WebCore::Node*);
894 #endif 896 #endif
895 897
896 #endif 898 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698