OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WM_FRAME_PAINTER_H_ | 5 #ifndef ASH_WM_FRAME_PAINTER_H_ |
6 #define ASH_WM_FRAME_PAINTER_H_ | 6 #define ASH_WM_FRAME_PAINTER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 gfx::Rect GetWindowBoundsForClientBounds( | 76 gfx::Rect GetWindowBoundsForClientBounds( |
77 int top_height, | 77 int top_height, |
78 const gfx::Rect& client_bounds) const; | 78 const gfx::Rect& client_bounds) const; |
79 int NonClientHitTest(views::NonClientFrameView* view, | 79 int NonClientHitTest(views::NonClientFrameView* view, |
80 const gfx::Point& point); | 80 const gfx::Point& point); |
81 gfx::Size GetMinimumSize(views::NonClientFrameView* view); | 81 gfx::Size GetMinimumSize(views::NonClientFrameView* view); |
82 | 82 |
83 // Returns the inset from the right edge. | 83 // Returns the inset from the right edge. |
84 int GetRightInset() const; | 84 int GetRightInset() const; |
85 | 85 |
| 86 // Returns the amount that the theme background should be inset. |
| 87 int GetThemeBackgroundXInset() const; |
| 88 |
86 // Paints the frame header. | 89 // Paints the frame header. |
87 void PaintHeader(views::NonClientFrameView* view, | 90 void PaintHeader(views::NonClientFrameView* view, |
88 gfx::Canvas* canvas, | 91 gfx::Canvas* canvas, |
89 HeaderMode header_mode, | 92 HeaderMode header_mode, |
90 int theme_frame_id, | 93 int theme_frame_id, |
91 const gfx::ImageSkia* theme_frame_overlay); | 94 const gfx::ImageSkia* theme_frame_overlay); |
92 | 95 |
93 // Paints the header/content separator line. Exists as a separate function | 96 // Paints the header/content separator line. Exists as a separate function |
94 // because some windows with complex headers (e.g. browsers with tab strips) | 97 // because some windows with complex headers (e.g. browsers with tab strips) |
95 // need to draw their own line. | 98 // need to draw their own line. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 180 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
178 | 181 |
179 SizeButtonBehavior size_button_behavior_; | 182 SizeButtonBehavior size_button_behavior_; |
180 | 183 |
181 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 184 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
182 }; | 185 }; |
183 | 186 |
184 } // namespace ash | 187 } // namespace ash |
185 | 188 |
186 #endif // ASH_WM_FRAME_PAINTER_H_ | 189 #endif // ASH_WM_FRAME_PAINTER_H_ |
OLD | NEW |