| OLD | NEW |
| 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 #ifndef CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/views/bubble/bubble_border.h" | 9 #include "chrome/browser/ui/views/bubble/bubble_border.h" |
| 10 #include "ui/base/animation/animation_delegate.h" | 10 #include "ui/base/animation/animation_delegate.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 fade_away_on_close_ = fade_away_on_close; | 123 fade_away_on_close_ = fade_away_on_close; |
| 124 } | 124 } |
| 125 | 125 |
| 126 // Overridden from NativeWidgetWin: | 126 // Overridden from NativeWidgetWin: |
| 127 virtual void Close(); | 127 virtual void Close(); |
| 128 | 128 |
| 129 // Overridden from ui::AnimationDelegate: | 129 // Overridden from ui::AnimationDelegate: |
| 130 virtual void AnimationEnded(const ui::Animation* animation); | 130 virtual void AnimationEnded(const ui::Animation* animation); |
| 131 virtual void AnimationProgressed(const ui::Animation* animation); | 131 virtual void AnimationProgressed(const ui::Animation* animation); |
| 132 | 132 |
| 133 #ifdef UNIT_TEST |
| 134 views::View* contents() const { return contents_; } |
| 135 #endif |
| 136 |
| 133 static const SkColor kBackgroundColor; | 137 static const SkColor kBackgroundColor; |
| 134 | 138 |
| 135 protected: | 139 protected: |
| 136 Bubble(); | 140 Bubble(); |
| 137 #if defined(OS_CHROMEOS) | 141 #if defined(OS_CHROMEOS) |
| 138 Bubble(views::Widget::InitParams::Type type, | 142 Bubble(views::Widget::InitParams::Type type, |
| 139 bool show_while_screen_is_locked); | 143 bool show_while_screen_is_locked); |
| 140 #endif | 144 #endif |
| 141 virtual ~Bubble(); | 145 virtual ~Bubble(); |
| 142 | 146 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 | 217 |
| 214 gfx::Rect position_relative_to_; | 218 gfx::Rect position_relative_to_; |
| 215 BubbleBorder::ArrowLocation arrow_location_; | 219 BubbleBorder::ArrowLocation arrow_location_; |
| 216 | 220 |
| 217 views::View* contents_; | 221 views::View* contents_; |
| 218 | 222 |
| 219 DISALLOW_COPY_AND_ASSIGN(Bubble); | 223 DISALLOW_COPY_AND_ASSIGN(Bubble); |
| 220 }; | 224 }; |
| 221 | 225 |
| 222 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ | 226 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| OLD | NEW |