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/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 #include "grit/chromium_strings.h" | 25 #include "grit/chromium_strings.h" |
26 #include "grit/generated_resources.h" | 26 #include "grit/generated_resources.h" |
27 #include "grit/theme_resources.h" | 27 #include "grit/theme_resources.h" |
28 #include "grit/theme_resources_standard.h" | 28 #include "grit/theme_resources_standard.h" |
29 #include "grit/ui_resources.h" | 29 #include "grit/ui_resources.h" |
30 #include "ui/base/accessibility/accessible_view_state.h" | 30 #include "ui/base/accessibility/accessible_view_state.h" |
31 #include "ui/base/hit_test.h" | 31 #include "ui/base/hit_test.h" |
32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
33 #include "ui/base/resource/resource_bundle.h" | 33 #include "ui/base/resource/resource_bundle.h" |
34 #include "ui/base/theme_provider.h" | 34 #include "ui/base/theme_provider.h" |
35 #include "ui/gfx/canvas_skia.h" | 35 #include "ui/gfx/canvas.h" |
36 #include "ui/gfx/font.h" | 36 #include "ui/gfx/font.h" |
37 #include "ui/gfx/image/image.h" | 37 #include "ui/gfx/image/image.h" |
38 #include "ui/gfx/path.h" | 38 #include "ui/gfx/path.h" |
39 #include "ui/views/controls/button/image_button.h" | 39 #include "ui/views/controls/button/image_button.h" |
40 #include "ui/views/controls/image_view.h" | 40 #include "ui/views/controls/image_view.h" |
41 #include "ui/views/widget/root_view.h" | 41 #include "ui/views/widget/root_view.h" |
42 #include "ui/views/window/frame_background.h" | 42 #include "ui/views/window/frame_background.h" |
43 #include "ui/views/window/window_shape.h" | 43 #include "ui/views/window/window_shape.h" |
44 | 44 |
45 #if defined(USE_AURA) | 45 #if defined(USE_AURA) |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1041 | 1041 |
1042 gfx::Rect OpaqueBrowserFrameView::CalculateClientAreaBounds(int width, | 1042 gfx::Rect OpaqueBrowserFrameView::CalculateClientAreaBounds(int width, |
1043 int height) const { | 1043 int height) const { |
1044 int top_height = NonClientTopBorderHeight(false); | 1044 int top_height = NonClientTopBorderHeight(false); |
1045 int border_thickness = NonClientBorderThickness(); | 1045 int border_thickness = NonClientBorderThickness(); |
1046 return gfx::Rect(border_thickness, top_height, | 1046 return gfx::Rect(border_thickness, top_height, |
1047 std::max(0, width - (2 * border_thickness)), | 1047 std::max(0, width - (2 * border_thickness)), |
1048 std::max(0, height - GetReservedHeight() - | 1048 std::max(0, height - GetReservedHeight() - |
1049 top_height - border_thickness)); | 1049 top_height - border_thickness)); |
1050 } | 1050 } |
OLD | NEW |