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/views/theme_install_bubble_view.h" | 5 #include "chrome/browser/ui/views/theme_install_bubble_view.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
11 #include "chrome/common/notification_service.h" | 11 #include "chrome/common/notification_service.h" |
12 #include "gfx/canvas_skia.h" | 12 #include "gfx/canvas_skia.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 #include "views/widget/widget.h" | 14 #include "views/widget/widget.h" |
15 | 15 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 const NotificationDetails& details) { | 161 const NotificationDetails& details) { |
162 Close(); | 162 Close(); |
163 } | 163 } |
164 | 164 |
165 // static | 165 // static |
166 void ThemeInstallBubbleView::Show(TabContents* tab_contents) { | 166 void ThemeInstallBubbleView::Show(TabContents* tab_contents) { |
167 ++num_loads_extant_; | 167 ++num_loads_extant_; |
168 if (num_loads_extant_ < 2) | 168 if (num_loads_extant_ < 2) |
169 new ThemeInstallBubbleView(tab_contents); | 169 new ThemeInstallBubbleView(tab_contents); |
170 } | 170 } |
OLD | NEW |