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

Side by Side Diff: ui/views/window/window_shape.cc

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 months 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "ui/views/window/window_shape.h" 5 #include "ui/views/window/window_shape.h"
6 6
7 #include "ui/gfx/geometry/size.h"
7 #include "ui/gfx/path.h" 8 #include "ui/gfx/path.h"
8 #include "ui/gfx/size.h"
9 9
10 namespace views { 10 namespace views {
11 11
12 void GetDefaultWindowMask(const gfx::Size &size, gfx::Path *window_mask) { 12 void GetDefaultWindowMask(const gfx::Size &size, gfx::Path *window_mask) {
13 // Redefine the window visible region for the new size. 13 // Redefine the window visible region for the new size.
14 window_mask->moveTo(0, 3); 14 window_mask->moveTo(0, 3);
15 window_mask->lineTo(1, 2); 15 window_mask->lineTo(1, 2);
16 window_mask->lineTo(1, 1); 16 window_mask->lineTo(1, 1);
17 window_mask->lineTo(2, 1); 17 window_mask->lineTo(2, 1);
18 window_mask->lineTo(3, 0); 18 window_mask->lineTo(3, 0);
(...skipping 18 matching lines...) Expand all
37 window_mask->lineTo(3, SkIntToScalar(size.height())); 37 window_mask->lineTo(3, SkIntToScalar(size.height()));
38 window_mask->lineTo(2, SkIntToScalar(size.height() - 2)); 38 window_mask->lineTo(2, SkIntToScalar(size.height() - 2));
39 window_mask->lineTo(1, SkIntToScalar(size.height() - 1)); 39 window_mask->lineTo(1, SkIntToScalar(size.height() - 1));
40 window_mask->lineTo(1, SkIntToScalar(size.height() - 3)); 40 window_mask->lineTo(1, SkIntToScalar(size.height() - 3));
41 window_mask->lineTo(0, SkIntToScalar(size.height() - 3)); 41 window_mask->lineTo(0, SkIntToScalar(size.height() - 3));
42 42
43 window_mask->close(); 43 window_mask->close();
44 } 44 }
45 45
46 } // namespace views 46 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ('k') | ui/web_dialogs/test/test_web_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698