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

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.h

Issue 1433103002: Use FocusParams in FocusController::setFocusedElement and Document::setFocusedElement arguments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple Inc. All rights reserved.
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 HasPendingResources = 1 << 5, 83 HasPendingResources = 1 << 5,
84 84
85 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla gs. 85 NumberOfElementFlags = 6, // Required size of bitfield used to store the fla gs.
86 }; 86 };
87 87
88 enum class ShadowRootType; 88 enum class ShadowRootType;
89 89
90 enum class SelectionBehaviorOnFocus { 90 enum class SelectionBehaviorOnFocus {
91 Reset, 91 Reset,
92 Restore, 92 Restore,
93 None,
93 }; 94 };
94 95
95 struct FocusParams { 96 struct FocusParams {
96 STACK_ALLOCATED(); 97 STACK_ALLOCATED();
97 98
98 FocusParams() {} 99 FocusParams() {}
99 FocusParams(SelectionBehaviorOnFocus selection, WebFocusType focusType, Inpu tDeviceCapabilities* capabilities) 100 FocusParams(SelectionBehaviorOnFocus selection, WebFocusType focusType, Inpu tDeviceCapabilities* capabilities)
100 : selectionBehavior(selection) 101 : selectionBehavior(selection)
101 , type(focusType) 102 , type(focusType)
102 , sourceCapabilities(capabilities) {} 103 , sourceCapabilities(capabilities) {}
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 919 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
919 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 920 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
920 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 921 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
921 { \ 922 { \
922 return adoptRefWillBeNoop(new T(tagName, document)); \ 923 return adoptRefWillBeNoop(new T(tagName, document)); \
923 } 924 }
924 925
925 } // namespace 926 } // namespace
926 927
927 #endif // Element_h 928 #endif // Element_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698