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

Side by Side Diff: Source/core/html/HTMLMediaElement.h

Issue 838003005: Don't allow text selection to start on a HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « LayoutTests/media/video-controls-start-selection-expected.txt ('k') | no next file » | 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) 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 virtual bool supportsFocus() const override final; 337 virtual bool supportsFocus() const override final;
338 virtual bool isMouseFocusable() const override final; 338 virtual bool isMouseFocusable() const override final;
339 virtual bool rendererIsNeeded(const RenderStyle&) override; 339 virtual bool rendererIsNeeded(const RenderStyle&) override;
340 virtual RenderObject* createRenderer(RenderStyle*) override; 340 virtual RenderObject* createRenderer(RenderStyle*) override;
341 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override f inal; 341 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override f inal;
342 virtual void didNotifySubtreeInsertionsToDocument() override; 342 virtual void didNotifySubtreeInsertionsToDocument() override;
343 virtual void removedFrom(ContainerNode*) override final; 343 virtual void removedFrom(ContainerNode*) override final;
344 virtual void didRecalcStyle(StyleRecalcChange) override final; 344 virtual void didRecalcStyle(StyleRecalcChange) override final;
345 345
346 virtual bool canStartSelection() const override { return false; }
347
346 virtual void didBecomeFullscreenElement() override final; 348 virtual void didBecomeFullscreenElement() override final;
347 virtual void willStopBeingFullscreenElement() override final; 349 virtual void willStopBeingFullscreenElement() override final;
348 virtual bool isInteractiveContent() const override final; 350 virtual bool isInteractiveContent() const override final;
349 virtual void defaultEventHandler(Event*) override final; 351 virtual void defaultEventHandler(Event*) override final;
350 352
351 // ActiveDOMObject functions. 353 // ActiveDOMObject functions.
352 virtual void stop() override final; 354 virtual void stop() override final;
353 355
354 virtual void updateDisplayState() { } 356 virtual void updateDisplayState() { }
355 357
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 inline bool isHTMLMediaElement(const HTMLElement& element) 632 inline bool isHTMLMediaElement(const HTMLElement& element)
631 { 633 {
632 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 634 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
633 } 635 }
634 636
635 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 637 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
636 638
637 } // namespace blink 639 } // namespace blink
638 640
639 #endif // HTMLMediaElement_h 641 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « LayoutTests/media/video-controls-start-selection-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698