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

Side by Side Diff: chrome/browser/chromeos/setting_level_bubble_view.cc

Issue 8687031: views: Move the remaining files to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/chromeos/setting_level_bubble_view.h" 5 #include "chrome/browser/chromeos/setting_level_bubble_view.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "third_party/skia/include/core/SkBitmap.h" 10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/gfx/canvas.h" 11 #include "ui/gfx/canvas.h"
12 #include "views/controls/progress_bar.h" 12 #include "ui/views/controls/progress_bar.h"
13 13
14 using views::Background; 14 using views::Background;
15 using views::View; 15 using views::View;
16 using views::Widget; 16 using views::Widget;
17 17
18 namespace { 18 namespace {
19 19
20 // Bubble metrics. 20 // Bubble metrics.
21 const int kWidth = 350, kHeight = 90; 21 const int kWidth = 350, kHeight = 90;
22 const int kPadding = 20; 22 const int kPadding = 20;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 progress_bar_->SetBounds(width() - kPadding - kProgressBarWidth, 67 progress_bar_->SetBounds(width() - kPadding - kProgressBarWidth,
68 (height() - kProgressBarHeight) / 2, 68 (height() - kProgressBarHeight) / 2,
69 kProgressBarWidth, kProgressBarHeight); 69 kProgressBarWidth, kProgressBarHeight);
70 } 70 }
71 71
72 gfx::Size SettingLevelBubbleView::GetPreferredSize() { 72 gfx::Size SettingLevelBubbleView::GetPreferredSize() {
73 return gfx::Size(kWidth, kHeight); 73 return gfx::Size(kWidth, kHeight);
74 } 74 }
75 75
76 } // namespace chromeos 76 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698