diff options
author | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-06 23:16:19 +0000 |
---|---|---|
committer | pkotwicz@chromium.org <pkotwicz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-06 23:16:19 +0000 |
commit | 782388a4268cd2543ed6f88a01100fc00f2b0293 (patch) | |
tree | 8a80fc48f23a713f4fe0b3765a4ea949db1cb5f8 /ui/views/window | |
parent | d4ae8057c8b4e45bf5e5998309418ed11d390171 (diff) | |
download | chromium_src-782388a4268cd2543ed6f88a01100fc00f2b0293.zip chromium_src-782388a4268cd2543ed6f88a01100fc00f2b0293.tar.gz chromium_src-782388a4268cd2543ed6f88a01100fc00f2b0293.tar.bz2 |
Rename DrawBitmapInt to DrawImageInt
Bug=None
Test=Compiles
Review URL: https://chromiumcodereview.appspot.com/10512021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@140877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/window')
-rw-r--r-- | ui/views/window/custom_frame_view.cc | 12 | ||||
-rw-r--r-- | ui/views/window/frame_background.cc | 40 |
2 files changed, 26 insertions, 26 deletions
diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc index 44cf9c7..478ae33 100644 --- a/ui/views/window/custom_frame_view.cc +++ b/ui/views/window/custom_frame_view.cc @@ -396,11 +396,11 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) { // Top. int top_edge_y = client_area_top - top->height(); - canvas->DrawBitmapInt(*top_left, client_area_bounds.x() - top_left->width(), - top_edge_y); + canvas->DrawImageInt(*top_left, client_area_bounds.x() - top_left->width(), + top_edge_y); canvas->TileImageInt(*top, client_area_bounds.x(), top_edge_y, client_area_bounds.width(), top->height()); - canvas->DrawBitmapInt(*top_right, client_area_bounds.right(), top_edge_y); + canvas->DrawImageInt(*top_right, client_area_bounds.right(), top_edge_y); // Right. int client_area_bottom = @@ -410,11 +410,11 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) { right->width(), client_area_height); // Bottom. - canvas->DrawBitmapInt(*bottom_right, client_area_bounds.right(), - client_area_bottom); + canvas->DrawImageInt(*bottom_right, client_area_bounds.right(), + client_area_bottom); canvas->TileImageInt(*bottom, client_area_bounds.x(), client_area_bottom, client_area_bounds.width(), bottom_right->height()); - canvas->DrawBitmapInt(*bottom_left, + canvas->DrawImageInt(*bottom_left, client_area_bounds.x() - bottom_left->width(), client_area_bottom); // Left. diff --git a/ui/views/window/frame_background.cc b/ui/views/window/frame_background.cc index 59e205f..111ac25 100644 --- a/ui/views/window/frame_background.cc +++ b/ui/views/window/frame_background.cc @@ -66,17 +66,17 @@ void FrameBackground::PaintRestored(gfx::Canvas* canvas, View* view) const { // Draw the theme frame overlay, if available. if (theme_overlay_image_) - canvas->DrawBitmapInt(*theme_overlay_image_, 0, 0); + canvas->DrawImageInt(*theme_overlay_image_, 0, 0); // Draw the top corners and edge, scaling the corner images down if they // are too big and relative to the vertical space available. int top_left_height = std::min(top_left_corner_->height(), view->height() - bottom_left_corner_->height()); - canvas->DrawBitmapInt(*top_left_corner_, - 0, 0, top_left_corner_->width(), top_left_height, - 0, 0, top_left_corner_->width(), top_left_height, - false); + canvas->DrawImageInt(*top_left_corner_, + 0, 0, top_left_corner_->width(), top_left_height, + 0, 0, top_left_corner_->width(), top_left_height, + false); canvas->TileImageInt(*top_edge_, top_left_corner_->width(), 0, @@ -85,12 +85,12 @@ void FrameBackground::PaintRestored(gfx::Canvas* canvas, View* view) const { int top_right_height = std::min(top_right_corner_->height(), view->height() - bottom_right_corner_->height()); - canvas->DrawBitmapInt(*top_right_corner_, - 0, 0, - top_right_corner_->width(), top_right_height, - view->width() - top_right_corner_->width(), 0, - top_right_corner_->width(), top_right_height, - false); + canvas->DrawImageInt(*top_right_corner_, + 0, 0, + top_right_corner_->width(), top_right_height, + view->width() - top_right_corner_->width(), 0, + top_right_corner_->width(), top_right_height, + false); // Right edge. int right_edge_height = @@ -102,9 +102,9 @@ void FrameBackground::PaintRestored(gfx::Canvas* canvas, View* view) const { right_edge_height); // Bottom corners and edge. - canvas->DrawBitmapInt(*bottom_right_corner_, - view->width() - bottom_right_corner_->width(), - view->height() - bottom_right_corner_->height()); + canvas->DrawImageInt(*bottom_right_corner_, + view->width() - bottom_right_corner_->width(), + view->height() - bottom_right_corner_->height()); canvas->TileImageInt( *bottom_edge_, bottom_left_corner_->width(), @@ -112,8 +112,8 @@ void FrameBackground::PaintRestored(gfx::Canvas* canvas, View* view) const { view->width() - bottom_left_corner_->width() - bottom_right_corner_->width(), bottom_edge_->height()); - canvas->DrawBitmapInt(*bottom_left_corner_, 0, - view->height() - bottom_left_corner_->height()); + canvas->DrawImageInt(*bottom_left_corner_, 0, + view->height() - bottom_left_corner_->height()); // Left edge. int left_edge_height = @@ -145,9 +145,9 @@ void FrameBackground::PaintMaximized(gfx::Canvas* canvas, View* view) const { DCHECK(maximized_top_left_ && maximized_top_right_); left_offset = maximized_top_left_->width(); right_offset = maximized_top_right_->width(); - canvas->DrawBitmapInt(*maximized_top_left_, 0, 0); - canvas->DrawBitmapInt(*maximized_top_right_, - view->width() - right_offset, 0); + canvas->DrawImageInt(*maximized_top_left_, 0, 0); + canvas->DrawImageInt(*maximized_top_right_, + view->width() - right_offset, 0); } // Draw the theme frame. @@ -158,7 +158,7 @@ void FrameBackground::PaintMaximized(gfx::Canvas* canvas, View* view) const { theme_image_->height()); // Draw the theme frame overlay, if available. if (theme_overlay_image_) - canvas->DrawBitmapInt(*theme_overlay_image_, 0, theme_background_y_); + canvas->DrawImageInt(*theme_overlay_image_, 0, theme_background_y_); } void FrameBackground::PaintFrameColor(gfx::Canvas* canvas, View* view) const { |