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

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

Issue 8895003: Aura: Add --aura-laptop-mode to fill the workspace with a single window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, fix unit test build Created 9 years 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) 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/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 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1991 aeropeek_manager_.reset(new AeroPeekManager( 1991 aeropeek_manager_.reset(new AeroPeekManager(
1992 frame_->GetNativeWindow())); 1992 frame_->GetNativeWindow()));
1993 browser_->tabstrip_model()->AddObserver(aeropeek_manager_.get()); 1993 browser_->tabstrip_model()->AddObserver(aeropeek_manager_.get());
1994 } 1994 }
1995 #endif 1995 #endif
1996 1996
1997 // We're now initialized and ready to process Layout requests. 1997 // We're now initialized and ready to process Layout requests.
1998 ignore_layout_ = false; 1998 ignore_layout_ = false;
1999 1999
2000 #if defined(USE_AURA) 2000 #if defined(USE_AURA)
2001 // Add launcher item if we're using the launcher and this type of browser
2002 // needs an item.
2001 aura_shell::LauncherItemType type; 2003 aura_shell::LauncherItemType type;
2002 if (ChromeShellDelegate::ShouldCreateLauncherItemForBrowser(browser_.get(), 2004 if (aura_shell::Shell::GetInstance()->launcher() &&
2005 ChromeShellDelegate::ShouldCreateLauncherItemForBrowser(browser_.get(),
2003 &type)) { 2006 &type)) {
2004 icon_updater_.reset(new LauncherIconUpdater( 2007 icon_updater_.reset(new LauncherIconUpdater(
2005 browser_->tabstrip_model(), 2008 browser_->tabstrip_model(),
2006 aura_shell::Shell::GetInstance()->launcher()->model(), 2009 aura_shell::Shell::GetInstance()->launcher()->model(),
2007 frame_->GetNativeWindow())); 2010 frame_->GetNativeWindow()));
2008 } 2011 }
2009 #endif 2012 #endif // defined(USE_AURA)
2010 } 2013 }
2011 2014
2012 void BrowserView::LoadingAnimationCallback() { 2015 void BrowserView::LoadingAnimationCallback() {
2013 base::TimeTicks now = base::TimeTicks::Now(); 2016 base::TimeTicks now = base::TimeTicks::Now();
2014 if (!last_animation_time_.is_null()) { 2017 if (!last_animation_time_.is_null()) {
2015 UMA_HISTOGRAM_TIMES( 2018 UMA_HISTOGRAM_TIMES(
2016 "Tabs.LoadingAnimationTime", 2019 "Tabs.LoadingAnimationTime",
2017 now - last_animation_time_); 2020 now - last_animation_time_);
2018 } 2021 }
2019 last_animation_time_ = now; 2022 last_animation_time_ = now;
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 browser::CreateViewsBubble(bubble); 2661 browser::CreateViewsBubble(bubble);
2659 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE); 2662 bubble->SetAlignment(views::BubbleBorder::ALIGN_EDGE_TO_ANCHOR_EDGE);
2660 bubble->Show(); 2663 bubble->Show();
2661 } 2664 }
2662 2665
2663 void BrowserView::ShowAvatarBubbleFromAvatarButton() { 2666 void BrowserView::ShowAvatarBubbleFromAvatarButton() {
2664 AvatarMenuButton* button = frame_->GetAvatarMenuButton(); 2667 AvatarMenuButton* button = frame_->GetAvatarMenuButton();
2665 if (button) 2668 if (button)
2666 button->ShowAvatarBubble(); 2669 button->ShowAvatarBubble();
2667 } 2670 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698