OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/browser_non_client_frame_view_mus.h" | 5 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/profiler/scoped_tracker.h" | 9 #include "base/profiler/scoped_tracker.h" |
| 10 #include "build/build_config.h" |
10 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
11 #include "chrome/browser/extensions/extension_util.h" | 12 #include "chrome/browser/extensions/extension_util.h" |
12 #include "chrome/browser/profiles/profiles_state.h" | 13 #include "chrome/browser/profiles/profiles_state.h" |
13 #include "chrome/browser/themes/theme_properties.h" | 14 #include "chrome/browser/themes/theme_properties.h" |
14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/browser_commands.h" | 16 #include "chrome/browser/ui/browser_commands.h" |
16 #include "chrome/browser/ui/layout_constants.h" | 17 #include "chrome/browser/ui/layout_constants.h" |
17 #include "chrome/browser/ui/views/frame/browser_frame.h" | 18 #include "chrome/browser/ui/views/frame/browser_frame.h" |
18 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" | 19 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" |
19 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h" | 20 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h" |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 } | 643 } |
643 } | 644 } |
644 | 645 |
645 void BrowserNonClientFrameViewMus::PaintContentEdge(gfx::Canvas* canvas) { | 646 void BrowserNonClientFrameViewMus::PaintContentEdge(gfx::Canvas* canvas) { |
646 DCHECK(!UsePackagedAppHeaderStyle() && !UseWebAppHeaderStyle()); | 647 DCHECK(!UsePackagedAppHeaderStyle() && !UseWebAppHeaderStyle()); |
647 const int bottom = frame_values().normal_insets.bottom(); | 648 const int bottom = frame_values().normal_insets.bottom(); |
648 canvas->FillRect( | 649 canvas->FillRect( |
649 gfx::Rect(0, bottom, width(), kClientEdgeThickness), | 650 gfx::Rect(0, bottom, width(), kClientEdgeThickness), |
650 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TOOLBAR_SEPARATOR)); | 651 GetThemeProvider()->GetColor(ThemeProperties::COLOR_TOOLBAR_SEPARATOR)); |
651 } | 652 } |
OLD | NEW |