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

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

Issue 11366215: Prevents windows in chromeos from resizing bigger than their maximum size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DesktopNativeWidgetAura Created 8 years 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
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(views::NonClientFrameView* view,
89 const gfx::Point& point); 89 const gfx::Point& point);
90 gfx::Size GetMinimumSize(views::NonClientFrameView* view); 90 gfx::Size GetMinimumSize(views::NonClientFrameView* view);
91 gfx::Size GetMaximumSize(views::NonClientFrameView* view);
91 92
92 // Returns the inset from the right edge. 93 // Returns the inset from the right edge.
93 int GetRightInset() const; 94 int GetRightInset() const;
94 95
95 // Returns the amount that the theme background should be inset. 96 // Returns the amount that the theme background should be inset.
96 int GetThemeBackgroundXInset() const; 97 int GetThemeBackgroundXInset() const;
97 98
98 // Paints the frame header. 99 // Paints the frame header.
99 void PaintHeader(views::NonClientFrameView* view, 100 void PaintHeader(views::NonClientFrameView* view,
100 gfx::Canvas* canvas, 101 gfx::Canvas* canvas,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 scoped_ptr<ui::SlideAnimation> crossfade_animation_; 236 scoped_ptr<ui::SlideAnimation> crossfade_animation_;
236 237
237 SizeButtonBehavior size_button_behavior_; 238 SizeButtonBehavior size_button_behavior_;
238 239
239 DISALLOW_COPY_AND_ASSIGN(FramePainter); 240 DISALLOW_COPY_AND_ASSIGN(FramePainter);
240 }; 241 };
241 242
242 } // namespace ash 243 } // namespace ash
243 244
244 #endif // ASH_WM_FRAME_PAINTER_H_ 245 #endif // ASH_WM_FRAME_PAINTER_H_
OLDNEW
« no previous file with comments | « ash/wm/custom_frame_view_ash.cc ('k') | ash/wm/frame_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698