| 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" | |
| 10 #include "chrome/app/chrome_command_ids.h" | 9 #include "chrome/app/chrome_command_ids.h" |
| 11 #include "chrome/browser/extensions/extension_util.h" | 10 #include "chrome/browser/extensions/extension_util.h" |
| 12 #include "chrome/browser/profiles/profiles_state.h" | 11 #include "chrome/browser/profiles/profiles_state.h" |
| 13 #include "chrome/browser/themes/theme_properties.h" | 12 #include "chrome/browser/themes/theme_properties.h" |
| 14 #include "chrome/browser/ui/browser.h" | 13 #include "chrome/browser/ui/browser.h" |
| 15 #include "chrome/browser/ui/browser_commands.h" | 14 #include "chrome/browser/ui/browser_commands.h" |
| 16 #include "chrome/browser/ui/layout_constants.h" | 15 #include "chrome/browser/ui/layout_constants.h" |
| 17 #include "chrome/browser/ui/views/frame/browser_frame.h" | 16 #include "chrome/browser/ui/views/frame/browser_frame.h" |
| 18 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" | 17 #include "chrome/browser/ui/views/frame/browser_frame_mus.h" |
| 19 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h" | 18 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h" |
| (...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 } | 623 } |
| 625 | 624 |
| 626 void BrowserNonClientFrameViewMus::PaintContentEdge(gfx::Canvas* canvas) { | 625 void BrowserNonClientFrameViewMus::PaintContentEdge(gfx::Canvas* canvas) { |
| 627 DCHECK(!UsePackagedAppHeaderStyle() && !UseWebAppHeaderStyle()); | 626 DCHECK(!UsePackagedAppHeaderStyle() && !UseWebAppHeaderStyle()); |
| 628 const int bottom = frame_values().normal_insets.bottom(); | 627 const int bottom = frame_values().normal_insets.bottom(); |
| 629 canvas->FillRect( | 628 canvas->FillRect( |
| 630 gfx::Rect(0, bottom, width(), kClientEdgeThickness), | 629 gfx::Rect(0, bottom, width(), kClientEdgeThickness), |
| 631 GetThemeProvider()->GetColor( | 630 GetThemeProvider()->GetColor( |
| 632 ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR)); | 631 ThemeProperties::COLOR_TOOLBAR_BOTTOM_SEPARATOR)); |
| 633 } | 632 } |
| OLD | NEW |