OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_INFO_BUBBLE_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ |
6 #define CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ | 6 #define CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ |
7 | 7 |
8 #include "app/slide_animation.h" | 8 #include "app/slide_animation.h" |
9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
10 #include "views/accelerator.h" | 10 #include "views/accelerator.h" |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 virtual void Close(); | 209 virtual void Close(); |
210 | 210 |
211 // Overridden from AnimationDelegate: | 211 // Overridden from AnimationDelegate: |
212 virtual void AnimationEnded(const Animation* animation); | 212 virtual void AnimationEnded(const Animation* animation); |
213 virtual void AnimationProgressed(const Animation* animation); | 213 virtual void AnimationProgressed(const Animation* animation); |
214 | 214 |
215 static const SkColor kBackgroundColor; | 215 static const SkColor kBackgroundColor; |
216 | 216 |
217 protected: | 217 protected: |
218 InfoBubble(); | 218 InfoBubble(); |
| 219 #if defined(OS_CHROMEOS) |
| 220 explicit InfoBubble(views::WidgetGtk::Type type); |
| 221 #endif |
219 virtual ~InfoBubble() {} | 222 virtual ~InfoBubble() {} |
220 | 223 |
221 // Creates the InfoBubble. | 224 // Creates the InfoBubble. |
222 virtual void Init(views::Widget* parent, | 225 virtual void Init(views::Widget* parent, |
223 const gfx::Rect& position_relative_to, | 226 const gfx::Rect& position_relative_to, |
224 BubbleBorder::ArrowLocation arrow_location, | 227 BubbleBorder::ArrowLocation arrow_location, |
225 views::View* contents, | 228 views::View* contents, |
226 InfoBubbleDelegate* delegate); | 229 InfoBubbleDelegate* delegate); |
227 | 230 |
228 // Instantiates and returns the BorderContents this InfoBubble should use. | 231 // Instantiates and returns the BorderContents this InfoBubble should use. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 | 278 |
276 gfx::Rect position_relative_to_; | 279 gfx::Rect position_relative_to_; |
277 BubbleBorder::ArrowLocation arrow_location_; | 280 BubbleBorder::ArrowLocation arrow_location_; |
278 | 281 |
279 views::View* contents_; | 282 views::View* contents_; |
280 | 283 |
281 DISALLOW_COPY_AND_ASSIGN(InfoBubble); | 284 DISALLOW_COPY_AND_ASSIGN(InfoBubble); |
282 }; | 285 }; |
283 | 286 |
284 #endif // CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ | 287 #endif // CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ |
OLD | NEW |