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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 int GetTitleOffsetX() const; | 163 int GetTitleOffsetX() const; |
164 | 164 |
165 // Returns the opacity value used to paint the header. | 165 // Returns the opacity value used to paint the header. |
166 int GetHeaderOpacity(HeaderMode header_mode, | 166 int GetHeaderOpacity(HeaderMode header_mode, |
167 int theme_frame_id, | 167 int theme_frame_id, |
168 const gfx::ImageSkia* theme_frame_overlay); | 168 const gfx::ImageSkia* theme_frame_overlay); |
169 | 169 |
170 // Adjust frame operations for left / right maximized modes. | 170 // Adjust frame operations for left / right maximized modes. |
171 int AdjustFrameHitCodeForMaximizedModes(int hit_code); | 171 int AdjustFrameHitCodeForMaximizedModes(int hit_code); |
172 | 172 |
| 173 // Returns true if the user is cycling through workspaces. |
| 174 bool IsCyclingThroughWorkspaces() const; |
| 175 |
173 // Returns true if |window_| is exactly one visible, normal-type window in | 176 // Returns true if |window_| is exactly one visible, normal-type window in |
174 // |window_->GetRootWindow()|, in which case we should paint a transparent | 177 // |window_->GetRootWindow()|, in which case we should paint a transparent |
175 // window header. | 178 // window header. |
176 bool UseSoloWindowHeader(); | 179 bool UseSoloWindowHeader(); |
177 | 180 |
178 // Returns the frame painter for the solo window in |root_window|. Returns | 181 // Returns the frame painter for the solo window in |root_window|. Returns |
179 // NULL in case there is no such window, for example more than two windows or | 182 // NULL in case there is no such window, for example more than two windows or |
180 // there's a fullscreen window. It ignores |ignorable_window| to check the | 183 // there's a fullscreen window. It ignores |ignorable_window| to check the |
181 // solo-ness of the window. Pass NULL for |ignorable_window| to consider | 184 // solo-ness of the window. Pass NULL for |ignorable_window| to consider |
182 // all windows. | 185 // all windows. |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 234 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
232 | 235 |
233 SizeButtonBehavior size_button_behavior_; | 236 SizeButtonBehavior size_button_behavior_; |
234 | 237 |
235 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 238 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
236 }; | 239 }; |
237 | 240 |
238 } // namespace ash | 241 } // namespace ash |
239 | 242 |
240 #endif // ASH_WM_FRAME_PAINTER_H_ | 243 #endif // ASH_WM_FRAME_PAINTER_H_ |
OLD | NEW |