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

Side by Side Diff: Source/core/html/shadow/PasswordGeneratorButtonElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 #include "core/page/ChromeClient.h" 40 #include "core/page/ChromeClient.h"
41 #include "core/page/Page.h" 41 #include "core/page/Page.h"
42 #include "core/platform/graphics/Image.h" 42 #include "core/platform/graphics/Image.h"
43 #include "core/rendering/RenderImage.h" 43 #include "core/rendering/RenderImage.h"
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 using namespace HTMLNames; 47 using namespace HTMLNames;
48 48
49 PasswordGeneratorButtonElement::PasswordGeneratorButtonElement(Document& documen t) 49 PasswordGeneratorButtonElement::PasswordGeneratorButtonElement(Document& documen t)
50 : HTMLDivElement(HTMLNames::divTag, document) 50 : HTMLDivElement(document)
51 , m_isInHoverState(false) 51 , m_isInHoverState(false)
52 { 52 {
53 setHasCustomStyleCallbacks(); 53 setHasCustomStyleCallbacks();
54 } 54 }
55 55
56 PassRefPtr<PasswordGeneratorButtonElement> PasswordGeneratorButtonElement::creat e(Document& document) 56 PassRefPtr<PasswordGeneratorButtonElement> PasswordGeneratorButtonElement::creat e(Document& document)
57 { 57 {
58 RefPtr<PasswordGeneratorButtonElement> element = adoptRef(new PasswordGenera torButtonElement(document)); 58 RefPtr<PasswordGeneratorButtonElement> element = adoptRef(new PasswordGenera torButtonElement(document));
59 element->setAttribute(idAttr, ShadowElementNames::passwordGenerator()); 59 element->setAttribute(idAttr, ShadowElementNames::passwordGenerator());
60 return element.release(); 60 return element.release();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 bool PasswordGeneratorButtonElement::willRespondToMouseClickEvents() 163 bool PasswordGeneratorButtonElement::willRespondToMouseClickEvents()
164 { 164 {
165 const HTMLInputElement* input = hostInput(); 165 const HTMLInputElement* input = hostInput();
166 if (!input->isDisabledOrReadOnly()) 166 if (!input->isDisabledOrReadOnly())
167 return true; 167 return true;
168 168
169 return HTMLDivElement::willRespondToMouseClickEvents(); 169 return HTMLDivElement::willRespondToMouseClickEvents();
170 } 170 }
171 171
172 } // namespace WebCore 172 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698