Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
|
tdanderson
2016/08/19 21:23:35
This is what vector_icons.cc would look like after
| |
| 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 // vector_icons.cc.template is used to generate vector_icons.cc. Edit the former | |
| 6 // rather than the latter. | |
| 7 | |
| 8 #include "ash/common/resources/vector_icons.h" | |
| 9 | |
| 10 #include "base/logging.h" | |
| 11 #include "ui/gfx/vector_icon_types.h" | |
| 12 | |
| 13 namespace ash { | |
| 14 | |
| 15 using namespace gfx; | |
| 16 | |
| 17 static gfx::PathElement SYSTEM_MENU_KEYBOARD_PATH[] = { | |
| 18 // Use of this source code is governed by a BSD-style license that can be | |
| 19 // found in the LICENSE file. | |
| 20 | |
| 5 CANVAS_DIMENSIONS, 40, | 21 CANVAS_DIMENSIONS, 40, |
| 6 MOVE_TO, 32.7f, 9, | 22 MOVE_TO, 32.7f, 9, |
| 7 H_LINE_TO, 6.3f, | 23 H_LINE_TO, 6.3f, |
| 8 R_ARC_TO, 3.29f, 3.29f, 0, 0, 0, -3.28f, 3.29f, | 24 R_ARC_TO, 3.29f, 3.29f, 0, 0, 0, -3.28f, 3.29f, |
| 9 LINE_TO, 3, 28.71f, | 25 LINE_TO, 3, 28.71f, |
| 10 CUBIC_TO, 3, 30.52f, 4.49f, 32, 6.3f, 32, | 26 CUBIC_TO, 3, 30.52f, 4.49f, 32, 6.3f, 32, |
| 11 R_H_LINE_TO, 26.4f, | 27 R_H_LINE_TO, 26.4f, |
| 12 R_CUBIC_TO, 1.82f, 0, 3.3f, -1.48f, 3.3f, -3.29f, | 28 R_CUBIC_TO, 1.82f, 0, 3.3f, -1.48f, 3.3f, -3.29f, |
| 13 V_LINE_TO, 12.29f, | 29 V_LINE_TO, 12.29f, |
| 14 CUBIC_TO, 36, 10.48f, 34.52f, 9, 32.7f, 9, | 30 CUBIC_TO, 36, 10.48f, 34.52f, 9, 32.7f, 9, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 R_H_LINE_TO, 3, | 89 R_H_LINE_TO, 3, |
| 74 R_V_LINE_TO, 3, | 90 R_V_LINE_TO, 3, |
| 75 CLOSE, | 91 CLOSE, |
| 76 R_MOVE_TO, 0, -5, | 92 R_MOVE_TO, 0, -5, |
| 77 R_H_LINE_TO, -3, | 93 R_H_LINE_TO, -3, |
| 78 R_V_LINE_TO, -3, | 94 R_V_LINE_TO, -3, |
| 79 R_H_LINE_TO, 3, | 95 R_H_LINE_TO, 3, |
| 80 R_V_LINE_TO, 3, | 96 R_V_LINE_TO, 3, |
| 81 CLOSE, | 97 CLOSE, |
| 82 END | 98 END |
| 99 }; | |
| 100 | |
| 101 static gfx::PathElement SYSTEM_MENU_KEYBOARD_PATH_1x[] = { | |
| 102 // Use of this source code is governed by a BSD-style license that can be | |
| 103 // found in the LICENSE file. | |
| 104 | |
| 105 CANVAS_DIMENSIONS, 24, | |
| 106 MOVE_TO, 12, 8.41f, | |
| 107 LINE_TO, 16.59f, 13, | |
| 108 LINE_TO, 18, 11.59f, | |
| 109 R_LINE_TO, -6, -6, | |
| 110 R_LINE_TO, -6, 6, | |
| 111 LINE_TO, 7.41f, 13, | |
| 112 LINE_TO, 12, 8.41f, | |
| 113 CLOSE, | |
| 114 MOVE_TO, 6, 18, | |
| 115 R_H_LINE_TO, 12, | |
| 116 R_V_LINE_TO, -2, | |
| 117 H_LINE_TO, 6, | |
| 118 R_V_LINE_TO, 2, | |
| 119 CLOSE, | |
| 120 END | |
| 121 }; | |
| 122 | |
| 123 const gfx::VectorIcon SYSTEM_MENU_KEYBOARD = { SYSTEM_MENU_KEYBOARD_PATH, SYSTEM _MENU_KEYBOARD_PATH_1x }; | |
| 124 | |
| 125 } // namespace ash | |
| OLD | NEW |