| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 | 564 |
| 565 // ---------------------------- | 565 // ---------------------------- |
| 566 | 566 |
| 567 MediaControlCastButtonElement::MediaControlCastButtonElement(MediaControls& medi
aControls, bool isOverlayButton) | 567 MediaControlCastButtonElement::MediaControlCastButtonElement(MediaControls& medi
aControls, bool isOverlayButton) |
| 568 : MediaControlInputElement(mediaControls, MediaCastOnButton), m_isOverlayBut
ton(isOverlayButton) | 568 : MediaControlInputElement(mediaControls, MediaCastOnButton), m_isOverlayBut
ton(isOverlayButton) |
| 569 { | 569 { |
| 570 } | 570 } |
| 571 | 571 |
| 572 PassRefPtrWillBeRawPtr<MediaControlCastButtonElement> MediaControlCastButtonElem
ent::create(MediaControls& mediaControls, bool isOverlayButton) | 572 PassRefPtrWillBeRawPtr<MediaControlCastButtonElement> MediaControlCastButtonElem
ent::create(MediaControls& mediaControls, bool isOverlayButton) |
| 573 { | 573 { |
| 574 RefPtrWillBeRawPtr<MediaControlCastButtonElement> button = adoptRefWillBeRef
CountedGarbageCollected(new MediaControlCastButtonElement(mediaControls, isOverl
ayButton)); | 574 RefPtrWillBeRawPtr<MediaControlCastButtonElement> button = adoptRefWillBeNoo
p(new MediaControlCastButtonElement(mediaControls, isOverlayButton)); |
| 575 button->ensureUserAgentShadowRoot(); | 575 button->ensureUserAgentShadowRoot(); |
| 576 button->setType("button"); | 576 button->setType("button"); |
| 577 return button.release(); | 577 return button.release(); |
| 578 } | 578 } |
| 579 | 579 |
| 580 void MediaControlCastButtonElement::defaultEventHandler(Event* event) | 580 void MediaControlCastButtonElement::defaultEventHandler(Event* event) |
| 581 { | 581 { |
| 582 if (event->type() == EventTypeNames::click) { | 582 if (event->type() == EventTypeNames::click) { |
| 583 if (mediaElement().isPlayingRemotely()) { | 583 if (mediaElement().isPlayingRemotely()) { |
| 584 mediaElement().requestRemotePlaybackControl(); | 584 mediaElement().requestRemotePlaybackControl(); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 770 float fontSize = smallestDimension * 0.05f; | 770 float fontSize = smallestDimension * 0.05f; |
| 771 if (fontSize != m_fontSize) { | 771 if (fontSize != m_fontSize) { |
| 772 m_fontSize = fontSize; | 772 m_fontSize = fontSize; |
| 773 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); | 773 setInlineStyleProperty(CSSPropertyFontSize, fontSize, CSSPrimitiveValue:
:CSS_PX); |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 | 776 |
| 777 // ---------------------------- | 777 // ---------------------------- |
| 778 | 778 |
| 779 } // namespace blink | 779 } // namespace blink |
| OLD | NEW |