Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: ash/wm/frame_painter.h

Issue 11363250: Allow Chrome apps to create Ash Panels (apps v2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback and add unit test for PanelLayoutManager minimize/restore Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 HeaderMode header_mode, 100 HeaderMode header_mode,
101 int theme_frame_id, 101 int theme_frame_id,
102 const gfx::ImageSkia* theme_frame_overlay); 102 const gfx::ImageSkia* theme_frame_overlay);
103 103
104 // Paints the header/content separator line. Exists as a separate function 104 // Paints the header/content separator line. Exists as a separate function
105 // because some windows with complex headers (e.g. browsers with tab strips) 105 // because some windows with complex headers (e.g. browsers with tab strips)
106 // need to draw their own line. 106 // need to draw their own line.
107 void PaintHeaderContentSeparator(views::NonClientFrameView* view, 107 void PaintHeaderContentSeparator(views::NonClientFrameView* view,
108 gfx::Canvas* canvas); 108 gfx::Canvas* canvas);
109 109
110 // Returns size of the header/content separator line in pixels. 110 // Returns the height of the header.
111 int HeaderContentSeparatorSize() const; 111 int HeaderHeight() const;
112 112
113 // Paint the title bar, primarily the title string. 113 // Paint the title bar, primarily the title string.
114 void PaintTitleBar(views::NonClientFrameView* view, 114 void PaintTitleBar(views::NonClientFrameView* view,
115 gfx::Canvas* canvas, 115 gfx::Canvas* canvas,
116 const gfx::Font& title_font); 116 const gfx::Font& title_font);
117 117
118 // Performs layout for the header based on whether we want the shorter 118 // Performs layout for the header based on whether we want the shorter
119 // appearance. |shorter_layout| is typically used for maximized windows, but 119 // appearance. |shorter_layout| is typically used for maximized windows, but
120 // not always. 120 // not always.
121 void LayoutHeader(views::NonClientFrameView* view, bool shorter_layout); 121 void LayoutHeader(views::NonClientFrameView* view, bool shorter_layout);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 scoped_ptr<ui::SlideAnimation> crossfade_animation_; 227 scoped_ptr<ui::SlideAnimation> crossfade_animation_;
228 228
229 SizeButtonBehavior size_button_behavior_; 229 SizeButtonBehavior size_button_behavior_;
230 230
231 DISALLOW_COPY_AND_ASSIGN(FramePainter); 231 DISALLOW_COPY_AND_ASSIGN(FramePainter);
232 }; 232 };
233 233
234 } // namespace ash 234 } // namespace ash
235 235
236 #endif // ASH_WM_FRAME_PAINTER_H_ 236 #endif // ASH_WM_FRAME_PAINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698