| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (c) 2011, Google Inc. All rights reserved. | 3 * Copyright (c) 2011, Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // While hovering popup menu window, we want to show tool tip message. | 118 // While hovering popup menu window, we want to show tool tip message. |
| 119 String getSelectedItemToolTip(); | 119 String getSelectedItemToolTip(); |
| 120 | 120 |
| 121 // This is public for testing. | 121 // This is public for testing. |
| 122 static IntRect layoutAndCalculateWidgetRectInternal(IntRect widgetRectInScre
en, int targetControlHeight, const FloatRect& windowRect, const FloatRect& scree
n, bool isRTL, const int rtlOffset, const int verticalOffset, const IntSize& tra
nsformOffset, PopupContent*, bool& needToResizeView); | 122 static IntRect layoutAndCalculateWidgetRectInternal(IntRect widgetRectInScre
en, int targetControlHeight, const FloatRect& windowRect, const FloatRect& scree
n, bool isRTL, const int rtlOffset, const int verticalOffset, const IntSize& tra
nsformOffset, PopupContent*, bool& needToResizeView); |
| 123 | 123 |
| 124 void disconnectClient() { m_listBox->disconnectClient(); } | 124 void disconnectClient() { m_listBox->disconnectClient(); } |
| 125 | 125 |
| 126 void updateFromElement() { m_listBox->updateFromElement(); } | 126 void updateFromElement() { m_listBox->updateFromElement(); } |
| 127 | 127 |
| 128 virtual void trace(Visitor*) OVERRIDE; | 128 virtual void trace(Visitor*) override; |
| 129 | 129 |
| 130 private: | 130 private: |
| 131 friend class WTF::RefCounted<PopupContainer>; | 131 friend class WTF::RefCounted<PopupContainer>; |
| 132 | 132 |
| 133 PopupContainer(PopupMenuClient*, bool deviceSupportsTouch); | 133 PopupContainer(PopupMenuClient*, bool deviceSupportsTouch); |
| 134 virtual ~PopupContainer(); | 134 virtual ~PopupContainer(); |
| 135 | 135 |
| 136 // Paint the border. | 136 // Paint the border. |
| 137 void paintBorder(GraphicsContext*, const IntRect&); | 137 void paintBorder(GraphicsContext*, const IntRect&); |
| 138 | 138 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 167 | 167 |
| 168 // Whether the popup is currently open. | 168 // Whether the popup is currently open. |
| 169 bool m_popupOpen; | 169 bool m_popupOpen; |
| 170 | 170 |
| 171 PopupContainerClient* m_client; | 171 PopupContainerClient* m_client; |
| 172 }; | 172 }; |
| 173 | 173 |
| 174 } // namespace blink | 174 } // namespace blink |
| 175 | 175 |
| 176 #endif | 176 #endif |
| OLD | NEW |