| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/views/tabbed_pane.h" | 5 #include "chrome/views/tabbed_pane.h" |
| 6 | 6 |
| 7 #include <vssym32.h> | 7 #include <vssym32.h> |
| 8 | 8 |
| 9 #include "base/gfx/native_theme.h" | 9 #include "base/gfx/native_theme.h" |
| 10 #include "base/gfx/skia_utils.h" | |
| 11 #include "base/logging.h" | 10 #include "base/logging.h" |
| 12 #include "chrome/common/gfx/chrome_canvas.h" | 11 #include "chrome/common/gfx/chrome_canvas.h" |
| 13 #include "chrome/common/gfx/chrome_font.h" | 12 #include "chrome/common/gfx/chrome_font.h" |
| 14 #include "chrome/common/l10n_util.h" | 13 #include "chrome/common/l10n_util.h" |
| 15 #include "chrome/common/resource_bundle.h" | 14 #include "chrome/common/resource_bundle.h" |
| 16 #include "chrome/common/stl_util-inl.h" | 15 #include "chrome/common/stl_util-inl.h" |
| 17 #include "chrome/common/throb_animation.h" | 16 #include "chrome/common/throb_animation.h" |
| 18 #include "chrome/views/background.h" | 17 #include "chrome/views/background.h" |
| 19 #include "chrome/views/root_view.h" | 18 #include "chrome/views/root_view.h" |
| 20 #include "chrome/views/widget_win.h" | 19 #include "chrome/views/widget_win.h" |
| 20 #include "skia/ext/skia_utils_win.h" |
| 21 #include "skia/include/SkColor.h" | 21 #include "skia/include/SkColor.h" |
| 22 | 22 |
| 23 namespace views { | 23 namespace views { |
| 24 | 24 |
| 25 // A background object that paints the tab panel background which may be | 25 // A background object that paints the tab panel background which may be |
| 26 // rendered by the system visual styles system. | 26 // rendered by the system visual styles system. |
| 27 class TabBackground : public Background { | 27 class TabBackground : public Background { |
| 28 public: | 28 public: |
| 29 explicit TabBackground() { | 29 explicit TabBackground() { |
| 30 // TMT_FILLCOLORHINT returns a color value that supposedly | 30 // TMT_FILLCOLORHINT returns a color value that supposedly |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 if (!GetClientRect(tab_control, &content_bounds)) | 245 if (!GetClientRect(tab_control, &content_bounds)) |
| 246 return; | 246 return; |
| 247 TabCtrl_AdjustRect(tab_control, FALSE, &content_bounds); | 247 TabCtrl_AdjustRect(tab_control, FALSE, &content_bounds); |
| 248 content_window_->MoveWindow(content_bounds.left, content_bounds.top, | 248 content_window_->MoveWindow(content_bounds.left, content_bounds.top, |
| 249 content_bounds.Width(), content_bounds.Height(), | 249 content_bounds.Width(), content_bounds.Height(), |
| 250 TRUE); | 250 TRUE); |
| 251 } | 251 } |
| 252 | 252 |
| 253 } // namespace views | 253 } // namespace views |
| 254 | 254 |
| OLD | NEW |