OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/ui/views/panels/panel_frame_view.h" | 5 #include "chrome/browser/ui/views/panels/panel_frame_view.h" |
6 | 6 |
7 #include "chrome/browser/ui/panels/panel.h" | 7 #include "chrome/browser/ui/panels/panel.h" |
8 #include "chrome/browser/ui/panels/panel_constants.h" | 8 #include "chrome/browser/ui/panels/panel_constants.h" |
9 #include "chrome/browser/ui/views/panels/panel_view.h" | 9 #include "chrome/browser/ui/views/panels/panel_view.h" |
10 #include "chrome/browser/ui/views/tab_icon_view.h" | 10 #include "chrome/browser/ui/views/tab_icon_view.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const int kExtraPaddingBetweenButtonAndTop = 1; | 51 const int kExtraPaddingBetweenButtonAndTop = 1; |
52 | 52 |
53 // Colors used to draw titlebar background under default theme. | 53 // Colors used to draw titlebar background under default theme. |
54 const SkColor kActiveBackgroundDefaultColor = SkColorSetRGB(0x3a, 0x3d, 0x3d); | 54 const SkColor kActiveBackgroundDefaultColor = SkColorSetRGB(0x3a, 0x3d, 0x3d); |
55 const SkColor kInactiveBackgroundDefaultColor = SkColorSetRGB(0x7a, 0x7c, 0x7c); | 55 const SkColor kInactiveBackgroundDefaultColor = SkColorSetRGB(0x7a, 0x7c, 0x7c); |
56 const SkColor kAttentionBackgroundDefaultColor = | 56 const SkColor kAttentionBackgroundDefaultColor = |
57 SkColorSetRGB(0x53, 0xa9, 0x3f); | 57 SkColorSetRGB(0x53, 0xa9, 0x3f); |
58 | 58 |
59 // Color used to draw the minimized panel. | 59 // Color used to draw the minimized panel. |
60 const SkColor kMinimizeBackgroundDefaultColor = SkColorSetRGB(0xf5, 0xf4, 0xf0); | 60 const SkColor kMinimizeBackgroundDefaultColor = SkColorSetRGB(0xf5, 0xf4, 0xf0); |
61 const SkColor kMinimizeBorderDefaultColor = SkColorSetRGB(0xc9, 0xc9, 0xc9); | |
62 | 61 |
63 // Color used to draw the title text under default theme. | 62 // Color used to draw the title text under default theme. |
64 const SkColor kTitleTextDefaultColor = SkColorSetRGB(0xf9, 0xf9, 0xf9); | 63 const SkColor kTitleTextDefaultColor = SkColorSetRGB(0xf9, 0xf9, 0xf9); |
65 | 64 |
66 gfx::ImageSkia* CreateImageForColor(SkColor color) { | 65 gfx::ImageSkia* CreateImageForColor(SkColor color) { |
67 gfx::Canvas canvas(gfx::Size(1, 1), 1.0f, true); | 66 gfx::Canvas canvas(gfx::Size(1, 1), 1.0f, true); |
68 canvas.DrawColor(color); | 67 canvas.DrawColor(color); |
69 return new gfx::ImageSkia(canvas.ExtractImageRep()); | 68 return new gfx::ImageSkia(canvas.ExtractImageRep()); |
70 } | 69 } |
71 | 70 |
(...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
761 | 760 |
762 // Draw the left border. | 761 // Draw the left border. |
763 canvas->TileImageInt(left_image, | 762 canvas->TileImageInt(left_image, |
764 0, | 763 0, |
765 top_left_image.height(), | 764 top_left_image.height(), |
766 left_image.width(), | 765 left_image.width(), |
767 height() - top_left_image.height() - | 766 height() - top_left_image.height() - |
768 bottom_left_image.height()); | 767 bottom_left_image.height()); |
769 #endif | 768 #endif |
770 } | 769 } |
OLD | NEW |