Index: views/window/dialog_client_view.cc |
=================================================================== |
--- views/window/dialog_client_view.cc (revision 50661) |
+++ views/window/dialog_client_view.cc (working copy) |
@@ -17,7 +17,7 @@ |
#include "app/l10n_util.h" |
#include "app/resource_bundle.h" |
#include "base/keyboard_codes.h" |
-#include "gfx/canvas.h" |
+#include "gfx/canvas_skia.h" |
#include "gfx/font.h" |
#include "grit/app_strings.h" |
#include "views/controls/button/native_button.h" |
@@ -418,7 +418,7 @@ |
if (window()->GetDelegate()->CanResize() || |
window()->GetDelegate()->CanMaximize()) { |
#if defined(OS_WIN) |
- HDC dc = canvas->beginPlatformPaint(); |
+ HDC dc = canvas->AsCanvasSkia()->beginPlatformPaint(); |
SIZE gripper_size = { 0, 0 }; |
gfx::NativeTheme::instance()->GetThemePartSize( |
gfx::NativeTheme::STATUS, dc, SP_GRIPPER, 1, NULL, TS_TRUE, |
@@ -434,7 +434,7 @@ |
RECT native_bounds = size_box_bounds_.ToRECT(); |
gfx::NativeTheme::instance()->PaintStatusGripper( |
dc, SP_PANE, 1, 0, &native_bounds); |
- canvas->endPlatformPaint(); |
+ canvas->AsCanvasSkia()->endPlatformPaint(); |
#else |
NOTIMPLEMENTED(); |
// TODO(port): paint size box |