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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/strings/utf_string_conversions.h" | |
10 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
11 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/app/chrome_dll_resource.h" | 11 #include "chrome/app/chrome_dll_resource.h" |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/themes/theme_properties.h" | 13 #include "chrome/browser/themes/theme_properties.h" |
15 #include "chrome/browser/ui/layout_constants.h" | 14 #include "chrome/browser/ui/layout_constants.h" |
16 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
17 #include "chrome/browser/ui/views/profiles/profile_indicator_icon.h" | 16 #include "chrome/browser/ui/views/profiles/profile_indicator_icon.h" |
18 #include "chrome/browser/ui/views/tabs/tab.h" | 17 #include "chrome/browser/ui/views/tabs/tab.h" |
19 #include "chrome/browser/ui/views/tabs/tab_strip.h" | 18 #include "chrome/browser/ui/views/tabs/tab_strip.h" |
20 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" | 19 #include "chrome/browser/ui/views/toolbar/toolbar_view.h" |
21 #include "components/prefs/pref_service.h" | |
22 #include "components/signin/core/browser/signin_header_helper.h" | |
23 #include "components/signin/core/common/profile_management_switches.h" | |
24 #include "grit/theme_resources.h" | 20 #include "grit/theme_resources.h" |
25 #include "skia/ext/image_operations.h" | 21 #include "skia/ext/image_operations.h" |
26 #include "ui/base/material_design/material_design_controller.h" | 22 #include "ui/base/material_design/material_design_controller.h" |
27 #include "ui/base/resource/resource_bundle_win.h" | 23 #include "ui/base/resource/resource_bundle_win.h" |
28 #include "ui/base/theme_provider.h" | 24 #include "ui/base/theme_provider.h" |
29 #include "ui/display/win/dpi.h" | 25 #include "ui/display/win/dpi.h" |
30 #include "ui/gfx/canvas.h" | 26 #include "ui/gfx/canvas.h" |
31 #include "ui/gfx/icon_util.h" | 27 #include "ui/gfx/icon_util.h" |
32 #include "ui/gfx/image/image.h" | 28 #include "ui/gfx/image/image.h" |
33 #include "ui/gfx/scoped_canvas.h" | 29 #include "ui/gfx/scoped_canvas.h" |
34 #include "ui/resources/grit/ui_resources.h" | |
35 #include "ui/views/controls/label.h" | |
36 #include "ui/views/layout/layout_constants.h" | |
37 #include "ui/views/resources/grit/views_resources.h" | 30 #include "ui/views/resources/grit/views_resources.h" |
38 #include "ui/views/win/hwnd_util.h" | 31 #include "ui/views/win/hwnd_util.h" |
39 #include "ui/views/window/client_view.h" | 32 #include "ui/views/window/client_view.h" |
40 | 33 |
41 HICON GlassBrowserFrameView::throbber_icons_[ | 34 HICON GlassBrowserFrameView::throbber_icons_[ |
42 GlassBrowserFrameView::kThrobberIconCount]; | 35 GlassBrowserFrameView::kThrobberIconCount]; |
43 | 36 |
44 namespace { | 37 namespace { |
45 // Thickness of the border in the client area that separates it from the | 38 // Thickness of the border in the client area that separates it from the |
46 // non-client area. Includes but is distinct from kClientEdgeThickness, which is | 39 // non-client area. Includes but is distinct from kClientEdgeThickness, which is |
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 static bool initialized = false; | 670 static bool initialized = false; |
678 if (!initialized) { | 671 if (!initialized) { |
679 for (int i = 0; i < kThrobberIconCount; ++i) { | 672 for (int i = 0; i < kThrobberIconCount; ++i) { |
680 throbber_icons_[i] = | 673 throbber_icons_[i] = |
681 ui::LoadThemeIconFromResourcesDataDLL(IDI_THROBBER_01 + i); | 674 ui::LoadThemeIconFromResourcesDataDLL(IDI_THROBBER_01 + i); |
682 DCHECK(throbber_icons_[i]); | 675 DCHECK(throbber_icons_[i]); |
683 } | 676 } |
684 initialized = true; | 677 initialized = true; |
685 } | 678 } |
686 } | 679 } |
OLD | NEW |