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

Side by Side Diff: chrome/browser/views/frame/app_panel_browser_frame_view.cc

Issue 3137019: Fix numerous alignment problems, both horizontal and vertical, in drawing the... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/frame/app_panel_browser_frame_view.h" 5 #include "chrome/browser/views/frame/app_panel_browser_frame_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 10 #include "chrome/browser/tab_contents/tab_contents.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 /////////////////////////////////////////////////////////////////////////////// 86 ///////////////////////////////////////////////////////////////////////////////
87 // AppPanelBrowserFrameView, BrowserNonClientFrameView implementation: 87 // AppPanelBrowserFrameView, BrowserNonClientFrameView implementation:
88 88
89 gfx::Rect AppPanelBrowserFrameView::GetBoundsForTabStrip( 89 gfx::Rect AppPanelBrowserFrameView::GetBoundsForTabStrip(
90 BaseTabStrip* tabstrip) const { 90 BaseTabStrip* tabstrip) const {
91 // App panels never show a tab strip. 91 // App panels never show a tab strip.
92 NOTREACHED(); 92 NOTREACHED();
93 return gfx::Rect(); 93 return gfx::Rect();
94 } 94 }
95 95
96 int AppPanelBrowserFrameView::GetHorizontalTabStripVerticalOffset(
97 bool restored) const {
98 // App panels are not themed and don't need this.
99 return 0;
100 }
101
96 void AppPanelBrowserFrameView::UpdateThrobber(bool running) { 102 void AppPanelBrowserFrameView::UpdateThrobber(bool running) {
97 window_icon_->Update(); 103 window_icon_->Update();
98 } 104 }
99 105
100 gfx::Size AppPanelBrowserFrameView::GetMinimumSize() { 106 gfx::Size AppPanelBrowserFrameView::GetMinimumSize() {
101 gfx::Size min_size(browser_view_->GetMinimumSize()); 107 gfx::Size min_size(browser_view_->GetMinimumSize());
102 int border_thickness = NonClientBorderThickness(); 108 int border_thickness = NonClientBorderThickness();
103 min_size.Enlarge(2 * border_thickness, 109 min_size.Enlarge(2 * border_thickness,
104 NonClientTopBorderHeight() + border_thickness); 110 NonClientTopBorderHeight() + border_thickness);
105 111
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 } 496 }
491 497
492 gfx::Rect AppPanelBrowserFrameView::CalculateClientAreaBounds(int width, 498 gfx::Rect AppPanelBrowserFrameView::CalculateClientAreaBounds(int width,
493 int height) const { 499 int height) const {
494 int top_height = NonClientTopBorderHeight(); 500 int top_height = NonClientTopBorderHeight();
495 int border_thickness = NonClientBorderThickness(); 501 int border_thickness = NonClientBorderThickness();
496 return gfx::Rect(border_thickness, top_height, 502 return gfx::Rect(border_thickness, top_height,
497 std::max(0, width - (2 * border_thickness)), 503 std::max(0, width - (2 * border_thickness)),
498 std::max(0, height - top_height - border_thickness)); 504 std::max(0, height - top_height - border_thickness));
499 } 505 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/app_panel_browser_frame_view.h ('k') | chrome/browser/views/frame/browser_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698