| 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/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/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 8 #include "chrome/browser/views/frame/browser_frame.h" | 9 #include "chrome/browser/views/frame/browser_frame.h" |
| 9 #include "chrome/browser/views/frame/browser_view.h" | 10 #include "chrome/browser/views/frame/browser_view.h" |
| 10 #include "chrome/browser/views/tabs/tab_strip.h" | 11 #include "chrome/browser/views/tabs/tab_strip.h" |
| 11 #include "chrome/common/gfx/chrome_canvas.h" | 12 #include "chrome/common/gfx/chrome_canvas.h" |
| 12 #include "chrome/common/gfx/chrome_font.h" | 13 #include "chrome/common/gfx/chrome_font.h" |
| 13 #include "chrome/common/gfx/path.h" | 14 #include "chrome/common/gfx/path.h" |
| 14 #include "chrome/common/l10n_util.h" | |
| 15 #include "chrome/common/win_util.h" | 15 #include "chrome/common/win_util.h" |
| 16 #include "chrome/views/controls/button/image_button.h" | 16 #include "chrome/views/controls/button/image_button.h" |
| 17 #include "chrome/views/widget/root_view.h" | 17 #include "chrome/views/widget/root_view.h" |
| 18 #include "chrome/views/window/window_resources.h" | 18 #include "chrome/views/window/window_resources.h" |
| 19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
| 20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 21 #include "grit/theme_resources.h" | 21 #include "grit/theme_resources.h" |
| 22 | 22 |
| 23 // An enumeration of bitmap resources used by this window. | 23 // An enumeration of bitmap resources used by this window. |
| 24 enum { | 24 enum { |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 } | 1115 } |
| 1116 | 1116 |
| 1117 // static | 1117 // static |
| 1118 void OpaqueBrowserFrameView::InitAppWindowResources() { | 1118 void OpaqueBrowserFrameView::InitAppWindowResources() { |
| 1119 static bool initialized = false; | 1119 static bool initialized = false; |
| 1120 if (!initialized) { | 1120 if (!initialized) { |
| 1121 title_font_ = new ChromeFont(win_util::GetWindowTitleFont()); | 1121 title_font_ = new ChromeFont(win_util::GetWindowTitleFont()); |
| 1122 initialized = true; | 1122 initialized = true; |
| 1123 } | 1123 } |
| 1124 } | 1124 } |
| OLD | NEW |