| 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 28 matching lines...) Expand all Loading... |
| 39 class WebTextFieldDecoratorClient; | 39 class WebTextFieldDecoratorClient; |
| 40 | 40 |
| 41 class TextFieldDecoratorImpl : public WebCore::TextFieldDecorator { | 41 class TextFieldDecoratorImpl : public WebCore::TextFieldDecorator { |
| 42 public: | 42 public: |
| 43 static PassOwnPtr<TextFieldDecoratorImpl> create(WebTextFieldDecoratorClient
*); | 43 static PassOwnPtr<TextFieldDecoratorImpl> create(WebTextFieldDecoratorClient
*); |
| 44 virtual ~TextFieldDecoratorImpl(); | 44 virtual ~TextFieldDecoratorImpl(); |
| 45 | 45 |
| 46 WebTextFieldDecoratorClient* decoratorClient(); | 46 WebTextFieldDecoratorClient* decoratorClient(); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 virtual bool willAddDecorationTo(WebCore::HTMLInputElement*) OVERRIDE; | 49 virtual bool willAddDecorationTo(WebCore::Handle<WebCore::HTMLInputElement>)
OVERRIDE; |
| 50 virtual bool visibleByDefault() OVERRIDE; | 50 virtual bool visibleByDefault() OVERRIDE; |
| 51 virtual WebCore::CachedImage* imageForNormalState() OVERRIDE; | 51 virtual WebCore::CachedImage* imageForNormalState() OVERRIDE; |
| 52 virtual WebCore::CachedImage* imageForDisabledState() OVERRIDE; | 52 virtual WebCore::CachedImage* imageForDisabledState() OVERRIDE; |
| 53 virtual WebCore::CachedImage* imageForReadonlyState() OVERRIDE; | 53 virtual WebCore::CachedImage* imageForReadonlyState() OVERRIDE; |
| 54 virtual WebCore::CachedImage* imageForHoverState() OVERRIDE; | 54 virtual WebCore::CachedImage* imageForHoverState() OVERRIDE; |
| 55 virtual void handleClick(WebCore::HTMLInputElement*) OVERRIDE; | 55 virtual void handleClick(WebCore::Handle<WebCore::HTMLInputElement>) OVERRID
E; |
| 56 virtual void willDetach(WebCore::HTMLInputElement*) OVERRIDE; | 56 virtual void willDetach(WebCore::Handle<WebCore::HTMLInputElement>) OVERRIDE
; |
| 57 | 57 |
| 58 TextFieldDecoratorImpl(WebTextFieldDecoratorClient*); | 58 TextFieldDecoratorImpl(WebTextFieldDecoratorClient*); |
| 59 | 59 |
| 60 WebTextFieldDecoratorClient* m_client; | 60 WebTextFieldDecoratorClient* m_client; |
| 61 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForNormalSt
ate; | 61 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForNormalSt
ate; |
| 62 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForDisabled
State; | 62 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForDisabled
State; |
| 63 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForReadonly
State; | 63 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForReadonly
State; |
| 64 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForHoverSta
te; | 64 WebCore::CachedResourceHandle<WebCore::CachedImage> m_cachedImageForHoverSta
te; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } | 67 } |
| 68 | 68 |
| 69 #endif // TextFieldDecoratorImpl_h | 69 #endif // TextFieldDecoratorImpl_h |
| OLD | NEW |