| OLD | NEW |
| 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 #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 5 #ifndef UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
| 6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 6 #define UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "ui/views/background.h" | 10 #include "ui/views/background.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 virtual void GetInsetsForArrowLocation(gfx::Insets* insets, | 158 virtual void GetInsetsForArrowLocation(gfx::Insets* insets, |
| 159 ArrowLocation arrow_loc) const; | 159 ArrowLocation arrow_loc) const; |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 struct BorderImages; | 162 struct BorderImages; |
| 163 | 163 |
| 164 // Loads images if necessary. | 164 // Loads images if necessary. |
| 165 static BorderImages* GetBorderImages(Shadow shadow); | 165 static BorderImages* GetBorderImages(Shadow shadow); |
| 166 | 166 |
| 167 // Overridden from Border: | 167 // Overridden from Border: |
| 168 virtual void Paint(const View& view, | 168 virtual void Paint(const View& view, gfx::Canvas* canvas) const OVERRIDE; |
| 169 gfx::Canvas* canvas) const OVERRIDE; | |
| 170 | 169 |
| 171 void DrawEdgeWithArrow(gfx::Canvas* canvas, | 170 void DrawEdgeWithArrow(gfx::Canvas* canvas, |
| 172 bool is_horizontal, | 171 bool is_horizontal, |
| 173 const gfx::ImageSkia& edge, | 172 const gfx::ImageSkia& edge, |
| 174 const gfx::ImageSkia& arrow, | 173 const gfx::ImageSkia& arrow, |
| 175 int start_x, | 174 int start_x, |
| 176 int start_y, | 175 int start_y, |
| 177 int before_arrow, | 176 int before_arrow, |
| 178 int after_arrow, | 177 int after_arrow, |
| 179 int offset) const; | 178 int offset) const; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 213 |
| 215 private: | 214 private: |
| 216 BubbleBorder* border_; | 215 BubbleBorder* border_; |
| 217 | 216 |
| 218 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); | 217 DISALLOW_COPY_AND_ASSIGN(BubbleBackground); |
| 219 }; | 218 }; |
| 220 | 219 |
| 221 } // namespace views | 220 } // namespace views |
| 222 | 221 |
| 223 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ | 222 #endif // UI_VIEWS_BUBBLE_BUBBLE_BORDER_H_ |
| OLD | NEW |