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

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

Issue 6204002: Carnitas: Remove chrome/browser/views, update references. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yay, more syncing Created 9 years, 11 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
OLDNEW
1 // Copyright (c) 2010 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.h" 5 #include "chrome/browser/chromeos/setting_level_bubble.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 8
9 #include "base/timer.h" 9 #include "base/timer.h"
10 #include "chrome/browser/browser_list.h" 10 #include "chrome/browser/browser_list.h"
11 #include "chrome/browser/browser_window.h" 11 #include "chrome/browser/browser_window.h"
12 #include "chrome/browser/chromeos/setting_level_bubble_view.h" 12 #include "chrome/browser/chromeos/setting_level_bubble_view.h"
13 #include "chrome/browser/profiles/profile_manager.h" 13 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/views/info_bubble.h" 15 #include "chrome/browser/ui/views/info_bubble.h"
16 #include "views/widget/root_view.h" 16 #include "views/widget/root_view.h"
17 17
18 namespace { 18 namespace {
19 19
20 const int kBubbleShowTimeoutSec = 2; 20 const int kBubbleShowTimeoutSec = 2;
21 const int kAnimationDurationMs = 200; 21 const int kAnimationDurationMs = 200;
22 22
23 // Horizontal relative position: 0 - leftmost, 0.5 - center, 1 - rightmost. 23 // Horizontal relative position: 0 - leftmost, 0.5 - center, 1 - rightmost.
24 const double kBubbleXRatio = 0.5; 24 const double kBubbleXRatio = 0.5;
25 25
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void SettingLevelBubble::AnimationProgressed(const ui::Animation* animation) { 143 void SettingLevelBubble::AnimationProgressed(const ui::Animation* animation) {
144 if (view_) { 144 if (view_) {
145 view_->Update( 145 view_->Update(
146 ui::Tween::ValueBetween(animation->GetCurrentValue(), 146 ui::Tween::ValueBetween(animation->GetCurrentValue(),
147 previous_percent_, 147 previous_percent_,
148 current_percent_)); 148 current_percent_));
149 } 149 }
150 } 150 }
151 151
152 } // namespace chromeos 152 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/setting_level_bubble.h ('k') | chrome/browser/chromeos/status/network_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698