| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |