Chromium Code Reviews| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 FramePainter(); | 67 FramePainter(); |
| 68 virtual ~FramePainter(); | 68 virtual ~FramePainter(); |
| 69 | 69 |
| 70 // |frame| and buttons are used for layout and are not owned. | 70 // |frame| and buttons are used for layout and are not owned. |
| 71 void Init(views::Widget* frame, | 71 void Init(views::Widget* frame, |
| 72 views::View* window_icon, | 72 views::View* window_icon, |
| 73 FrameCaptionButtonContainerView* caption_button_container); | 73 FrameCaptionButtonContainerView* caption_button_container); |
| 74 | 74 |
| 75 // Enable/Disable the solo-wnidow transparent header appearance. | |
|
James Cook
2013/09/04 18:25:21
wnidow -> window
optional: Maybe "appearance feat
oshima
2013/09/04 18:30:56
done
| |
| 76 static void SetSoloWindowHeaderEnabled(bool enabled); | |
| 77 | |
| 75 // Updates the solo-window transparent header appearance for all windows | 78 // Updates the solo-window transparent header appearance for all windows |
| 76 // using frame painters in |root_window|. | 79 // using frame painters in |root_window|. |
| 77 static void UpdateSoloWindowHeader(aura::RootWindow* root_window); | 80 static void UpdateSoloWindowHeader(aura::RootWindow* root_window); |
| 78 | 81 |
| 79 // Helpers for views::NonClientFrameView implementations. | 82 // Helpers for views::NonClientFrameView implementations. |
| 80 gfx::Rect GetBoundsForClientView(int top_height, | 83 gfx::Rect GetBoundsForClientView(int top_height, |
| 81 const gfx::Rect& window_bounds) const; | 84 const gfx::Rect& window_bounds) const; |
| 82 gfx::Rect GetWindowBoundsForClientBounds( | 85 gfx::Rect GetWindowBoundsForClientBounds( |
| 83 int top_height, | 86 int top_height, |
| 84 const gfx::Rect& client_bounds) const; | 87 const gfx::Rect& client_bounds) const; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 230 | 233 |
| 231 gfx::Rect header_frame_bounds_; | 234 gfx::Rect header_frame_bounds_; |
| 232 scoped_ptr<ui::SlideAnimation> crossfade_animation_; | 235 scoped_ptr<ui::SlideAnimation> crossfade_animation_; |
| 233 | 236 |
| 234 DISALLOW_COPY_AND_ASSIGN(FramePainter); | 237 DISALLOW_COPY_AND_ASSIGN(FramePainter); |
| 235 }; | 238 }; |
| 236 | 239 |
| 237 } // namespace ash | 240 } // namespace ash |
| 238 | 241 |
| 239 #endif // ASH_WM_FRAME_PAINTER_H_ | 242 #endif // ASH_WM_FRAME_PAINTER_H_ |
| OLD | NEW |