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

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

Issue 2811703002: Move a few media controls elements into modules/media_controls/elements/. (Closed)
Patch Set: Created 3 years, 8 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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void DidBecomeVisible(); 63 void DidBecomeVisible();
64 64
65 bool is_displayed_; 65 bool is_displayed_;
66 bool opaque_; 66 bool opaque_;
67 67
68 TaskRunnerTimer<MediaControlPanelElement> transition_timer_; 68 TaskRunnerTimer<MediaControlPanelElement> transition_timer_;
69 }; 69 };
70 70
71 // ---------------------------- 71 // ----------------------------
72 72
73 class CORE_EXPORT MediaControlPanelEnclosureElement final
74 : public MediaControlDivElement {
75 public:
76 static MediaControlPanelEnclosureElement* Create(MediaControls&);
77
78 private:
79 explicit MediaControlPanelEnclosureElement(MediaControls&);
80 };
81
82 // ----------------------------
83
84 class CORE_EXPORT MediaControlOverlayEnclosureElement final
85 : public MediaControlDivElement {
86 public:
87 static MediaControlOverlayEnclosureElement* Create(MediaControls&);
88
89 private:
90 explicit MediaControlOverlayEnclosureElement(MediaControls&);
91 EventDispatchHandlingState* PreDispatchEventHandler(Event*) override;
92 };
93
94 // ----------------------------
95
96 class CORE_EXPORT MediaControlMuteButtonElement final
97 : public MediaControlInputElement {
98 public:
99 static MediaControlMuteButtonElement* Create(MediaControls&);
100
101 bool WillRespondToMouseClickEvents() override { return true; }
102 void UpdateDisplayType() override;
103
104 WebLocalizedString::Name GetOverflowStringName() override;
105
106 bool HasOverflowButton() override { return true; }
107
108 private:
109 explicit MediaControlMuteButtonElement(MediaControls&);
110
111 void DefaultEventHandler(Event*) override;
112 };
113
114 // ----------------------------
115
116 class CORE_EXPORT MediaControlPlayButtonElement final 73 class CORE_EXPORT MediaControlPlayButtonElement final
117 : public MediaControlInputElement { 74 : public MediaControlInputElement {
118 public: 75 public:
119 static MediaControlPlayButtonElement* Create(MediaControls&); 76 static MediaControlPlayButtonElement* Create(MediaControls&);
120 77
121 bool WillRespondToMouseClickEvents() override { return true; } 78 bool WillRespondToMouseClickEvents() override { return true; }
122 void UpdateDisplayType() override; 79 void UpdateDisplayType() override;
123 80
124 WebLocalizedString::Name GetOverflowStringName() override; 81 WebLocalizedString::Name GetOverflowStringName() override;
125 82
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 public: 354 public:
398 static MediaControlCurrentTimeDisplayElement* Create(MediaControls&); 355 static MediaControlCurrentTimeDisplayElement* Create(MediaControls&);
399 356
400 private: 357 private:
401 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); 358 explicit MediaControlCurrentTimeDisplayElement(MediaControls&);
402 }; 359 };
403 360
404 } // namespace blink 361 } // namespace blink
405 362
406 #endif // MediaControlElements_h 363 #endif // MediaControlElements_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698