| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 static const SkColor kBackgroundColor; | 133 static const SkColor kBackgroundColor; |
| 134 | 134 |
| 135 protected: | 135 protected: |
| 136 Bubble(); | 136 Bubble(); |
| 137 #if defined(OS_CHROMEOS) | 137 #if defined(OS_CHROMEOS) |
| 138 Bubble(views::WidgetGtk::Type type, bool show_while_screen_is_locked); | 138 explicit Bubble(bool show_while_screen_is_locked); |
| 139 #endif | 139 #endif |
| 140 virtual ~Bubble(); | 140 virtual ~Bubble(); |
| 141 | 141 |
| 142 // Creates the Bubble. | 142 // Creates the Bubble. |
| 143 virtual void InitBubble(views::Widget* parent, | 143 virtual void InitBubble(views::Widget* parent, |
| 144 const gfx::Rect& position_relative_to, | 144 const gfx::Rect& position_relative_to, |
| 145 BubbleBorder::ArrowLocation arrow_location, | 145 BubbleBorder::ArrowLocation arrow_location, |
| 146 views::View* contents, | 146 views::View* contents, |
| 147 BubbleDelegate* delegate); | 147 BubbleDelegate* delegate); |
| 148 | 148 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 gfx::Rect position_relative_to_; | 209 gfx::Rect position_relative_to_; |
| 210 BubbleBorder::ArrowLocation arrow_location_; | 210 BubbleBorder::ArrowLocation arrow_location_; |
| 211 | 211 |
| 212 views::View* contents_; | 212 views::View* contents_; |
| 213 | 213 |
| 214 DISALLOW_COPY_AND_ASSIGN(Bubble); | 214 DISALLOW_COPY_AND_ASSIGN(Bubble); |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ | 217 #endif // CHROME_BROWSER_UI_VIEWS_BUBBLE_BUBBLE_H_ |
| OLD | NEW |