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

Side by Side Diff: ash/common/frame/header_painter.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 9 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
« no previous file with comments | « ash/common/frame/frame_border_hit_test.cc ('k') | ash/common/frame/header_painter_util.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef ASH_COMMON_FRAME_HEADER_PAINTER_H_
6 #define ASH_COMMON_FRAME_HEADER_PAINTER_H_
7
8 #include "ash/ash_export.h"
9
10 namespace gfx {
11 class Canvas;
12 }
13
14 namespace ash {
15
16 // Helper class for painting the window header.
17 class ASH_EXPORT HeaderPainter {
18 public:
19 enum Mode { MODE_ACTIVE, MODE_INACTIVE };
20
21 virtual ~HeaderPainter() {}
22
23 // Returns the header's minimum width.
24 virtual int GetMinimumHeaderWidth() const = 0;
25
26 // Paints the header.
27 virtual void PaintHeader(gfx::Canvas* canvas, Mode mode) = 0;
28
29 // Performs layout for the header.
30 virtual void LayoutHeader() = 0;
31
32 // Get the height of the header.
33 virtual int GetHeaderHeight() const = 0;
34
35 // Gets / sets how much of the header is painted. This allows the header to
36 // paint under things (like the tabstrip) which have transparent /
37 // non-painting sections. This height does not affect LayoutHeader().
38 virtual int GetHeaderHeightForPainting() const = 0;
39 virtual void SetHeaderHeightForPainting(int height_for_painting) = 0;
40
41 // Schedule a re-paint of the entire title.
42 virtual void SchedulePaintForTitle() = 0;
43 };
44
45 } // namespace ash
46
47 #endif // ASH_COMMON_FRAME_HEADER_PAINTER_H_
OLDNEW
« no previous file with comments | « ash/common/frame/frame_border_hit_test.cc ('k') | ash/common/frame/header_painter_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698