| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/bookmarks/bookmark_bubble_view.h" | 5 #include "chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/metrics/user_metrics.h" | 10 #include "base/metrics/user_metrics.h" |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 #if defined(OS_WIN) | 404 #if defined(OS_WIN) |
| 405 void BookmarkBubbleView::ShowIOSPromotion() { | 405 void BookmarkBubbleView::ShowIOSPromotion() { |
| 406 DCHECK(!is_showing_ios_promotion_); | 406 DCHECK(!is_showing_ios_promotion_); |
| 407 RemoveChildView(bookmark_details_view_.get()); | 407 RemoveChildView(bookmark_details_view_.get()); |
| 408 is_showing_ios_promotion_ = true; | 408 is_showing_ios_promotion_ = true; |
| 409 ios_promo_view_ = new DesktopIOSPromotionBubbleView( | 409 ios_promo_view_ = new DesktopIOSPromotionBubbleView( |
| 410 profile_, desktop_ios_promotion::PromotionEntryPoint::BOOKMARKS_BUBBLE); | 410 profile_, desktop_ios_promotion::PromotionEntryPoint::BOOKMARKS_BUBBLE); |
| 411 AddChildView(ios_promo_view_); | 411 AddChildView(ios_promo_view_); |
| 412 GetWidget()->UpdateWindowIcon(); | 412 GetWidget()->UpdateWindowIcon(); |
| 413 GetWidget()->UpdateWindowTitle(); | 413 GetWidget()->UpdateWindowTitle(); |
| 414 SizeToContents(); | 414 // Resize the bubble so it has the same width as the parent bubble. |
| 415 ios_promo_view_->UpdateBubbleHeight(); |
| 415 } | 416 } |
| 416 #endif | 417 #endif |
| OLD | NEW |