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

Side by Side Diff: webkit/glue/webwidget_impl.cc

Issue 14110: Move the "platform" wrappers in skia/ext to the skia namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/glue/webwidget_impl.h ('k') | webkit/port/platform/chromium/ScrollbarThemeChromiumWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698