| 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/opaque_browser_frame_view.h" | 5 #include "chrome/browser/views/frame/opaque_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 "app/theme_provider.h" | 9 #include "app/theme_provider.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "grit/chromium_strings.h" | 21 #include "grit/chromium_strings.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
| 24 #include "views/controls/button/image_button.h" | 24 #include "views/controls/button/image_button.h" |
| 25 #include "views/controls/image_view.h" | 25 #include "views/controls/image_view.h" |
| 26 #include "views/widget/root_view.h" | 26 #include "views/widget/root_view.h" |
| 27 #include "views/window/window.h" | 27 #include "views/window/window.h" |
| 28 #include "views/window/window_resources.h" | 28 #include "views/window/window_resources.h" |
| 29 #include "views/window/window_shape.h" | 29 #include "views/window/window_shape.h" |
| 30 | 30 |
| 31 #if defined(OS_WIN) | |
| 32 #include "app/win_util.h" | |
| 33 #endif | |
| 34 | |
| 35 #if defined(OS_LINUX) | 31 #if defined(OS_LINUX) |
| 36 #include "views/window/hit_test.h" | 32 #include "views/window/hit_test.h" |
| 37 #endif | 33 #endif |
| 38 | 34 |
| 39 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 40 const int kCustomFrameBackgroundVerticalOffset = 15; | 36 const int kCustomFrameBackgroundVerticalOffset = 15; |
| 41 #endif | 37 #endif |
| 42 | 38 |
| 43 namespace { | 39 namespace { |
| 44 // The frame border is only visible in restored mode and is hardcoded to 4 px on | 40 // The frame border is only visible in restored mode and is hardcoded to 4 px on |
| (...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1075 // static | 1071 // static |
| 1076 gfx::Rect OpaqueBrowserFrameView::GetViewBounds(views::View* src, | 1072 gfx::Rect OpaqueBrowserFrameView::GetViewBounds(views::View* src, |
| 1077 views::View* dst) { | 1073 views::View* dst) { |
| 1078 gfx::Rect bounds(src->bounds()); | 1074 gfx::Rect bounds(src->bounds()); |
| 1079 | 1075 |
| 1080 gfx::Point origin_in_dst(bounds.origin()); | 1076 gfx::Point origin_in_dst(bounds.origin()); |
| 1081 View::ConvertPointToView(src->GetParent(), dst, &origin_in_dst); | 1077 View::ConvertPointToView(src->GetParent(), dst, &origin_in_dst); |
| 1082 bounds.set_origin(origin_in_dst); | 1078 bounds.set_origin(origin_in_dst); |
| 1083 return bounds; | 1079 return bounds; |
| 1084 } | 1080 } |
| OLD | NEW |