| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int pushed_image_id); | 134 int pushed_image_id); |
| 135 | 135 |
| 136 // Returns the offset between window left edge and title string. | 136 // Returns the offset between window left edge and title string. |
| 137 int GetTitleOffsetX() const; | 137 int GetTitleOffsetX() const; |
| 138 | 138 |
| 139 // Returns the opacity value used to paint the header. | 139 // Returns the opacity value used to paint the header. |
| 140 int GetHeaderOpacity(HeaderMode header_mode, | 140 int GetHeaderOpacity(HeaderMode header_mode, |
| 141 int theme_frame_id, | 141 int theme_frame_id, |
| 142 const gfx::ImageSkia* theme_frame_overlay); | 142 const gfx::ImageSkia* theme_frame_overlay); |
| 143 | 143 |
| 144 // Adjust frame operations for left / right maximized modes. |
| 145 int AdjustFrameHitCodeForMaximizedModes(int hit_code); |
| 146 |
| 144 // Returns true if there is exactly one visible, normal-type window using | 147 // Returns true if there is exactly one visible, normal-type window using |
| 145 // a header painted by this class, in which case we should paint a transparent | 148 // a header painted by this class, in which case we should paint a transparent |
| 146 // window header. | 149 // window header. |
| 147 static bool UseSoloWindowHeader(); | 150 static bool UseSoloWindowHeader(); |
| 148 | 151 |
| 149 // Schedules a paint for the window header of the solo window. Invoke this | 152 // Schedules a paint for the window header of the solo window. Invoke this |
| 150 // when another window is hidden or destroyed to force the transparency of | 153 // when another window is hidden or destroyed to force the transparency of |
| 151 // the now-solo window to update. | 154 // the now-solo window to update. |
| 152 static void SchedulePaintForSoloWindow(); | 155 static void SchedulePaintForSoloWindow(); |
| 153 | 156 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 180 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 183 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
| 181 | 184 |
| 182 SizeButtonBehavior size_button_behavior_; | 185 SizeButtonBehavior size_button_behavior_; |
| 183 | 186 |
| 184 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 187 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
| 185 }; | 188 }; |
| 186 | 189 |
| 187 } // namespace ash | 190 } // namespace ash |
| 188 | 191 |
| 189 #endif // ASH_WM_FRAME_PAINTER_H_ | 192 #endif // ASH_WM_FRAME_PAINTER_H_ |
| OLD | NEW |