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

Unified Diff: chrome/browser/ui/views/constrained_window_views.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 | « no previous file | chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/constrained_window_views.cc
diff --git a/chrome/browser/ui/views/constrained_window_views.cc b/chrome/browser/ui/views/constrained_window_views.cc
index 2a8b4cf4f02161896310a42a43844fb8627af376..162a6589015e364c9c8ca108545c790e00fa7d4b 100644
--- a/chrome/browser/ui/views/constrained_window_views.cc
+++ b/chrome/browser/ui/views/constrained_window_views.cc
@@ -32,6 +32,7 @@
#include "ui/gfx/path.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/screen.h"
+#include "ui/views/color_constants.h"
#include "ui/views/controls/button/image_button.h"
#include "ui/views/focus/focus_manager.h"
#include "ui/views/views_delegate.h"
@@ -272,7 +273,8 @@ const int kTitleLeftSpacing = 2;
const int kTitleCaptionSpacing = 5;
const SkColor kContentsBorderShadow = SkColorSetARGB(51, 0, 0, 0);
-}
+
+} // namespace
////////////////////////////////////////////////////////////////////////////////
// ConstrainedWindowFrameView, public:
@@ -487,7 +489,7 @@ void ConstrainedWindowFrameView::PaintClientEdge(gfx::Canvas* canvas) {
frame_shadow_bounds.Inset(-kFrameShadowThickness, -kFrameShadowThickness);
canvas->FillRect(frame_shadow_bounds, kContentsBorderShadow);
- canvas->FillRect(client_edge_bounds, ResourceBundle::toolbar_color);
+ canvas->FillRect(client_edge_bounds, views::kClientEdgeColor);
}
void ConstrainedWindowFrameView::LayoutWindowControls() {
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/app_panel_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698