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

Side by Side Diff: ash/frame/default_header_painter.h

Issue 1566563002: Vectorize CrOS window control icons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dummy GetIcon impl in TestToolbarModel Created 4 years, 11 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 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 5 #ifndef ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 6 #define ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/frame/header_painter.h" 9 #include "ash/frame/header_painter.h"
10 #include "base/compiler_specific.h" // override 10 #include "base/compiler_specific.h" // override
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void LayoutLeftHeaderView(); 77 void LayoutLeftHeaderView();
78 78
79 // Whether light caption images should be used. This is the case when the 79 // Whether light caption images should be used. This is the case when the
80 // background of the frame is dark. 80 // background of the frame is dark.
81 bool ShouldUseLightImages(); 81 bool ShouldUseLightImages();
82 82
83 // Update all the images in the caption buttons. 83 // Update all the images in the caption buttons.
84 void UpdateAllButtonImages(); 84 void UpdateAllButtonImages();
85 85
86 // Updates the size button's images. 86 // Updates the size button's images.
87 void UpdateSizeButtonImages(bool use_light_images); 87 void UpdateSizeButtonImages();
88 88
89 // Returns the header bounds in the coordinates of |view_|. The header is 89 // Returns the header bounds in the coordinates of |view_|. The header is
90 // assumed to be positioned at the top left corner of |view_| and to have the 90 // assumed to be positioned at the top left corner of |view_| and to have the
91 // same width as |view_|. 91 // same width as |view_|.
92 gfx::Rect GetLocalBounds() const; 92 gfx::Rect GetLocalBounds() const;
93 93
94 // Returns the bounds for the title. 94 // Returns the bounds for the title.
95 gfx::Rect GetTitleBounds() const; 95 gfx::Rect GetTitleBounds() const;
96 96
97 // Returns whether the frame uses custom frame coloring. 97 // Returns whether the frame uses custom frame coloring.
(...skipping 17 matching lines...) Expand all
115 bool initial_paint_; 115 bool initial_paint_;
116 116
117 scoped_ptr<gfx::SlideAnimation> activation_animation_; 117 scoped_ptr<gfx::SlideAnimation> activation_animation_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter); 119 DISALLOW_COPY_AND_ASSIGN(DefaultHeaderPainter);
120 }; 120 };
121 121
122 } // namespace ash 122 } // namespace ash
123 123
124 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_ 124 #endif // ASH_FRAME_DEFAULT_HEADER_PAINTER_H_
OLDNEW
« no previous file with comments | « ash/frame/caption_buttons/frame_size_button_unittest.cc ('k') | ash/frame/default_header_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698