OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/frame/default_header_painter.h" | 5 #include "ash/frame/default_header_painter.h" |
6 | 6 |
7 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" | 7 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
8 #include "ash/frame/header_painter_util.h" | 8 #include "ash/frame/header_painter_util.h" |
9 #include "base/debug/leak_annotations.h" | 9 #include "base/debug/leak_annotations.h" |
10 #include "base/logging.h" // DCHECK | 10 #include "base/logging.h" // DCHECK |
11 #include "grit/ash_resources.h" | 11 #include "grit/ash_resources.h" |
12 #include "third_party/skia/include/core/SkPaint.h" | 12 #include "third_party/skia/include/core/SkPaint.h" |
13 #include "third_party/skia/include/core/SkPath.h" | 13 #include "third_party/skia/include/core/SkPath.h" |
14 #include "ui/base/resource/resource_bundle.h" | 14 #include "ui/base/resource/resource_bundle.h" |
15 #include "ui/gfx/animation/slide_animation.h" | 15 #include "ui/gfx/animation/slide_animation.h" |
16 #include "ui/gfx/canvas.h" | 16 #include "ui/gfx/canvas.h" |
17 #include "ui/gfx/color_utils.h" | 17 #include "ui/gfx/color_utils.h" |
18 #include "ui/gfx/font_list.h" | 18 #include "ui/gfx/font_list.h" |
| 19 #include "ui/gfx/geometry/rect.h" |
19 #include "ui/gfx/image/image.h" | 20 #include "ui/gfx/image/image.h" |
20 #include "ui/gfx/rect.h" | |
21 #include "ui/gfx/skia_util.h" | 21 #include "ui/gfx/skia_util.h" |
22 #include "ui/views/view.h" | 22 #include "ui/views/view.h" |
23 #include "ui/views/widget/native_widget_aura.h" | 23 #include "ui/views/widget/native_widget_aura.h" |
24 #include "ui/views/widget/widget.h" | 24 #include "ui/views/widget/widget.h" |
25 #include "ui/views/widget/widget_delegate.h" | 25 #include "ui/views/widget/widget_delegate.h" |
26 | 26 |
27 using views::Widget; | 27 using views::Widget; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 if (!frame_->IsMaximized() && !frame_->IsFullscreen()) { | 345 if (!frame_->IsMaximized() && !frame_->IsFullscreen()) { |
346 color = SkColorSetARGB(kInactiveFrameAlpha, | 346 color = SkColorSetARGB(kInactiveFrameAlpha, |
347 SkColorGetR(color), | 347 SkColorGetR(color), |
348 SkColorGetG(color), | 348 SkColorGetG(color), |
349 SkColorGetB(color)); | 349 SkColorGetB(color)); |
350 } | 350 } |
351 return color; | 351 return color; |
352 } | 352 } |
353 | 353 |
354 } // namespace ash | 354 } // namespace ash |
OLD | NEW |