1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef ASH_FRAME_HEADER_PAINTER_H_
6 #define ASH_FRAME_HEADER_PAINTER_H_
8 #include "ash/ash_export.h"
16 // Helper class for painting the window header.
17 class ASH_EXPORT HeaderPainter
{
24 virtual ~HeaderPainter() {
27 // Returns the header's minimum width.
28 virtual int GetMinimumHeaderWidth() const = 0;
31 virtual void PaintHeader(gfx::Canvas
* canvas
, Mode mode
) = 0;
33 // Performs layout for the header.
34 virtual void LayoutHeader() = 0;
36 // Get the height of the header.
37 virtual int GetHeaderHeight() const = 0;
39 // Gets / sets how much of the header is painted. This allows the header to
40 // paint under things (like the tabstrip) which have transparent /
41 // non-painting sections. This height does not affect LayoutHeader().
42 virtual int GetHeaderHeightForPainting() const = 0;
43 virtual void SetHeaderHeightForPainting(int height_for_painting
) = 0;
45 // Schedule a re-paint of the entire title.
46 virtual void SchedulePaintForTitle() = 0;
48 // Updates the x inset of the leftmost view in the header.
49 virtual void UpdateLeftViewXInset(int left_view_x_inset
) = 0;
54 #endif // ASH_FRAME_HEADER_PAINTER_H_