| 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 #include "chrome/browser/views/status_bubble_views.h" | 5 #include "chrome/browser/views/status_bubble_views.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "app/animation.h" | 9 #include "app/animation.h" |
| 10 #include "app/gfx/canvas.h" | |
| 11 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 12 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 13 #include "app/text_elider.h" | 12 #include "app/text_elider.h" |
| 14 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
| 15 #include "base/message_loop.h" | 14 #include "base/message_loop.h" |
| 16 #include "base/string_util.h" | 15 #include "base/string_util.h" |
| 17 #include "chrome/browser/browser_theme_provider.h" | 16 #include "chrome/browser/browser_theme_provider.h" |
| 17 #include "gfx/canvas.h" |
| 18 #include "gfx/point.h" | 18 #include "gfx/point.h" |
| 19 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
| 22 #include "net/base/net_util.h" | 22 #include "net/base/net_util.h" |
| 23 #include "third_party/skia/include/core/SkPaint.h" | 23 #include "third_party/skia/include/core/SkPaint.h" |
| 24 #include "third_party/skia/include/core/SkPath.h" | 24 #include "third_party/skia/include/core/SkPath.h" |
| 25 #include "third_party/skia/include/core/SkRect.h" | 25 #include "third_party/skia/include/core/SkRect.h" |
| 26 #include "views/controls/label.h" | 26 #include "views/controls/label.h" |
| 27 #include "views/screen.h" | 27 #include "views/screen.h" |
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 | 681 |
| 682 bool StatusBubbleViews::IsFrameVisible() { | 682 bool StatusBubbleViews::IsFrameVisible() { |
| 683 if (!frame_->IsVisible()) | 683 if (!frame_->IsVisible()) |
| 684 return false; | 684 return false; |
| 685 | 685 |
| 686 views::Window* window = frame_->GetWindow(); | 686 views::Window* window = frame_->GetWindow(); |
| 687 return !window || !window->IsMinimized(); | 687 return !window || !window->IsMinimized(); |
| 688 } | 688 } |
| OLD | NEW |