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

Side by Side Diff: Source/core/page/PagePopupClient.h

Issue 892083003: Revert Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
« no previous file with comments | « Source/core/page/PagePopup.h ('k') | Source/core/rendering/RenderMenuList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 20 matching lines...) Expand all
31 #ifndef PagePopupClient_h 31 #ifndef PagePopupClient_h
32 #define PagePopupClient_h 32 #define PagePopupClient_h
33 33
34 #include "platform/SharedBuffer.h" 34 #include "platform/SharedBuffer.h"
35 #include "platform/geometry/IntRect.h" 35 #include "platform/geometry/IntRect.h"
36 #include "wtf/text/CString.h" 36 #include "wtf/text/CString.h"
37 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class Document;
42 class Element; 41 class Element;
43 class Locale; 42 class Locale;
44 43
45 class PagePopupClient { 44 class PagePopupClient {
46 public: 45 public:
47 virtual IntSize contentSize() = 0; 46 virtual IntSize contentSize() = 0;
48 47
49 // Provide an HTML source to the specified buffer. The HTML 48 // Provide an HTML source to the specified buffer. The HTML
50 // source is rendered in a PagePopup. 49 // source is rendered in a PagePopup.
51 // The content HTML supports: 50 // The content HTML supports:
52 // - No <select> popups 51 // - No <select> popups
53 // - window.setValueAndClosePopup(number, string). 52 // - window.setValueAndClosePopup(number, string).
54 virtual void writeDocument(SharedBuffer*) = 0; 53 virtual void writeDocument(SharedBuffer*) = 0;
55 54
56 // This is called after the document is ready to do additionary setup.
57 virtual void didWriteDocument(Document&) = 0;
58
59 virtual Element& ownerElement() = 0; 55 virtual Element& ownerElement() = 0;
60 // Returns a Locale object associated to the client. 56 // Returns a Locale object associated to the client.
61 virtual Locale& locale() = 0; 57 virtual Locale& locale() = 0;
62 58
63 // This is called by the content HTML of a PagePopup. 59 // This is called by the content HTML of a PagePopup.
64 // An implementation of this function should call ChromeClient::closePagePop up(). 60 // An implementation of this function should call ChromeClient::closePagePop up().
65 virtual void setValueAndClosePopup(int numValue, const String& stringValue) = 0; 61 virtual void setValueAndClosePopup(int numValue, const String& stringValue) = 0;
66 62
67 // This is called by the content HTML of a PagePopup. 63 // This is called by the content HTML of a PagePopup.
68 virtual void setValue(const String&) = 0; 64 virtual void setValue(const String&) = 0;
(...skipping 18 matching lines...) Expand all
87 }; 83 };
88 84
89 inline void PagePopupClient::addString(const String& str, SharedBuffer* data) 85 inline void PagePopupClient::addString(const String& str, SharedBuffer* data)
90 { 86 {
91 CString str8 = str.utf8(); 87 CString str8 = str.utf8();
92 data->append(str8.data(), str8.length()); 88 data->append(str8.data(), str8.length());
93 } 89 }
94 90
95 } 91 }
96 #endif 92 #endif
OLDNEW
« no previous file with comments | « Source/core/page/PagePopup.h ('k') | Source/core/rendering/RenderMenuList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698