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

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

Issue 2029883002: Moves mash/wm into ash/mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_static_assert
Patch Set: move comment Created 4 years, 6 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/mus/frame/frame_border_hit_test_controller.cc ('k') | ash/mus/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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef MASH_WM_FRAME_HEADER_PAINTER_H_ 5 #ifndef ASH_MUS_FRAME_HEADER_PAINTER_H_
6 #define MASH_WM_FRAME_HEADER_PAINTER_H_ 6 #define ASH_MUS_FRAME_HEADER_PAINTER_H_
7 7
8 namespace gfx { 8 namespace gfx {
9 class Canvas; 9 class Canvas;
10 } 10 }
11 11
12 namespace mash { 12 namespace ash {
13 namespace wm { 13 namespace mus {
14 14
15 // Helper class for painting the window header. 15 // Helper class for painting the window header.
16 // TODO(sky): keep this only if we're going to actually need different 16 // TODO(sky): keep this only if we're going to actually need different
17 // subclasses. 17 // subclasses.
18 class HeaderPainter { 18 class HeaderPainter {
19 public: 19 public:
20 enum Mode { MODE_ACTIVE, MODE_INACTIVE }; 20 enum Mode { MODE_ACTIVE, MODE_INACTIVE };
21 21
22 virtual ~HeaderPainter() {} 22 virtual ~HeaderPainter() {}
23 23
(...skipping 12 matching lines...) Expand all
36 // Gets / sets how much of the header is painted. This allows the header to 36 // Gets / sets how much of the header is painted. This allows the header to
37 // paint under things (like the tabstrip) which have transparent / 37 // paint under things (like the tabstrip) which have transparent /
38 // non-painting sections. This height does not affect LayoutHeader(). 38 // non-painting sections. This height does not affect LayoutHeader().
39 virtual int GetHeaderHeightForPainting() const = 0; 39 virtual int GetHeaderHeightForPainting() const = 0;
40 virtual void SetHeaderHeightForPainting(int height_for_painting) = 0; 40 virtual void SetHeaderHeightForPainting(int height_for_painting) = 0;
41 41
42 // Schedule a re-paint of the entire title. 42 // Schedule a re-paint of the entire title.
43 virtual void SchedulePaintForTitle() = 0; 43 virtual void SchedulePaintForTitle() = 0;
44 }; 44 };
45 45
46 } // namespace wm 46 } // namespace mus
47 } // namespace mash 47 } // namespace ash
48 48
49 #endif // MASH_WM_FRAME_HEADER_PAINTER_H_ 49 #endif // ASH_MUS_FRAME_HEADER_PAINTER_H_
OLDNEW
« no previous file with comments | « ash/mus/frame/frame_border_hit_test_controller.cc ('k') | ash/mus/frame/header_painter_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698