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

Side by Side Diff: ui/app_list/app_list_bubble_border.cc

Issue 10388032: Move app list from ash to ui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: fix win_aura bot and comments in #5 Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/app_list/app_list_bubble_border.h ('k') | ui/app_list/app_list_export.h » ('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/app_list/app_list_bubble_border.h" 5 #include "ui/app_list/app_list_bubble_border.h"
6 6
7 #include "third_party/skia/include/core/SkPath.h" 7 #include "third_party/skia/include/core/SkPath.h"
8 #include "third_party/skia/include/core/SkPaint.h" 8 #include "third_party/skia/include/core/SkPaint.h"
9 #include "third_party/skia/include/effects/SkBlurDrawLooper.h" 9 #include "third_party/skia/include/effects/SkBlurDrawLooper.h"
10 #include "third_party/skia/include/effects/SkGradientShader.h" 10 #include "third_party/skia/include/effects/SkGradientShader.h"
11 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
12 12
13 namespace { 13 namespace {
14 14
15 const int kCornerRadius = 3; 15 const int kCornerRadius = 3;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 path->lineTo(center_x + arrow_offset - half_array_width, bottom); 78 path->lineTo(center_x + arrow_offset - half_array_width, bottom);
79 path->lineTo(center_x + arrow_offset, bottom + arrow_height); 79 path->lineTo(center_x + arrow_offset, bottom + arrow_height);
80 path->lineTo(center_x + arrow_offset + half_array_width, bottom); 80 path->lineTo(center_x + arrow_offset + half_array_width, bottom);
81 path->arcTo(right, bottom, right, center_y, SkIntToScalar(kCornerRadius)); 81 path->arcTo(right, bottom, right, center_y, SkIntToScalar(kCornerRadius));
82 path->arcTo(right, top, center_x, top, SkIntToScalar(kCornerRadius)); 82 path->arcTo(right, top, center_x, top, SkIntToScalar(kCornerRadius));
83 path->close(); 83 path->close();
84 } 84 }
85 85
86 } // namespace 86 } // namespace
87 87
88 namespace ash { 88 namespace app_list {
89 89
90 AppListBubbleBorder::AppListBubbleBorder(views::View* app_list_view) 90 AppListBubbleBorder::AppListBubbleBorder(views::View* app_list_view)
91 : views::BubbleBorder(views::BubbleBorder::BOTTOM_RIGHT, 91 : views::BubbleBorder(views::BubbleBorder::BOTTOM_RIGHT,
92 views::BubbleBorder::NO_SHADOW), 92 views::BubbleBorder::NO_SHADOW),
93 app_list_view_(app_list_view), 93 app_list_view_(app_list_view),
94 arrow_offset_(0) { 94 arrow_offset_(0) {
95 } 95 }
96 96
97 AppListBubbleBorder::~AppListBubbleBorder() { 97 AppListBubbleBorder::~AppListBubbleBorder() {
98 } 98 }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 &path); 203 &path);
204 canvas->Save(); 204 canvas->Save();
205 canvas->ClipPath(path); 205 canvas->ClipPath(path);
206 206
207 PaintModelViewBackground(canvas, bounds); 207 PaintModelViewBackground(canvas, bounds);
208 PaintPageSwitcherBackground(canvas, bounds); 208 PaintPageSwitcherBackground(canvas, bounds);
209 209
210 canvas->Restore(); 210 canvas->Restore();
211 } 211 }
212 212
213 } // namespace ash 213 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/app_list_bubble_border.h ('k') | ui/app_list/app_list_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698