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

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

Issue 53153009: When the new profile management flag is enabled, make sure to use the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/opaque_browser_frame_view.h" 5 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 const ui::Event& event) { 393 const ui::Event& event) {
394 if (sender == minimize_button_) 394 if (sender == minimize_button_)
395 frame()->Minimize(); 395 frame()->Minimize();
396 else if (sender == maximize_button_) 396 else if (sender == maximize_button_)
397 frame()->Maximize(); 397 frame()->Maximize();
398 else if (sender == restore_button_) 398 else if (sender == restore_button_)
399 frame()->Restore(); 399 frame()->Restore();
400 else if (sender == close_button_) 400 else if (sender == close_button_)
401 frame()->Close(); 401 frame()->Close();
402 else if (sender == new_avatar_button()) 402 else if (sender == new_avatar_button())
403 ShowProfileChooserViewBubble(); 403 browser_view()->ShowAvatarBubbleFromAvatarButton();
404 } 404 }
405 405
406 /////////////////////////////////////////////////////////////////////////////// 406 ///////////////////////////////////////////////////////////////////////////////
407 // OpaqueBrowserFrameView, TabIconView::TabContentsProvider implementation: 407 // OpaqueBrowserFrameView, TabIconView::TabContentsProvider implementation:
408 408
409 bool OpaqueBrowserFrameView::ShouldTabIconViewAnimate() const { 409 bool OpaqueBrowserFrameView::ShouldTabIconViewAnimate() const {
410 // This function is queried during the creation of the window as the 410 // This function is queried during the creation of the window as the
411 // TabIconView we host is initialized, so we need to NULL check the selected 411 // TabIconView we host is initialized, so we need to NULL check the selected
412 // WebContents because in this condition there is not yet a selected tab. 412 // WebContents because in this condition there is not yet a selected tab.
413 WebContents* current_tab = browser_view()->GetActiveWebContents(); 413 WebContents* current_tab = browser_view()->GetActiveWebContents();
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 879
880 int OpaqueBrowserFrameView::GetTopAreaHeight() const { 880 int OpaqueBrowserFrameView::GetTopAreaHeight() const {
881 gfx::ImageSkia* frame_image = GetFrameImage(); 881 gfx::ImageSkia* frame_image = GetFrameImage();
882 int top_area_height = frame_image->height(); 882 int top_area_height = frame_image->height();
883 if (browser_view()->IsTabStripVisible()) { 883 if (browser_view()->IsTabStripVisible()) {
884 top_area_height = std::max(top_area_height, 884 top_area_height = std::max(top_area_height,
885 GetBoundsForTabStrip(browser_view()->tabstrip()).bottom()); 885 GetBoundsForTabStrip(browser_view()->tabstrip()).bottom());
886 } 886 }
887 return top_area_height; 887 return top_area_height;
888 } 888 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698