Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 9443007: Add Chrome To Mobile Service and Views Page Action. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bail on empty GetOAuth2LoginRefreshToken(). Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_view.h ('k') | chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698