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

Unified Diff: ui/views/window/custom_frame_view.cc

Issue 9602003: Extract the last SkColor from ResourceBundle API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add color_constants.h Created 8 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/views.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/custom_frame_view.cc
diff --git a/ui/views/window/custom_frame_view.cc b/ui/views/window/custom_frame_view.cc
index dc3a4b245b1dc20bb359b4c4eeeea3d63d29b2e1..be9510c3f9a4cb065fb8680273ac253e5ceff071 100644
--- a/ui/views/window/custom_frame_view.cc
+++ b/ui/views/window/custom_frame_view.cc
@@ -15,6 +15,7 @@
#include "ui/gfx/canvas.h"
#include "ui/gfx/font.h"
#include "ui/gfx/path.h"
+#include "ui/views/color_constants.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/window/client_view.h"
#include "ui/views/window/frame_background.h"
@@ -433,10 +434,10 @@ void CustomFrameView::PaintRestoredClientEdge(gfx::Canvas* canvas) {
canvas->TileImageInt(*left, client_area_bounds.x() - left->width(),
client_area_top, left->width(), client_area_height);
- // Draw the toolbar color to fill in the edges.
+ // Draw the color to fill in the edges.
canvas->DrawRect(gfx::Rect(client_area_bounds.x() - 1, client_area_top - 1,
client_area_bounds.width() + 1, client_area_bottom - client_area_top + 1),
- ui::ResourceBundle::toolbar_color);
+ kClientEdgeColor);
}
SkColor CustomFrameView::GetFrameColor() const {
@@ -444,7 +445,7 @@ SkColor CustomFrameView::GetFrameColor() const {
}
SkBitmap* CustomFrameView::GetFrameBitmap() const {
- return ResourceBundle::GetSharedInstance().GetBitmapNamed(
+ return ui::ResourceBundle::GetSharedInstance().GetBitmapNamed(
frame_->IsActive() ? IDR_FRAME : IDR_FRAME_INACTIVE);
}
« no previous file with comments | « ui/views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698