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

Side by Side Diff: Source/WebKit/chromium/public/WebSelectElement.h

Issue 19510005: [oilpan] Completely move HTMLFormControlElement's hierarchy to the managed heap Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebSelectElement_h 31 #ifndef WebSelectElement_h
32 #define WebSelectElement_h 32 #define WebSelectElement_h
33 33
34 #include "../../../Platform/chromium/public/WebVector.h" 34 #include "../../../Platform/chromium/public/WebVector.h"
35 #include "WebFormControlElement.h" 35 #include "WebFormControlElement.h"
36 #include "WebOptionElement.h" 36 #include "WebOptionElement.h"
37 37
38 #if WEBKIT_IMPLEMENTATION 38 #if WEBKIT_IMPLEMENTATION
39 namespace WebCore { class HTMLSelectElement; } 39 namespace WebCore {
40 class HTMLSelectElement;
41 template<typename T> class Handle;
42 }
40 #endif 43 #endif
41 44
42 namespace WebKit { 45 namespace WebKit {
43 46
44 // Provides readonly access to some properties of a DOM select element node. 47 // Provides readonly access to some properties of a DOM select element node.
45 class WebSelectElement : public WebFormControlElement { 48 class WebSelectElement : public WebFormControlElement {
46 public: 49 public:
47 WebSelectElement() : WebFormControlElement() { } 50 WebSelectElement() : WebFormControlElement() { }
48 WebSelectElement(const WebSelectElement& element) : WebFormControlElement(el ement) { } 51 WebSelectElement(const WebSelectElement& element) : WebFormControlElement(el ement) { }
49 52
50 WebSelectElement& operator=(const WebSelectElement& element) 53 WebSelectElement& operator=(const WebSelectElement& element)
51 { 54 {
52 WebFormControlElement::assign(element); 55 WebFormControlElement::assign(element);
53 return *this; 56 return *this;
54 } 57 }
55 void assign(const WebSelectElement& element) { WebFormControlElement::assign (element); } 58 void assign(const WebSelectElement& element) { WebFormControlElement::assign (element); }
56 59
57 WEBKIT_EXPORT void setValue(const WebString&); 60 WEBKIT_EXPORT void setValue(const WebString&);
58 WEBKIT_EXPORT WebString value() const; 61 WEBKIT_EXPORT WebString value() const;
59 WEBKIT_EXPORT WebVector<WebElement> listItems() const; 62 WEBKIT_EXPORT WebVector<WebElement> listItems() const;
60 63
61 #if WEBKIT_IMPLEMENTATION 64 #if WEBKIT_IMPLEMENTATION
62 WebSelectElement(const WTF::PassRefPtr<WebCore::HTMLSelectElement>&); 65 WebSelectElement(WebCore::Handle<WebCore::HTMLSelectElement>);
63 WebSelectElement& operator=(const WTF::PassRefPtr<WebCore::HTMLSelectElement >&); 66 WebSelectElement& operator=(WebCore::Handle<WebCore::HTMLSelectElement>);
64 operator WTF::PassRefPtr<WebCore::HTMLSelectElement>() const; 67 operator WebCore::Handle<WebCore::HTMLSelectElement>() const;
65 #endif 68 #endif
66 }; 69 };
67 70
68 } // namespace WebKit 71 } // namespace WebKit
69 72
70 #endif 73 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebInputElement.h ('k') | Source/WebKit/chromium/src/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698