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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_frame_view.cc

Issue 10821002: Makes the min window size include the OTR image and caption buttons on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 5 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/panels/panel_browser_frame_view.h" 5 #include "chrome/browser/ui/panels/panel_browser_frame_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/themes/theme_service.h" 10 #include "chrome/browser/themes/theme_service.h"
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 PanelBrowserFrameView::~PanelBrowserFrameView() { 320 PanelBrowserFrameView::~PanelBrowserFrameView() {
321 } 321 }
322 322
323 gfx::Rect PanelBrowserFrameView::GetBoundsForTabStrip( 323 gfx::Rect PanelBrowserFrameView::GetBoundsForTabStrip(
324 views::View* tabstrip) const { 324 views::View* tabstrip) const {
325 // Panels never show a tab strip. 325 // Panels never show a tab strip.
326 NOTREACHED(); 326 NOTREACHED();
327 return gfx::Rect(); 327 return gfx::Rect();
328 } 328 }
329 329
330 int PanelBrowserFrameView::GetHorizontalTabStripVerticalOffset( 330 BrowserNonClientFrameView::TabStripInsets
331 PanelBrowserFrameView::GetTabStripInsets(
331 bool restored) const { 332 bool restored) const {
332 // This is not needed since we do not show tab strip for the panel. 333 // This is not needed since we do not show tab strip for the panel.
333 return 0; 334 return TabStripInsets();
334 } 335 }
335 336
336 void PanelBrowserFrameView::UpdateThrobber(bool running) { 337 void PanelBrowserFrameView::UpdateThrobber(bool running) {
337 // Tells the title icon to update the throbber when we need to show the 338 // Tells the title icon to update the throbber when we need to show the
338 // animation to indicate we're still loading. 339 // animation to indicate we're still loading.
339 title_icon_->Update(); 340 title_icon_->Update();
340 } 341 }
341 342
342 gfx::Rect PanelBrowserFrameView::GetBoundsForClientView() const { 343 gfx::Rect PanelBrowserFrameView::GetBoundsForClientView() const {
343 return client_view_bounds_; 344 return client_view_bounds_;
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 } 799 }
799 800
800 bool PanelBrowserFrameView::CanResize() const { 801 bool PanelBrowserFrameView::CanResize() const {
801 return panel_browser_view_->panel()->CanResizeByMouse() != 802 return panel_browser_view_->panel()->CanResizeByMouse() !=
802 panel::NOT_RESIZABLE; 803 panel::NOT_RESIZABLE;
803 } 804 }
804 805
805 bool PanelBrowserFrameView::IsShowingTitlebarOnly() const { 806 bool PanelBrowserFrameView::IsShowingTitlebarOnly() const {
806 return height() <= panel::kTitlebarHeight; 807 return height() <= panel::kTitlebarHeight;
807 } 808 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_frame_view.h ('k') | chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698