| OLD | NEW |
| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // span the whole nonclient area, so there's no "dead zone" for the mouse.) | 69 // span the whole nonclient area, so there's no "dead zone" for the mouse.) |
| 70 const int kTopResizeAdjust = 1; | 70 const int kTopResizeAdjust = 1; |
| 71 | 71 |
| 72 // In the window corners, the resize areas don't actually expand bigger, but the | 72 // In the window corners, the resize areas don't actually expand bigger, but the |
| 73 // 16 px at the end of each edge triggers diagonal resizing. | 73 // 16 px at the end of each edge triggers diagonal resizing. |
| 74 const int kResizeAreaCornerSize = 16; | 74 const int kResizeAreaCornerSize = 16; |
| 75 | 75 |
| 76 // The content left/right images have a shadow built into them. | 76 // The content left/right images have a shadow built into them. |
| 77 const int kContentEdgeShadowThickness = 2; | 77 const int kContentEdgeShadowThickness = 2; |
| 78 | 78 |
| 79 #if !defined(OS_WIN) |
| 79 // The icon never shrinks below 16 px on a side. | 80 // The icon never shrinks below 16 px on a side. |
| 80 const int kIconMinimumSize = 16; | 81 const int kIconMinimumSize = 16; |
| 82 #endif |
| 81 | 83 |
| 82 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 84 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 83 // The number of pixels to move the frame background image upwards when using | 85 // The number of pixels to move the frame background image upwards when using |
| 84 // the GTK+ theme and the titlebar is condensed. | 86 // the GTK+ theme and the titlebar is condensed. |
| 85 const int kGTKThemeCondensedFrameTopInset = 15; | 87 const int kGTKThemeCondensedFrameTopInset = 15; |
| 86 #endif | 88 #endif |
| 87 | 89 |
| 88 } // namespace | 90 } // namespace |
| 89 | 91 |
| 90 /////////////////////////////////////////////////////////////////////////////// | 92 /////////////////////////////////////////////////////////////////////////////// |
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 832 client_area_bottom + kClientEdgeThickness - client_area_top), | 834 client_area_bottom + kClientEdgeThickness - client_area_top), |
| 833 toolbar_color); | 835 toolbar_color); |
| 834 canvas->FillRect(gfx::Rect(client_area_bounds.x(), client_area_bottom, | 836 canvas->FillRect(gfx::Rect(client_area_bounds.x(), client_area_bottom, |
| 835 client_area_bounds.width(), kClientEdgeThickness), | 837 client_area_bounds.width(), kClientEdgeThickness), |
| 836 toolbar_color); | 838 toolbar_color); |
| 837 canvas->FillRect(gfx::Rect(client_area_bounds.right(), client_area_top, | 839 canvas->FillRect(gfx::Rect(client_area_bounds.right(), client_area_top, |
| 838 kClientEdgeThickness, | 840 kClientEdgeThickness, |
| 839 client_area_bottom + kClientEdgeThickness - client_area_top), | 841 client_area_bottom + kClientEdgeThickness - client_area_top), |
| 840 toolbar_color); | 842 toolbar_color); |
| 841 } | 843 } |
| OLD | NEW |