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

Unified Diff: ash/ash_layout_constants.h

Issue 1505223004: Do not use assets for Ash window control button backgrounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ash layout constants file added Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ash/ash_layout_constants.h
diff --git a/ash/ash_layout_constants.h b/ash/ash_layout_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2a17e171fb690a553c7364c2cc6259624459f4f
--- /dev/null
+++ b/ash/ash_layout_constants.h
@@ -0,0 +1,23 @@
+// Copyright 2015 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.
+
+#ifndef ASH_ASH_LAYOUT_CONSTANTS_H_
+#define ASH_ASH_LAYOUT_CONSTANTS_H_
+
+#include "ui/gfx/geometry/size.h"
+
+enum AshLayoutSize {
+ // Size of a header button in a maximized browser window.
Peter Kasting 2015/12/18 18:59:15 At least on Windows, these are called "caption but
tdanderson 2016/01/04 23:11:14 Done.
+ BROWSER_MAXIMIZED_HEADER_BUTTON,
+
+ // Size of a header button in a restored browser window.
+ BROWSER_RESTORED_HEADER_BUTTON,
+
+ // Size of a header button in a non-browser window.
+ DEFAULT_HEADER_BUTTON,
Peter Kasting 2015/12/18 18:59:15 Nit: I might name this "NON_BROWSER_" instead of "
tdanderson 2016/01/04 23:11:14 Done.
+};
+
+gfx::Size GetAshLayoutSize(AshLayoutSize size);
+
+#endif // ASH_ASH_LAYOUT_CONSTANTS_H_

Powered by Google App Engine
This is Rietveld 408576698