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 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" | 5 #include "chrome/browser/chromeos/frame/bubble_frame_view.h" |
6 | 6 |
7 #include "chrome/browser/chromeos/frame/bubble_window.h" | 7 #include "chrome/browser/chromeos/frame/bubble_window.h" |
8 #include "chrome/browser/chromeos/login/helper.h" | 8 #include "chrome/browser/chromeos/login/helper.h" |
9 #include "chrome/browser/ui/views/bubble/bubble_border.h" | 9 #include "chrome/browser/ui/views/bubble/bubble_border.h" |
10 #include "grit/theme_resources_standard.h" | 10 #include "grit/theme_resources_standard.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 SkScalar radius = SkIntToScalar(BubbleBorder::GetCornerRadius()); | 221 SkScalar radius = SkIntToScalar(BubbleBorder::GetCornerRadius()); |
222 path.addRoundRect(rect, radius, radius); | 222 path.addRoundRect(rect, radius, radius); |
223 canvas->AsCanvasSkia()->drawPath(path, paint); | 223 canvas->AsCanvasSkia()->drawPath(path, paint); |
224 | 224 |
225 OnPaintBorder(canvas); | 225 OnPaintBorder(canvas); |
226 } | 226 } |
227 | 227 |
228 void BubbleFrameView::ButtonPressed(views::Button* sender, | 228 void BubbleFrameView::ButtonPressed(views::Button* sender, |
229 const views::Event& event) { | 229 const views::Event& event) { |
230 if (close_button_ != NULL && sender == close_button_) | 230 if (close_button_ != NULL && sender == close_button_) |
231 frame_->CloseWindow(); | 231 frame_->Close(); |
232 } | 232 } |
233 | 233 |
234 } // namespace chromeos | 234 } // namespace chromeos |
OLD | NEW |