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

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

Issue 935283002: Rename {Author,UserAgent}ShadowRoot to {Open,Closed}ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inspector tests Created 5 years, 10 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 | « Source/core/html/HTMLKeygenElement.cpp ('k') | Source/core/html/HTMLMediaElement.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) 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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
293 293
294 enum DisplayMode { Unknown, Poster, Video }; 294 enum DisplayMode { Unknown, Poster, Video };
295 DisplayMode displayMode() const { return m_displayMode; } 295 DisplayMode displayMode() const { return m_displayMode; }
296 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; } 296 virtual void setDisplayMode(DisplayMode mode) { m_displayMode = mode; }
297 297
298 void setControllerInternal(PassRefPtrWillBeRawPtr<MediaController>); 298 void setControllerInternal(PassRefPtrWillBeRawPtr<MediaController>);
299 299
300 private: 300 private:
301 void createMediaPlayer(); 301 void createMediaPlayer();
302 302
303 virtual bool alwaysCreateUserAgentShadowRoot() const override final { return true; } 303 virtual bool alwaysCreateClosedShadowRoot() const override final { return tr ue; }
304 virtual bool areAuthorShadowsAllowed() const override final { return false; } 304 virtual bool areAuthorShadowsAllowed() const override final { return false; }
305 305
306 virtual bool supportsFocus() const override final; 306 virtual bool supportsFocus() const override final;
307 virtual bool isMouseFocusable() const override final; 307 virtual bool isMouseFocusable() const override final;
308 virtual bool rendererIsNeeded(const LayoutStyle&) override; 308 virtual bool rendererIsNeeded(const LayoutStyle&) override;
309 virtual LayoutObject* createRenderer(const LayoutStyle&) override; 309 virtual LayoutObject* createRenderer(const LayoutStyle&) override;
310 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override f inal; 310 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override f inal;
311 virtual void didNotifySubtreeInsertionsToDocument() override; 311 virtual void didNotifySubtreeInsertionsToDocument() override;
312 virtual void removedFrom(ContainerNode*) override final; 312 virtual void removedFrom(ContainerNode*) override final;
313 virtual void didRecalcStyle(StyleRecalcChange) override final; 313 virtual void didRecalcStyle(StyleRecalcChange) override final;
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 inline bool isHTMLMediaElement(const HTMLElement& element) 579 inline bool isHTMLMediaElement(const HTMLElement& element)
580 { 580 {
581 return isHTMLAudioElement(element) || isHTMLVideoElement(element); 581 return isHTMLAudioElement(element) || isHTMLVideoElement(element);
582 } 582 }
583 583
584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement); 584 DEFINE_HTMLELEMENT_TYPE_CASTS_WITH_FUNCTION(HTMLMediaElement);
585 585
586 } // namespace blink 586 } // namespace blink
587 587
588 #endif // HTMLMediaElement_h 588 #endif // HTMLMediaElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLKeygenElement.cpp ('k') | Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698