OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #if ENABLE(VIDEO) | 7 #if ENABLE(VIDEO) |
8 | 8 |
9 #include "GraphicsContext.h" | 9 #include "GraphicsContext.h" |
10 #include "IntRect.h" | 10 #include "IntRect.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 return 0; | 270 return 0; |
271 } | 271 } |
272 } | 272 } |
273 | 273 |
274 void MediaPlayerPrivate::setVisible(bool visible) { | 274 void MediaPlayerPrivate::setVisible(bool visible) { |
275 if (m_data) { | 275 if (m_data) { |
276 AsDelegate(m_data)->SetVisible(visible); | 276 AsDelegate(m_data)->SetVisible(visible); |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 void MediaPlayerPrivate::setRect(const IntRect& r) { | 280 void MediaPlayerPrivate::setSize(const IntSize& size) { |
281 if (m_data) { | 281 if (m_data) { |
282 AsDelegate(m_data)->SetRect(gfx::Rect(r.x(), r.y(), r.width(), r.height())); | 282 AsDelegate(m_data)->SetSize(gfx::Size(size.width(), size.height())); |
283 } | 283 } |
284 } | 284 } |
285 | 285 |
286 void MediaPlayerPrivate::paint(GraphicsContext* p, const IntRect& r) { | 286 void MediaPlayerPrivate::paint(GraphicsContext* p, const IntRect& r) { |
287 if (m_data) { | 287 if (m_data) { |
288 gfx::Rect rect(r.x(), r.y(), r.width(), r.height()); | 288 gfx::Rect rect(r.x(), r.y(), r.width(), r.height()); |
289 AsDelegate(m_data)->Paint(p->platformContext()->canvas(), rect); | 289 AsDelegate(m_data)->Paint(p->platformContext()->canvas(), rect); |
290 } | 290 } |
291 } | 291 } |
292 | 292 |
(...skipping 28 matching lines...) Expand all Loading... |
321 // Do nothing for now. | 321 // Do nothing for now. |
322 } | 322 } |
323 | 323 |
324 bool MediaPlayerPrivate::isAvailable() { | 324 bool MediaPlayerPrivate::isAvailable() { |
325 return webkit_glue::IsMediaPlayerAvailable(); | 325 return webkit_glue::IsMediaPlayerAvailable(); |
326 } | 326 } |
327 | 327 |
328 } // namespace WebCore | 328 } // namespace WebCore |
329 | 329 |
330 #endif | 330 #endif |
OLD | NEW |