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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Helpers for views::NonClientFrameView implementations. | 73 // Helpers for views::NonClientFrameView implementations. |
74 gfx::Rect GetBoundsForClientView(int top_height, | 74 gfx::Rect GetBoundsForClientView(int top_height, |
75 const gfx::Rect& window_bounds) const; | 75 const gfx::Rect& window_bounds) const; |
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. |
| 84 int GetRightInset() const; |
| 85 |
83 // Paints the frame header. | 86 // Paints the frame header. |
84 void PaintHeader(views::NonClientFrameView* view, | 87 void PaintHeader(views::NonClientFrameView* view, |
85 gfx::Canvas* canvas, | 88 gfx::Canvas* canvas, |
86 HeaderMode header_mode, | 89 HeaderMode header_mode, |
87 int theme_frame_id, | 90 int theme_frame_id, |
88 const gfx::ImageSkia* theme_frame_overlay); | 91 const gfx::ImageSkia* theme_frame_overlay); |
89 | 92 |
90 // Paints the header/content separator line. Exists as a separate function | 93 // Paints the header/content separator line. Exists as a separate function |
91 // because some windows with complex headers (e.g. browsers with tab strips) | 94 // because some windows with complex headers (e.g. browsers with tab strips) |
92 // need to draw their own line. | 95 // need to draw their own line. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 177 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
175 | 178 |
176 SizeButtonBehavior size_button_behavior_; | 179 SizeButtonBehavior size_button_behavior_; |
177 | 180 |
178 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 181 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
179 }; | 182 }; |
180 | 183 |
181 } // namespace ash | 184 } // namespace ash |
182 | 185 |
183 #endif // ASH_WM_FRAME_PAINTER_H_ | 186 #endif // ASH_WM_FRAME_PAINTER_H_ |
OLD | NEW |