| OLD | NEW |
| 1 // Copyright (c) 2010 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 "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "gfx/canvas_skia.h" | 8 #include "gfx/canvas_skia.h" |
| 9 #include "gfx/font.h" | 9 #include "gfx/font.h" |
| 10 #include "gfx/insets.h" | 10 #include "gfx/insets.h" |
| 11 #include "gfx/path.h" | 11 #include "gfx/path.h" |
| 12 #include "gfx/rect.h" | 12 #include "gfx/rect.h" |
| 13 #include "chrome/browser/chromeos/frame/bubble_window.h" | 13 #include "chrome/browser/chromeos/frame/bubble_window.h" |
| 14 #include "chrome/browser/chromeos/login/helper.h" | 14 #include "chrome/browser/chromeos/login/helper.h" |
| 15 #include "chrome/browser/views/bubble_border.h" | 15 #include "chrome/browser/ui/views/bubble_border.h" |
| 16 #include "grit/theme_resources.h" | 16 #include "grit/theme_resources.h" |
| 17 #include "views/controls/button/image_button.h" | 17 #include "views/controls/button/image_button.h" |
| 18 #include "views/controls/label.h" | 18 #include "views/controls/label.h" |
| 19 #include "views/controls/throbber.h" | 19 #include "views/controls/throbber.h" |
| 20 #include "views/window/hit_test.h" | 20 #include "views/window/hit_test.h" |
| 21 #include "views/window/window.h" | 21 #include "views/window/window.h" |
| 22 #include "views/window/window_delegate.h" | 22 #include "views/window/window_delegate.h" |
| 23 #include "third_party/skia/include/core/SkPaint.h" | 23 #include "third_party/skia/include/core/SkPaint.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 PaintBorder(canvas); | 221 PaintBorder(canvas); |
| 222 } | 222 } |
| 223 | 223 |
| 224 void BubbleFrameView::ButtonPressed(views::Button* sender, | 224 void BubbleFrameView::ButtonPressed(views::Button* sender, |
| 225 const views::Event& event) { | 225 const views::Event& event) { |
| 226 if (close_button_ != NULL && sender == close_button_) | 226 if (close_button_ != NULL && sender == close_button_) |
| 227 frame_->Close(); | 227 frame_->Close(); |
| 228 } | 228 } |
| 229 | 229 |
| 230 } // namespace chromeos | 230 } // namespace chromeos |
| OLD | NEW |