| 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/ui/views/extensions/extension_installed_bubble.h" | 5 #include "chrome/browser/ui/views/extensions/extension_installed_bubble.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "chrome/browser/ui/views/toolbar_view.h" | 22 #include "chrome/browser/ui/views/toolbar_view.h" |
| 23 #include "chrome/common/chrome_notification_types.h" | 23 #include "chrome/common/chrome_notification_types.h" |
| 24 #include "chrome/common/extensions/extension.h" | 24 #include "chrome/common/extensions/extension.h" |
| 25 #include "chrome/common/extensions/extension_action.h" | 25 #include "chrome/common/extensions/extension_action.h" |
| 26 #include "content/public/browser/notification_details.h" | 26 #include "content/public/browser/notification_details.h" |
| 27 #include "content/public/browser/notification_source.h" | 27 #include "content/public/browser/notification_source.h" |
| 28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 29 #include "grit/theme_resources_standard.h" | 29 #include "grit/theme_resources_standard.h" |
| 30 #include "ui/base/l10n/l10n_util.h" | 30 #include "ui/base/l10n/l10n_util.h" |
| 31 #include "ui/base/resource/resource_bundle.h" | 31 #include "ui/base/resource/resource_bundle.h" |
| 32 #include "ui/views/layout/layout_constants.h" |
| 32 #include "views/controls/button/image_button.h" | 33 #include "views/controls/button/image_button.h" |
| 33 #include "views/controls/image_view.h" | 34 #include "views/controls/image_view.h" |
| 34 #include "views/controls/label.h" | 35 #include "views/controls/label.h" |
| 35 #include "views/controls/link.h" | 36 #include "views/controls/link.h" |
| 36 #include "views/controls/link_listener.h" | 37 #include "views/controls/link_listener.h" |
| 37 #include "views/layout/layout_constants.h" | |
| 38 #include "views/view.h" | 38 #include "views/view.h" |
| 39 | 39 |
| 40 namespace { | 40 namespace { |
| 41 | 41 |
| 42 const int kIconSize = 43; | 42 const int kIconSize = 43; |
| 43 | 43 |
| 44 const int kRightColumnWidth = 285; | 44 const int kRightColumnWidth = 285; |
| 45 | 45 |
| 46 // The Bubble uses a BubbleBorder which adds about 6 pixels of whitespace | 46 // The Bubble uses a BubbleBorder which adds about 6 pixels of whitespace |
| 47 // around the content view. We compensate by reducing our outer borders by this | 47 // around the content view. We compensate by reducing our outer borders by this |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 Release(); // Balanced in ctor. | 429 Release(); // Balanced in ctor. |
| 430 } | 430 } |
| 431 | 431 |
| 432 bool ExtensionInstalledBubble::CloseOnEscape() { | 432 bool ExtensionInstalledBubble::CloseOnEscape() { |
| 433 return true; | 433 return true; |
| 434 } | 434 } |
| 435 | 435 |
| 436 bool ExtensionInstalledBubble::FadeInOnShow() { | 436 bool ExtensionInstalledBubble::FadeInOnShow() { |
| 437 return true; | 437 return true; |
| 438 } | 438 } |
| OLD | NEW |