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

Unified Diff: ui/views/window/window_shape.cc

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/window/window_shape.h ('k') | ui/wm/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/window/window_shape.cc
diff --git a/ui/views/window/window_shape.cc b/ui/views/window/window_shape.cc
deleted file mode 100644
index 1f6bc13c24c56d6ec3a91b5b3f06fc611ec388c7..0000000000000000000000000000000000000000
--- a/ui/views/window/window_shape.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/views/window/window_shape.h"
-
-#include "ui/gfx/path.h"
-#include "ui/gfx/size.h"
-
-namespace views {
-
-void GetDefaultWindowMask(const gfx::Size &size, gfx::Path *window_mask) {
- // Redefine the window visible region for the new size.
- window_mask->moveTo(0, 3);
- window_mask->lineTo(1, 2);
- window_mask->lineTo(1, 1);
- window_mask->lineTo(2, 1);
- window_mask->lineTo(3, 0);
-
- window_mask->lineTo(SkIntToScalar(size.width() - 3), 0);
- window_mask->lineTo(SkIntToScalar(size.width() - 2), 1);
- window_mask->lineTo(SkIntToScalar(size.width() - 1), 1);
- window_mask->lineTo(SkIntToScalar(size.width() - 1), 2);
- window_mask->lineTo(SkIntToScalar(size.width()), 3);
-
- window_mask->lineTo(SkIntToScalar(size.width()),
- SkIntToScalar(size.height() - 3));
- window_mask->lineTo(SkIntToScalar(size.width() - 1),
- SkIntToScalar(size.height() - 3));
- window_mask->lineTo(SkIntToScalar(size.width() - 1),
- SkIntToScalar(size.height() - 1));
- window_mask->lineTo(SkIntToScalar(size.width() - 3),
- SkIntToScalar(size.height() - 2));
- window_mask->lineTo(SkIntToScalar(size.width() - 3),
- SkIntToScalar(size.height()));
-
- window_mask->lineTo(3, SkIntToScalar(size.height()));
- window_mask->lineTo(2, SkIntToScalar(size.height() - 2));
- window_mask->lineTo(1, SkIntToScalar(size.height() - 1));
- window_mask->lineTo(1, SkIntToScalar(size.height() - 3));
- window_mask->lineTo(0, SkIntToScalar(size.height() - 3));
-
- window_mask->close();
-}
-
-} // namespace views
« no previous file with comments | « ui/views/window/window_shape.h ('k') | ui/wm/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698