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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLPlugInElement.h

Issue 2078143002: Make plugin elements return false from canStartSelection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix readonly-disabled-text-selection for changes in r401155 Created 4 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
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 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2012 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 KURL m_loadedUrl; 97 KURL m_loadedUrl;
98 Member<HTMLImageLoader> m_imageLoader; 98 Member<HTMLImageLoader> m_imageLoader;
99 bool m_isDelayingLoadEvent; 99 bool m_isDelayingLoadEvent;
100 100
101 private: 101 private:
102 // EventTarget functions: 102 // EventTarget functions:
103 void removeAllEventListeners() final; 103 void removeAllEventListeners() final;
104 104
105 // Node functions: 105 // Node functions:
106 bool canContainRangeEndPoint() const override { return false; } 106 bool canContainRangeEndPoint() const override { return false; }
107 bool canStartSelection() const override;
107 bool willRespondToMouseClickEvents() final; 108 bool willRespondToMouseClickEvents() final;
108 void defaultEventHandler(Event*) final; 109 void defaultEventHandler(Event*) final;
109 void attach(const AttachContext& = AttachContext()) final; 110 void attach(const AttachContext& = AttachContext()) final;
110 void detach(const AttachContext& = AttachContext()) final; 111 void detach(const AttachContext& = AttachContext()) final;
111 void finishParsingChildren() final; 112 void finishParsingChildren() final;
112 113
113 // Element functions: 114 // Element functions:
114 LayoutObject* createLayoutObject(const ComputedStyle&) override; 115 LayoutObject* createLayoutObject(const ComputedStyle&) override;
115 bool supportsFocus() const final { return true; } 116 bool supportsFocus() const final { return true; }
116 bool layoutObjectIsFocusable() const final; 117 bool layoutObjectIsFocusable() const final;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 inline bool isHTMLPlugInElement(const HTMLElement& element) 152 inline bool isHTMLPlugInElement(const HTMLElement& element)
152 { 153 {
153 return element.isPluginElement(); 154 return element.isPluginElement();
154 } 155 }
155 156
156 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement); 157 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLPlugInElement);
157 158
158 } // namespace blink 159 } // namespace blink
159 160
160 #endif // HTMLPlugInElement_h 161 #endif // HTMLPlugInElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698