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/glass_browser_frame_view.h" | 5 #include "chrome/browser/ui/views/frame/glass_browser_frame_view.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/app/chrome_dll_resource.h" | 11 #include "chrome/app/chrome_dll_resource.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/themes/theme_properties.h" | 14 #include "chrome/browser/themes/theme_properties.h" |
15 #include "chrome/browser/ui/views/avatar_menu_button.h" | 15 #include "chrome/browser/ui/views/avatar_menu_button.h" |
16 #include "chrome/browser/ui/views/frame/browser_view.h" | 16 #include "chrome/browser/ui/views/frame/browser_view.h" |
17 #include "chrome/browser/ui/views/tabs/tab.h" | 17 #include "chrome/browser/ui/views/tabs/tab.h" |
18 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 18 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
19 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
20 #include "chrome/common/pref_names.h" | 20 #include "chrome/common/pref_names.h" |
21 #include "content/public/browser/notification_service.h" | 21 #include "content/public/browser/notification_service.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 "grit/ui_resources.h" | 24 #include "grit/ui_resources.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 #include "ui/base/resource/resource_bundle_win.h" | 26 #include "ui/base/resource/resource_bundle_win.h" |
27 #include "ui/base/theme_provider.h" | 27 #include "ui/base/theme_provider.h" |
28 #include "ui/gfx/canvas.h" | 28 #include "ui/gfx/canvas.h" |
29 #include "ui/gfx/dpi_win.h" | |
30 #include "ui/gfx/icon_util.h" | 29 #include "ui/gfx/icon_util.h" |
31 #include "ui/gfx/image/image.h" | 30 #include "ui/gfx/image/image.h" |
| 31 #include "ui/gfx/win/dpi.h" |
32 #include "ui/views/controls/label.h" | 32 #include "ui/views/controls/label.h" |
33 #include "ui/views/layout/layout_constants.h" | 33 #include "ui/views/layout/layout_constants.h" |
34 #include "ui/views/win/hwnd_util.h" | 34 #include "ui/views/win/hwnd_util.h" |
35 #include "ui/views/window/client_view.h" | 35 #include "ui/views/window/client_view.h" |
36 | 36 |
37 HICON GlassBrowserFrameView::throbber_icons_[ | 37 HICON GlassBrowserFrameView::throbber_icons_[ |
38 GlassBrowserFrameView::kThrobberIconCount]; | 38 GlassBrowserFrameView::kThrobberIconCount]; |
39 | 39 |
40 namespace { | 40 namespace { |
41 // There are 3 px of client edge drawn inside the outer frame borders. | 41 // There are 3 px of client edge drawn inside the outer frame borders. |
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 static bool initialized = false; | 511 static bool initialized = false; |
512 if (!initialized) { | 512 if (!initialized) { |
513 for (int i = 0; i < kThrobberIconCount; ++i) { | 513 for (int i = 0; i < kThrobberIconCount; ++i) { |
514 throbber_icons_[i] = | 514 throbber_icons_[i] = |
515 ui::LoadThemeIconFromResourcesDataDLL(IDI_THROBBER_01 + i); | 515 ui::LoadThemeIconFromResourcesDataDLL(IDI_THROBBER_01 + i); |
516 DCHECK(throbber_icons_[i]); | 516 DCHECK(throbber_icons_[i]); |
517 } | 517 } |
518 initialized = true; | 518 initialized = true; |
519 } | 519 } |
520 } | 520 } |
OLD | NEW |