| 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 "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" // OVERRIDE | 10 #include "base/compiler_specific.h" // OVERRIDE |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // Updates the solo-window transparent header appearance for all windows | 78 // Updates the solo-window transparent header appearance for all windows |
| 79 // using frame painters in |root_window|. | 79 // using frame painters in |root_window|. |
| 80 static void UpdateSoloWindowHeader(aura::RootWindow* root_window); | 80 static void UpdateSoloWindowHeader(aura::RootWindow* root_window); |
| 81 | 81 |
| 82 // Helpers for views::NonClientFrameView implementations. | 82 // Helpers for views::NonClientFrameView implementations. |
| 83 gfx::Rect GetBoundsForClientView(int top_height, | 83 gfx::Rect GetBoundsForClientView(int top_height, |
| 84 const gfx::Rect& window_bounds) const; | 84 const gfx::Rect& window_bounds) const; |
| 85 gfx::Rect GetWindowBoundsForClientBounds( | 85 gfx::Rect GetWindowBoundsForClientBounds( |
| 86 int top_height, | 86 int top_height, |
| 87 const gfx::Rect& client_bounds) const; | 87 const gfx::Rect& client_bounds) const; |
| 88 int NonClientHitTest(views::NonClientFrameView* view, | 88 int NonClientHitTest(const views::NonClientFrameView* view, |
| 89 const gfx::Point& point); | 89 const gfx::Point& point) const; |
| 90 gfx::Size GetMinimumSize(views::NonClientFrameView* view); | 90 gfx::Size GetMinimumSize(views::NonClientFrameView* view); |
| 91 gfx::Size GetMaximumSize(views::NonClientFrameView* view); | 91 gfx::Size GetMaximumSize(views::NonClientFrameView* view); |
| 92 | 92 |
| 93 // Returns the inset from the right edge. | 93 // Returns the inset from the right edge. |
| 94 int GetRightInset() const; | 94 int GetRightInset() const; |
| 95 | 95 |
| 96 // Returns the amount that the theme background should be inset. | 96 // Returns the amount that the theme background should be inset. |
| 97 int GetThemeBackgroundXInset() const; | 97 int GetThemeBackgroundXInset() const; |
| 98 | 98 |
| 99 // Returns true if the header should be painted using a minimalistic style. | 99 // Returns true if the header should be painted using a minimalistic style. |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 246 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
| 247 | 247 |
| 248 SizeButtonBehavior size_button_behavior_; | 248 SizeButtonBehavior size_button_behavior_; |
| 249 | 249 |
| 250 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 250 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 } // namespace ash | 253 } // namespace ash |
| 254 | 254 |
| 255 #endif // ASH_WM_FRAME_PAINTER_H_ | 255 #endif // ASH_WM_FRAME_PAINTER_H_ |
| OLD | NEW |