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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLVideoElement.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2009, 2010 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "platform/graphics/gpu/Extensions3DUtil.h" 47 #include "platform/graphics/gpu/Extensions3DUtil.h"
48 #include "public/platform/WebCanvas.h" 48 #include "public/platform/WebCanvas.h"
49 #include <memory> 49 #include <memory>
50 50
51 namespace blink { 51 namespace blink {
52 52
53 using namespace HTMLNames; 53 using namespace HTMLNames;
54 54
55 inline HTMLVideoElement::HTMLVideoElement(Document& document) 55 inline HTMLVideoElement::HTMLVideoElement(Document& document)
56 : HTMLMediaElement(videoTag, document) { 56 : HTMLMediaElement(videoTag, document) {
57 if (document.settings()) 57 if (document.settings()) {
58 m_defaultPosterURL = 58 m_defaultPosterURL =
59 AtomicString(document.settings()->defaultVideoPosterURL()); 59 AtomicString(document.settings()->getDefaultVideoPosterURL());
60 }
60 } 61 }
61 62
62 HTMLVideoElement* HTMLVideoElement::create(Document& document) { 63 HTMLVideoElement* HTMLVideoElement::create(Document& document) {
63 HTMLVideoElement* video = new HTMLVideoElement(document); 64 HTMLVideoElement* video = new HTMLVideoElement(document);
64 video->ensureUserAgentShadowRoot(); 65 video->ensureUserAgentShadowRoot();
65 video->suspendIfNeeded(); 66 video->suspendIfNeeded();
66 return video; 67 return video;
67 } 68 }
68 69
69 DEFINE_TRACE(HTMLVideoElement) { 70 DEFINE_TRACE(HTMLVideoElement) {
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 return ScriptPromise(); 377 return ScriptPromise();
377 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) 378 if (!ImageBitmap::isResizeOptionValid(options, exceptionState))
378 return ScriptPromise(); 379 return ScriptPromise();
379 return ImageBitmapSource::fulfillImageBitmap( 380 return ImageBitmapSource::fulfillImageBitmap(
380 scriptState, 381 scriptState,
381 ImageBitmap::create(this, cropRect, 382 ImageBitmap::create(this, cropRect,
382 eventTarget.toLocalDOMWindow()->document(), options)); 383 eventTarget.toLocalDOMWindow()->document(), options));
383 } 384 }
384 385
385 } // namespace blink 386 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMetaElement.cpp ('k') | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698