| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // Helpers for views::NonClientFrameView implementations. | 81 // Helpers for views::NonClientFrameView implementations. |
| 82 gfx::Rect GetBoundsForClientView(int top_height, | 82 gfx::Rect GetBoundsForClientView(int top_height, |
| 83 const gfx::Rect& window_bounds) const; | 83 const gfx::Rect& window_bounds) const; |
| 84 gfx::Rect GetWindowBoundsForClientBounds( | 84 gfx::Rect GetWindowBoundsForClientBounds( |
| 85 int top_height, | 85 int top_height, |
| 86 const gfx::Rect& client_bounds) const; | 86 const gfx::Rect& client_bounds) const; |
| 87 int NonClientHitTest(views::NonClientFrameView* view, | 87 int NonClientHitTest(views::NonClientFrameView* view, |
| 88 const gfx::Point& point); | 88 const gfx::Point& point); |
| 89 gfx::Size GetMinimumSize(views::NonClientFrameView* view); | 89 gfx::Size GetMinimumSize(views::NonClientFrameView* view); |
| 90 gfx::Size GetMaximumSize(views::NonClientFrameView* view); |
| 90 | 91 |
| 91 // Returns the inset from the right edge. | 92 // Returns the inset from the right edge. |
| 92 int GetRightInset() const; | 93 int GetRightInset() const; |
| 93 | 94 |
| 94 // Returns the amount that the theme background should be inset. | 95 // Returns the amount that the theme background should be inset. |
| 95 int GetThemeBackgroundXInset() const; | 96 int GetThemeBackgroundXInset() const; |
| 96 | 97 |
| 97 // Paints the frame header. | 98 // Paints the frame header. |
| 98 void PaintHeader(views::NonClientFrameView* view, | 99 void PaintHeader(views::NonClientFrameView* view, |
| 99 gfx::Canvas* canvas, | 100 gfx::Canvas* canvas, |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 228 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
| 228 | 229 |
| 229 SizeButtonBehavior size_button_behavior_; | 230 SizeButtonBehavior size_button_behavior_; |
| 230 | 231 |
| 231 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 232 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
| 232 }; | 233 }; |
| 233 | 234 |
| 234 } // namespace ash | 235 } // namespace ash |
| 235 | 236 |
| 236 #endif // ASH_WM_FRAME_PAINTER_H_ | 237 #endif // ASH_WM_FRAME_PAINTER_H_ |
| OLD | NEW |