| OLD | NEW | 
|---|
| 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/gfx/canvas.h" |  | 
| 8 #include "app/gfx/font.h" |  | 
| 9 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" | 
| 10 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" | 
| 11 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" | 
| 12 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" | 
| 13 #include "chrome/browser/views/frame/browser_frame.h" | 11 #include "chrome/browser/views/frame/browser_frame.h" | 
| 14 #include "chrome/browser/views/frame/browser_view.h" | 12 #include "chrome/browser/views/frame/browser_view.h" | 
|  | 13 #include "gfx/canvas.h" | 
|  | 14 #include "gfx/font.h" | 
| 15 #include "gfx/path.h" | 15 #include "gfx/path.h" | 
| 16 #include "grit/app_resources.h" | 16 #include "grit/app_resources.h" | 
| 17 #include "grit/chromium_strings.h" | 17 #include "grit/chromium_strings.h" | 
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" | 
| 19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" | 
| 20 #include "views/controls/button/image_button.h" | 20 #include "views/controls/button/image_button.h" | 
| 21 #include "views/window/window.h" | 21 #include "views/window/window.h" | 
| 22 #include "views/window/window_resources.h" | 22 #include "views/window/window_resources.h" | 
| 23 | 23 | 
| 24 #if defined(OS_LINUX) | 24 #if defined(OS_LINUX) | 
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 494 } | 494 } | 
| 495 | 495 | 
| 496 gfx::Rect AppPanelBrowserFrameView::CalculateClientAreaBounds(int width, | 496 gfx::Rect AppPanelBrowserFrameView::CalculateClientAreaBounds(int width, | 
| 497     int height) const { | 497     int height) const { | 
| 498   int top_height = NonClientTopBorderHeight(); | 498   int top_height = NonClientTopBorderHeight(); | 
| 499   int border_thickness = NonClientBorderThickness(); | 499   int border_thickness = NonClientBorderThickness(); | 
| 500   return gfx::Rect(border_thickness, top_height, | 500   return gfx::Rect(border_thickness, top_height, | 
| 501                    std::max(0, width - (2 * border_thickness)), | 501                    std::max(0, width - (2 * border_thickness)), | 
| 502                    std::max(0, height - top_height - border_thickness)); | 502                    std::max(0, height - top_height - border_thickness)); | 
| 503 } | 503 } | 
| OLD | NEW | 
|---|