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

Side by Side Diff: ash/common/wm/panels/panel_layout_manager.cc

Issue 2679423002: ash: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « ash/common/wm/overview/window_selector_item.cc ('k') | ash/common/wm/window_cycle_list.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 #include "ash/common/wm/panels/panel_layout_manager.h" 5 #include "ash/common/wm/panels/panel_layout_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 path.lineTo(SkIntToScalar(kArrowHeight), SkIntToScalar(0)); 70 path.lineTo(SkIntToScalar(kArrowHeight), SkIntToScalar(0));
71 break; 71 break;
72 case SHELF_ALIGNMENT_RIGHT: 72 case SHELF_ALIGNMENT_RIGHT:
73 path.moveTo(SkIntToScalar(0), SkIntToScalar(0)); 73 path.moveTo(SkIntToScalar(0), SkIntToScalar(0));
74 path.lineTo(SkIntToScalar(kArrowHeight), 74 path.lineTo(SkIntToScalar(kArrowHeight),
75 SkIntToScalar(kArrowWidth / 2)); 75 SkIntToScalar(kArrowWidth / 2));
76 path.lineTo(SkIntToScalar(0), SkIntToScalar(kArrowWidth)); 76 path.lineTo(SkIntToScalar(0), SkIntToScalar(kArrowWidth));
77 break; 77 break;
78 } 78 }
79 // Hard code the arrow color for now. 79 // Hard code the arrow color for now.
80 cc::PaintFlags paint; 80 cc::PaintFlags flags;
81 paint.setStyle(cc::PaintFlags::kFill_Style); 81 flags.setStyle(cc::PaintFlags::kFill_Style);
82 paint.setColor(SkColorSetARGB(0xff, 0xe5, 0xe5, 0xe5)); 82 flags.setColor(SkColorSetARGB(0xff, 0xe5, 0xe5, 0xe5));
83 canvas->DrawPath(path, paint); 83 canvas->DrawPath(path, flags);
84 } 84 }
85 85
86 ShelfAlignment alignment() { return alignment_; } 86 ShelfAlignment alignment() { return alignment_; }
87 87
88 void set_alignment(ShelfAlignment alignment) { alignment_ = alignment; } 88 void set_alignment(ShelfAlignment alignment) { alignment_ = alignment; }
89 89
90 private: 90 private:
91 ShelfAlignment alignment_; 91 ShelfAlignment alignment_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(CalloutWidgetBackground); 93 DISALLOW_COPY_AND_ASSIGN(CalloutWidgetBackground);
(...skipping 822 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 } 916 }
917 } 917 }
918 // This bounds change will have caused a change to the Shelf which does not 918 // This bounds change will have caused a change to the Shelf which does not
919 // propogate automatically to this class, so manually recalculate bounds. 919 // propogate automatically to this class, so manually recalculate bounds.
920 OnWindowResized(); 920 OnWindowResized();
921 } 921 }
922 922
923 void PanelLayoutManager::OnKeyboardClosed() {} 923 void PanelLayoutManager::OnKeyboardClosed() {}
924 924
925 } // namespace ash 925 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm/overview/window_selector_item.cc ('k') | ash/common/wm/window_cycle_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698