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

Side by Side Diff: chrome/browser/infobars/infobar_container.cc

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 // TODO(pkasting): Port Mac to use this. 7 // TODO(pkasting): Port Mac to use this.
8 #if defined(TOOLKIT_VIEWS) || defined(TOOLKIT_GTK) 8 #if defined(TOOLKIT_VIEWS) || defined(TOOLKIT_GTK)
9 9
10 #include "chrome/browser/infobars/infobar_container.h" 10 #include "chrome/browser/infobars/infobar_container.h"
11 11
12 #include <algorithm> 12 #include <algorithm>
13 13
14 #include "base/logging.h"
14 #include "chrome/browser/infobars/infobar.h" 15 #include "chrome/browser/infobars/infobar.h"
15 #include "chrome/browser/infobars/infobar_delegate.h" 16 #include "chrome/browser/infobars/infobar_delegate.h"
16 #include "chrome/browser/infobars/infobar_tab_helper.h" 17 #include "chrome/browser/infobars/infobar_tab_helper.h"
17 #include "chrome/common/chrome_notification_types.h" 18 #include "chrome/common/chrome_notification_types.h"
18 #include "content/public/browser/notification_details.h" 19 #include "content/public/browser/notification_details.h"
19 #include "content/public/browser/notification_source.h" 20 #include "content/public/browser/notification_source.h"
20 #include "ui/base/animation/slide_animation.h" 21 #include "ui/base/animation/slide_animation.h"
21 22
22 InfoBarContainer::Delegate::~Delegate() { 23 InfoBarContainer::Delegate::~Delegate() {
23 } 24 }
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 return InfoBar::kDefaultArrowTargetHeight; 211 return InfoBar::kDefaultArrowTargetHeight;
211 // When the first infobar is animating closed, we animate the second infobar's 212 // When the first infobar is animating closed, we animate the second infobar's
212 // arrow target height from the default to the top target height. Note that 213 // arrow target height from the default to the top target height. Note that
213 // the animation values here are going from 1.0 -> 0.0 as the top bar closes. 214 // the animation values here are going from 1.0 -> 0.0 as the top bar closes.
214 return top_arrow_target_height_ + static_cast<int>( 215 return top_arrow_target_height_ + static_cast<int>(
215 (InfoBar::kDefaultArrowTargetHeight - top_arrow_target_height_) * 216 (InfoBar::kDefaultArrowTargetHeight - top_arrow_target_height_) *
216 first_infobar_animation.GetCurrentValue()); 217 first_infobar_animation.GetCurrentValue());
217 } 218 }
218 219
219 #endif // TOOLKIT_VIEWS || defined(TOOLKIT_GTK) 220 #endif // TOOLKIT_VIEWS || defined(TOOLKIT_GTK)
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/simple_web_view_dialog.cc ('k') | chrome/browser/nacl_host/nacl_broker_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698