| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_layout.h" | 5 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
| 10 #include "chrome/browser/ui/layout_constants.h" | 10 #include "chrome/browser/ui/layout_constants.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 bool ShouldShowWindowTitle() const override { return !window_title_.empty(); } | 53 bool ShouldShowWindowTitle() const override { return !window_title_.empty(); } |
| 54 base::string16 GetWindowTitle() const override { return window_title_; } | 54 base::string16 GetWindowTitle() const override { return window_title_; } |
| 55 int GetIconSize() const override { return 17; } | 55 int GetIconSize() const override { return 17; } |
| 56 gfx::Size GetBrowserViewMinimumSize() const override { | 56 gfx::Size GetBrowserViewMinimumSize() const override { |
| 57 return gfx::Size(168, 64); | 57 return gfx::Size(168, 64); |
| 58 } | 58 } |
| 59 bool ShouldShowCaptionButtons() const override { | 59 bool ShouldShowCaptionButtons() const override { |
| 60 return show_caption_buttons_; | 60 return show_caption_buttons_; |
| 61 } | 61 } |
| 62 bool IsRegularOrGuestSession() const override { return true; } | 62 bool IsRegularOrGuestSession() const override { return true; } |
| 63 gfx::ImageSkia GetOTRAvatarIcon() const override { | 63 gfx::ImageSkia GetIncognitoAvatarIcon() const override { |
| 64 return gfx::ImageSkia(gfx::ImageSkiaRep(gfx::Size(40, 29), 1.0f)); | 64 return gfx::ImageSkia(gfx::ImageSkiaRep(gfx::Size(40, 29), 1.0f)); |
| 65 } | 65 } |
| 66 bool IsMaximized() const override { return maximized_; } | 66 bool IsMaximized() const override { return maximized_; } |
| 67 bool IsMinimized() const override { return false; } | 67 bool IsMinimized() const override { return false; } |
| 68 bool IsFullscreen() const override { return false; } | 68 bool IsFullscreen() const override { return false; } |
| 69 bool IsTabStripVisible() const override { return window_title_.empty(); } | 69 bool IsTabStripVisible() const override { return window_title_.empty(); } |
| 70 int GetTabStripHeight() const override { | 70 int GetTabStripHeight() const override { |
| 71 return IsTabStripVisible() ? Tab::GetMinimumInactiveSize().height() : 0; | 71 return IsTabStripVisible() ? Tab::GetMinimumInactiveSize().height() : 0; |
| 72 } | 72 } |
| 73 bool IsToolbarVisible() const override { return true; } | 73 bool IsToolbarVisible() const override { return true; } |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 427 | 427 |
| 428 for (int i = 0; i < 2; ++i) { | 428 for (int i = 0; i < 2; ++i) { |
| 429 root_view_->Layout(); | 429 root_view_->Layout(); |
| 430 SCOPED_TRACE(i == 0 ? "Window is restored" : "Window is maximized"); | 430 SCOPED_TRACE(i == 0 ? "Window is restored" : "Window is maximized"); |
| 431 ExpectCaptionButtons(false, 0); | 431 ExpectCaptionButtons(false, 0); |
| 432 ExpectTabStripAndMinimumSize(false); | 432 ExpectTabStripAndMinimumSize(false); |
| 433 ExpectAvatar(); | 433 ExpectAvatar(); |
| 434 delegate_->set_maximized(true); | 434 delegate_->set_maximized(true); |
| 435 } | 435 } |
| 436 } | 436 } |
| OLD | NEW |