OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 } | 202 } |
203 | 203 |
204 void WebPopupMenuImpl::beginFrame(const WebBeginFrameArgs&) | 204 void WebPopupMenuImpl::beginFrame(const WebBeginFrameArgs&) |
205 { | 205 { |
206 } | 206 } |
207 | 207 |
208 void WebPopupMenuImpl::layout() | 208 void WebPopupMenuImpl::layout() |
209 { | 209 { |
210 } | 210 } |
211 | 211 |
212 void WebPopupMenuImpl::paintContents(WebCanvas* canvas, const WebRect& rect, boo
l, WebFloatRect&, | 212 void WebPopupMenuImpl::paintContents(WebCanvas* canvas, const WebRect& rect, boo
l canPaintLCDText, WebFloatRect&, WebContentLayerClient::GraphicsContextStatus c
ontextStatus) |
213 WebContentLayerClient::GraphicsContextStatus contextStatus) | 213 { |
| 214 paintContents(canvas, rect, canPaintLCDText, contextStatus); |
| 215 } |
| 216 |
| 217 void WebPopupMenuImpl::paintContents(WebCanvas* canvas, const WebRect& rect, boo
l, WebContentLayerClient::GraphicsContextStatus contextStatus) |
214 { | 218 { |
215 if (!m_widget) | 219 if (!m_widget) |
216 return; | 220 return; |
217 | 221 |
218 if (!rect.isEmpty()) { | 222 if (!rect.isEmpty()) { |
219 GraphicsContext context(canvas, | 223 GraphicsContext context(canvas, |
220 contextStatus == WebContentLayerClient::GraphicsContextEnabled ? Gra
phicsContext::NothingDisabled : GraphicsContext::FullyDisabled); | 224 contextStatus == WebContentLayerClient::GraphicsContextEnabled ? Gra
phicsContext::NothingDisabled : GraphicsContext::FullyDisabled); |
221 m_widget->paint(&context, rect); | 225 m_widget->paint(&context, rect); |
222 } | 226 } |
223 } | 227 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 ASSERT(widget == m_widget); | 405 ASSERT(widget == m_widget); |
402 if (m_widget) { | 406 if (m_widget) { |
403 m_widget->setClient(0); | 407 m_widget->setClient(0); |
404 m_widget = 0; | 408 m_widget = 0; |
405 } | 409 } |
406 if (m_client) | 410 if (m_client) |
407 m_client->closeWidgetSoon(); | 411 m_client->closeWidgetSoon(); |
408 } | 412 } |
409 | 413 |
410 } // namespace blink | 414 } // namespace blink |
OLD | NEW |