| 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 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 | 8 |
| 9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
| 10 #include "Cursor.h" | 10 #include "Cursor.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 114 |
| 115 if (delegate_) { | 115 if (delegate_) { |
| 116 gfx::Rect damaged_rect(0, 0, size_.width(), size_.height()); | 116 gfx::Rect damaged_rect(0, 0, size_.width(), size_.height()); |
| 117 delegate_->DidInvalidateRect(this, damaged_rect); | 117 delegate_->DidInvalidateRect(this, damaged_rect); |
| 118 } | 118 } |
| 119 } | 119 } |
| 120 | 120 |
| 121 void WebWidgetImpl::Layout() { | 121 void WebWidgetImpl::Layout() { |
| 122 } | 122 } |
| 123 | 123 |
| 124 void WebWidgetImpl::Paint(gfx::PlatformCanvas* canvas, const gfx::Rect& rect) { | 124 void WebWidgetImpl::Paint(skia::PlatformCanvas* canvas, const gfx::Rect& rect) { |
| 125 if (!widget_) | 125 if (!widget_) |
| 126 return; | 126 return; |
| 127 | 127 |
| 128 if (!rect.IsEmpty()) { | 128 if (!rect.IsEmpty()) { |
| 129 #if defined(OS_MACOSX) | 129 #if defined(OS_MACOSX) |
| 130 CGContextRef context = canvas->getTopPlatformDevice().GetBitmapContext(); | 130 CGContextRef context = canvas->getTopPlatformDevice().GetBitmapContext(); |
| 131 GraphicsContext gc(context); | 131 GraphicsContext gc(context); |
| 132 #else | 132 #else |
| 133 PlatformContextSkia context(canvas); | 133 PlatformContextSkia context(canvas); |
| 134 // PlatformGraphicsContext is actually a pointer to PlatformContextSkia. | 134 // PlatformGraphicsContext is actually a pointer to PlatformContextSkia. |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { | 266 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { |
| 267 } | 267 } |
| 268 | 268 |
| 269 bool WebWidgetImpl::isHidden() { | 269 bool WebWidgetImpl::isHidden() { |
| 270 if (!delegate_) | 270 if (!delegate_) |
| 271 return true; | 271 return true; |
| 272 | 272 |
| 273 return delegate_->IsHidden(); | 273 return delegate_->IsHidden(); |
| 274 } | 274 } |
| 275 #endif | 275 #endif |
| OLD | NEW |