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

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

Issue 2606853002: SELECT popup: Don't use non-100% zoom level in popup. (Closed)
Patch Set: . Created 3 years, 11 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // - No <select> popups 51 // - No <select> popups
52 // - window.setValueAndClosePopup(number, string). 52 // - window.setValueAndClosePopup(number, string).
53 virtual void writeDocument(SharedBuffer*) = 0; 53 virtual void writeDocument(SharedBuffer*) = 0;
54 54
55 // This is called after the document is ready to do additionary setup. 55 // This is called after the document is ready to do additionary setup.
56 virtual void selectFontsFromOwnerDocument(Document&) = 0; 56 virtual void selectFontsFromOwnerDocument(Document&) = 0;
57 57
58 virtual Element& ownerElement() = 0; 58 virtual Element& ownerElement() = 0;
59 // Returns effective zoom factor of ownerElement, or the page zoom factor if 59 // Returns effective zoom factor of ownerElement, or the page zoom factor if
60 // the effective zoom factor is not available. 60 // the effective zoom factor is not available.
61 float zoomFactor(); 61 virtual float zoomFactor();
62 // Returns a Locale object associated to the client. 62 // Returns a Locale object associated to the client.
63 virtual Locale& locale() = 0; 63 virtual Locale& locale() = 0;
64 64
65 // This is called by the content HTML of a PagePopup. 65 // This is called by the content HTML of a PagePopup.
66 // An implementation of this function should call 66 // An implementation of this function should call
67 // ChromeClient::closePagePopup(). 67 // ChromeClient::closePagePopup().
68 virtual void setValueAndClosePopup(int numValue, 68 virtual void setValueAndClosePopup(int numValue,
69 const String& stringValue) = 0; 69 const String& stringValue) = 0;
70 70
71 // This is called by the content HTML of a PagePopup. 71 // This is called by the content HTML of a PagePopup.
(...skipping 21 matching lines...) Expand all
93 static void addProperty(const char* name, const IntRect&, SharedBuffer*); 93 static void addProperty(const char* name, const IntRect&, SharedBuffer*);
94 }; 94 };
95 95
96 inline void PagePopupClient::addString(const String& str, SharedBuffer* data) { 96 inline void PagePopupClient::addString(const String& str, SharedBuffer* data) {
97 CString str8 = str.utf8(); 97 CString str8 = str.utf8();
98 data->append(str8.data(), str8.length()); 98 data->append(str8.data(), str8.length());
99 } 99 }
100 100
101 } // namespace blink 101 } // namespace blink
102 #endif 102 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698