| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 public: | 250 public: |
| 251 static MediaControlTimelineElement* create(MediaControls&); | 251 static MediaControlTimelineElement* create(MediaControls&); |
| 252 | 252 |
| 253 bool willRespondToMouseClickEvents() override; | 253 bool willRespondToMouseClickEvents() override; |
| 254 | 254 |
| 255 // FIXME: An "earliest possible position" will be needed once that concept | 255 // FIXME: An "earliest possible position" will be needed once that concept |
| 256 // is supported by HTMLMediaElement, see https://crbug.com/137275 | 256 // is supported by HTMLMediaElement, see https://crbug.com/137275 |
| 257 void setPosition(double); | 257 void setPosition(double); |
| 258 void setDuration(double); | 258 void setDuration(double); |
| 259 | 259 |
| 260 void defaultEventHandler(Event*) override; |
| 261 |
| 260 private: | 262 private: |
| 261 explicit MediaControlTimelineElement(MediaControls&); | 263 explicit MediaControlTimelineElement(MediaControls&); |
| 262 | 264 |
| 263 void defaultEventHandler(Event*) override; | |
| 264 bool keepEventInNode(Event*) override; | 265 bool keepEventInNode(Event*) override; |
| 265 }; | 266 }; |
| 266 | 267 |
| 267 // ---------------------------- | 268 // ---------------------------- |
| 268 | 269 |
| 269 class MediaControlFullscreenButtonElement final | 270 class MediaControlFullscreenButtonElement final |
| 270 : public MediaControlInputElement { | 271 : public MediaControlInputElement { |
| 271 public: | 272 public: |
| 272 static MediaControlFullscreenButtonElement* create(MediaControls&); | 273 static MediaControlFullscreenButtonElement* create(MediaControls&); |
| 273 | 274 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // ---------------------------- | 333 // ---------------------------- |
| 333 | 334 |
| 334 class MediaControlVolumeSliderElement final : public MediaControlInputElement { | 335 class MediaControlVolumeSliderElement final : public MediaControlInputElement { |
| 335 public: | 336 public: |
| 336 static MediaControlVolumeSliderElement* create(MediaControls&); | 337 static MediaControlVolumeSliderElement* create(MediaControls&); |
| 337 | 338 |
| 338 bool willRespondToMouseMoveEvents() override; | 339 bool willRespondToMouseMoveEvents() override; |
| 339 bool willRespondToMouseClickEvents() override; | 340 bool willRespondToMouseClickEvents() override; |
| 340 void setVolume(double); | 341 void setVolume(double); |
| 341 | 342 |
| 343 void defaultEventHandler(Event*) override; |
| 344 |
| 342 private: | 345 private: |
| 343 explicit MediaControlVolumeSliderElement(MediaControls&); | 346 explicit MediaControlVolumeSliderElement(MediaControls&); |
| 344 | 347 |
| 345 void defaultEventHandler(Event*) override; | |
| 346 bool keepEventInNode(Event*) override; | 348 bool keepEventInNode(Event*) override; |
| 347 }; | 349 }; |
| 348 | 350 |
| 349 // ---------------------------- | 351 // ---------------------------- |
| 350 | 352 |
| 351 class MediaControlTimeRemainingDisplayElement final | 353 class MediaControlTimeRemainingDisplayElement final |
| 352 : public MediaControlTimeDisplayElement { | 354 : public MediaControlTimeDisplayElement { |
| 353 public: | 355 public: |
| 354 static MediaControlTimeRemainingDisplayElement* create(MediaControls&); | 356 static MediaControlTimeRemainingDisplayElement* create(MediaControls&); |
| 355 | 357 |
| 356 private: | 358 private: |
| 357 explicit MediaControlTimeRemainingDisplayElement(MediaControls&); | 359 explicit MediaControlTimeRemainingDisplayElement(MediaControls&); |
| 358 }; | 360 }; |
| 359 | 361 |
| 360 // ---------------------------- | 362 // ---------------------------- |
| 361 | 363 |
| 362 class MediaControlCurrentTimeDisplayElement final | 364 class MediaControlCurrentTimeDisplayElement final |
| 363 : public MediaControlTimeDisplayElement { | 365 : public MediaControlTimeDisplayElement { |
| 364 public: | 366 public: |
| 365 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); | 367 static MediaControlCurrentTimeDisplayElement* create(MediaControls&); |
| 366 | 368 |
| 367 private: | 369 private: |
| 368 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); | 370 explicit MediaControlCurrentTimeDisplayElement(MediaControls&); |
| 369 }; | 371 }; |
| 370 | 372 |
| 371 } // namespace blink | 373 } // namespace blink |
| 372 | 374 |
| 373 #endif // MediaControlElements_h | 375 #endif // MediaControlElements_h |
| OLD | NEW |