| 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/l10n_util.h" |
| 10 #include "app/l10n_util_win.h" |
| 9 #include "app/animation.h" | 11 #include "app/animation.h" |
| 10 #include "app/resource_bundle.h" | 12 #include "app/resource_bundle.h" |
| 11 #include "base/string_util.h" | 13 #include "base/string_util.h" |
| 12 #include "chrome/common/gfx/chrome_canvas.h" | 14 #include "chrome/common/gfx/chrome_canvas.h" |
| 13 #include "chrome/common/gfx/text_elider.h" | 15 #include "chrome/common/gfx/text_elider.h" |
| 14 #include "chrome/common/l10n_util.h" | |
| 15 #include "chrome/common/l10n_util_win.h" | |
| 16 #include "chrome/views/controls/label.h" | 16 #include "chrome/views/controls/label.h" |
| 17 #include "chrome/views/widget/root_view.h" | 17 #include "chrome/views/widget/root_view.h" |
| 18 #include "chrome/views/widget/widget_win.h" | 18 #include "chrome/views/widget/widget_win.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 "SkPaint.h" | 23 #include "SkPaint.h" |
| 24 #include "SkPath.h" | 24 #include "SkPath.h" |
| 25 #include "SkRect.h" | 25 #include "SkRect.h" |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 frame_->GetBounds(&frame_bounds, false); | 621 frame_->GetBounds(&frame_bounds, false); |
| 622 int mirrored_x = frame_bounds.width() - x - w; | 622 int mirrored_x = frame_bounds.width() - x - w; |
| 623 position_.SetPoint(mirrored_x, y); | 623 position_.SetPoint(mirrored_x, y); |
| 624 } else { | 624 } else { |
| 625 position_.SetPoint(x, y); | 625 position_.SetPoint(x, y); |
| 626 } | 626 } |
| 627 | 627 |
| 628 size_.SetSize(w, h); | 628 size_.SetSize(w, h); |
| 629 Reposition(); | 629 Reposition(); |
| 630 } | 630 } |
| OLD | NEW |