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

Side by Side Diff: ash/common/frame/default_header_painter.cc

Issue 2215223003: Moves most frame related classes to ash/common/frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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/common/frame/default_header_painter.h"
6 6
7 #include "ash/common/ash_layout_constants.h" 7 #include "ash/common/ash_layout_constants.h"
8 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" 8 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h "
9 #include "ash/frame/header_painter_util.h" 9 #include "ash/common/frame/header_painter_util.h"
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
11 #include "base/logging.h" // DCHECK 11 #include "base/logging.h" // DCHECK
12 #include "grit/ash_resources.h" 12 #include "grit/ash_resources.h"
13 #include "third_party/skia/include/core/SkPaint.h" 13 #include "third_party/skia/include/core/SkPaint.h"
14 #include "third_party/skia/include/core/SkPath.h" 14 #include "third_party/skia/include/core/SkPath.h"
15 #include "ui/base/resource/resource_bundle.h" 15 #include "ui/base/resource/resource_bundle.h"
16 #include "ui/gfx/animation/slide_animation.h" 16 #include "ui/gfx/animation/slide_animation.h"
17 #include "ui/gfx/canvas.h" 17 #include "ui/gfx/canvas.h"
18 #include "ui/gfx/color_utils.h" 18 #include "ui/gfx/color_utils.h"
19 #include "ui/gfx/font_list.h" 19 #include "ui/gfx/font_list.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 return HeaderPainterUtil::GetTitleBounds( 310 return HeaderPainterUtil::GetTitleBounds(
311 left_header_view_, caption_button_container_, GetTitleFontList()); 311 left_header_view_, caption_button_container_, GetTitleFontList());
312 } 312 }
313 313
314 bool DefaultHeaderPainter::UsesCustomFrameColors() const { 314 bool DefaultHeaderPainter::UsesCustomFrameColors() const {
315 return active_frame_color_ != kDefaultFrameColor || 315 return active_frame_color_ != kDefaultFrameColor ||
316 inactive_frame_color_ != kDefaultFrameColor; 316 inactive_frame_color_ != kDefaultFrameColor;
317 } 317 }
318 318
319 } // namespace ash 319 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/frame/default_header_painter.h ('k') | ash/common/frame/default_header_painter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698