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

Side by Side Diff: ui/app_list/views/app_list_item_view.cc

Issue 29263007: linux and chromeos: Turn on -Wunused-const-variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 7 years, 2 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 | « chromeos/network/network_sms_handler.cc ('k') | ui/app_list/views/search_box_view.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 "ui/app_list/views/app_list_item_view.h" 5 #include "ui/app_list/views/app_list_item_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "ui/app_list/app_list_constants.h" 10 #include "ui/app_list/app_list_constants.h"
(...skipping 14 matching lines...) Expand all
25 #include "ui/views/controls/image_view.h" 25 #include "ui/views/controls/image_view.h"
26 #include "ui/views/controls/label.h" 26 #include "ui/views/controls/label.h"
27 #include "ui/views/controls/menu/menu_item_view.h" 27 #include "ui/views/controls/menu/menu_item_view.h"
28 #include "ui/views/controls/menu/menu_runner.h" 28 #include "ui/views/controls/menu/menu_runner.h"
29 #include "ui/views/drag_controller.h" 29 #include "ui/views/drag_controller.h"
30 30
31 namespace app_list { 31 namespace app_list {
32 32
33 namespace { 33 namespace {
34 34
35 const int kTopBottomPadding = 10;
36 const int kTopPadding = 20; 35 const int kTopPadding = 20;
37 const int kIconTitleSpacing = 7; 36 const int kIconTitleSpacing = 7;
38 const int kProgressBarHorizontalPadding = 12; 37 const int kProgressBarHorizontalPadding = 12;
39 const int kProgressBarVerticalPadding = 4;
40 const int kProgressBarHeight = 4;
41 38
42 const int kLeftRightPaddingChars = 1; 39 const int kLeftRightPaddingChars = 1;
43 40
44 // Scale to transform the icon when a drag starts. 41 // Scale to transform the icon when a drag starts.
45 const float kDraggingIconScale = 1.5f; 42 const float kDraggingIconScale = 1.5f;
46 43
47 // Delay in milliseconds of when the dragging UI should be shown for mouse drag. 44 // Delay in milliseconds of when the dragging UI should be shown for mouse drag.
48 const int kMouseDragUIDelayInMs = 100; 45 const int kMouseDragUIDelayInMs = 100;
49 46
50 } // namespace 47 } // namespace
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 SetTouchDragging(false); 398 SetTouchDragging(false);
402 break; 399 break;
403 default: 400 default:
404 break; 401 break;
405 } 402 }
406 if (!event->handled()) 403 if (!event->handled())
407 CustomButton::OnGestureEvent(event); 404 CustomButton::OnGestureEvent(event);
408 } 405 }
409 406
410 } // namespace app_list 407 } // namespace app_list
OLDNEW
« no previous file with comments | « chromeos/network/network_sms_handler.cc ('k') | ui/app_list/views/search_box_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698