OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 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 are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 HTMLInputElement* input = hostInput(); | 282 HTMLInputElement* input = hostInput(); |
283 if (!input || !input->layoutObject()) | 283 if (!input || !input->layoutObject()) |
284 return sliderThumbShadowPartId(); | 284 return sliderThumbShadowPartId(); |
285 | 285 |
286 const ComputedStyle& sliderStyle = input->layoutObject()->styleRef(); | 286 const ComputedStyle& sliderStyle = input->layoutObject()->styleRef(); |
287 switch (sliderStyle.appearance()) { | 287 switch (sliderStyle.appearance()) { |
288 case MediaSliderPart: | 288 case MediaSliderPart: |
289 case MediaSliderThumbPart: | 289 case MediaSliderThumbPart: |
290 case MediaVolumeSliderPart: | 290 case MediaVolumeSliderPart: |
291 case MediaVolumeSliderThumbPart: | 291 case MediaVolumeSliderThumbPart: |
292 case MediaFullScreenVolumeSliderPart: | 292 case MediaFullscreenVolumeSliderPart: |
293 case MediaFullScreenVolumeSliderThumbPart: | 293 case MediaFullscreenVolumeSliderThumbPart: |
294 return mediaSliderThumbShadowPartId(); | 294 return mediaSliderThumbShadowPartId(); |
295 default: | 295 default: |
296 return sliderThumbShadowPartId(); | 296 return sliderThumbShadowPartId(); |
297 } | 297 } |
298 } | 298 } |
299 | 299 |
300 // -------------------------------- | 300 // -------------------------------- |
301 | 301 |
302 inline SliderContainerElement::SliderContainerElement(Document& document) | 302 inline SliderContainerElement::SliderContainerElement(Document& document) |
303 : HTMLDivElement(document) | 303 : HTMLDivElement(document) |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 | 410 |
411 if (!shadowHost() || !shadowHost()->layoutObject()) | 411 if (!shadowHost() || !shadowHost()->layoutObject()) |
412 return sliderContainer; | 412 return sliderContainer; |
413 | 413 |
414 const ComputedStyle& sliderStyle = shadowHost()->layoutObject()->styleRef(); | 414 const ComputedStyle& sliderStyle = shadowHost()->layoutObject()->styleRef(); |
415 switch (sliderStyle.appearance()) { | 415 switch (sliderStyle.appearance()) { |
416 case MediaSliderPart: | 416 case MediaSliderPart: |
417 case MediaSliderThumbPart: | 417 case MediaSliderThumbPart: |
418 case MediaVolumeSliderPart: | 418 case MediaVolumeSliderPart: |
419 case MediaVolumeSliderThumbPart: | 419 case MediaVolumeSliderThumbPart: |
420 case MediaFullScreenVolumeSliderPart: | 420 case MediaFullscreenVolumeSliderPart: |
421 case MediaFullScreenVolumeSliderThumbPart: | 421 case MediaFullscreenVolumeSliderThumbPart: |
422 return mediaSliderContainer; | 422 return mediaSliderContainer; |
423 default: | 423 default: |
424 return sliderContainer; | 424 return sliderContainer; |
425 } | 425 } |
426 } | 426 } |
427 | 427 |
428 void SliderContainerElement::updateTouchEventHandlerRegistry() | 428 void SliderContainerElement::updateTouchEventHandlerRegistry() |
429 { | 429 { |
430 if (m_hasTouchEventHandler) { | 430 if (m_hasTouchEventHandler) { |
431 return; | 431 return; |
(...skipping 11 matching lines...) Expand all Loading... |
443 HTMLElement::didMoveToNewDocument(oldDocument); | 443 HTMLElement::didMoveToNewDocument(oldDocument); |
444 } | 444 } |
445 | 445 |
446 void SliderContainerElement::removeAllEventListeners() | 446 void SliderContainerElement::removeAllEventListeners() |
447 { | 447 { |
448 Node::removeAllEventListeners(); | 448 Node::removeAllEventListeners(); |
449 m_hasTouchEventHandler = false; | 449 m_hasTouchEventHandler = false; |
450 } | 450 } |
451 | 451 |
452 } // namespace blink | 452 } // namespace blink |
OLD | NEW |