| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "views/view.h" | 9 #include "views/view.h" |
| 10 #include "views/widget/widget_win.h" | 10 #include "views/widget/widget_win.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // the content and the border/arrow. | 114 // the content and the border/arrow. |
| 115 virtual gfx::Size GetPreferredSize(); | 115 virtual gfx::Size GetPreferredSize(); |
| 116 | 116 |
| 117 // Positions the content relative to the border. | 117 // Positions the content relative to the border. |
| 118 virtual void Layout(); | 118 virtual void Layout(); |
| 119 | 119 |
| 120 // Return the mask for the content view. | 120 // Return the mask for the content view. |
| 121 HRGN GetMask(const CSize& size); | 121 HRGN GetMask(const CSize& size); |
| 122 | 122 |
| 123 // Paints the background and arrow appropriately. | 123 // Paints the background and arrow appropriately. |
| 124 virtual void Paint(ChromeCanvas* canvas); | 124 virtual void Paint(gfx::Canvas* canvas); |
| 125 | 125 |
| 126 // Returns true if the arrow is positioned along the top edge of the | 126 // Returns true if the arrow is positioned along the top edge of the |
| 127 // view. If this returns false the arrow is positioned along the bottom | 127 // view. If this returns false the arrow is positioned along the bottom |
| 128 // edge. | 128 // edge. |
| 129 bool IsTop() { return (arrow_edge_ & 2) == 0; } | 129 bool IsTop() { return (arrow_edge_ & 2) == 0; } |
| 130 | 130 |
| 131 // Returns true if the arrow is positioned along the left edge of the | 131 // Returns true if the arrow is positioned along the left edge of the |
| 132 // view. If this returns false the arrow is positioned along the right edge. | 132 // view. If this returns false the arrow is positioned along the right edge. |
| 133 bool IsLeft() { return (arrow_edge_ & 1) == 0; } | 133 bool IsLeft() { return (arrow_edge_ & 1) == 0; } |
| 134 | 134 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // The fade-in animation. | 167 // The fade-in animation. |
| 168 scoped_ptr<SlideAnimation> fade_animation_; | 168 scoped_ptr<SlideAnimation> fade_animation_; |
| 169 | 169 |
| 170 // Have we been closed? | 170 // Have we been closed? |
| 171 bool closed_; | 171 bool closed_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(InfoBubble); | 173 DISALLOW_COPY_AND_ASSIGN(InfoBubble); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 #endif // CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ | 176 #endif // CHROME_BROWSER_VIEWS_INFO_BUBBLE_H_ |
| OLD | NEW |