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/frame/browser_view.h" | 5 #include "chrome/browser/ui/views/frame/browser_view.h" |
6 | 6 |
7 #if defined(TOOLKIT_USES_GTK) | 7 #if defined(TOOLKIT_USES_GTK) |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1119 } else { | 1119 } else { |
1120 browser::ShowBackgroundPages(); | 1120 browser::ShowBackgroundPages(); |
1121 } | 1121 } |
1122 #endif // defined(WEBUI_TASK_MANAGER) | 1122 #endif // defined(WEBUI_TASK_MANAGER) |
1123 } | 1123 } |
1124 | 1124 |
1125 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { | 1125 void BrowserView::ShowBookmarkBubble(const GURL& url, bool already_bookmarked) { |
1126 GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); | 1126 GetLocationBarView()->ShowStarBubble(url, !already_bookmarked); |
1127 } | 1127 } |
1128 | 1128 |
| 1129 void BrowserView::ShowChromeToMobileBubble() { |
| 1130 GetLocationBarView()->ShowChromeToMobileBubble(); |
| 1131 } |
| 1132 |
1129 void BrowserView::SetDownloadShelfVisible(bool visible) { | 1133 void BrowserView::SetDownloadShelfVisible(bool visible) { |
1130 // This can be called from the superclass destructor, when it destroys our | 1134 // This can be called from the superclass destructor, when it destroys our |
1131 // child views. At that point, browser_ is already gone. | 1135 // child views. At that point, browser_ is already gone. |
1132 if (browser_ == NULL) | 1136 if (browser_ == NULL) |
1133 return; | 1137 return; |
1134 | 1138 |
1135 if (visible && IsDownloadShelfVisible() != visible) { | 1139 if (visible && IsDownloadShelfVisible() != visible) { |
1136 // Invoke GetDownloadShelf to force the shelf to be created. | 1140 // Invoke GetDownloadShelf to force the shelf to be created. |
1137 GetDownloadShelf(); | 1141 GetDownloadShelf(); |
1138 } | 1142 } |
(...skipping 1429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2568 browser::CreateViewsBubble(bubble); | 2572 browser::CreateViewsBubble(bubble); |
2569 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); | 2573 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); |
2570 bubble->Show(); | 2574 bubble->Show(); |
2571 } | 2575 } |
2572 | 2576 |
2573 void BrowserView::ShowAvatarBubbleFromAvatarButton() { | 2577 void BrowserView::ShowAvatarBubbleFromAvatarButton() { |
2574 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); | 2578 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); |
2575 if (button) | 2579 if (button) |
2576 button->ShowAvatarBubble(); | 2580 button->ShowAvatarBubble(); |
2577 } | 2581 } |
OLD | NEW |