| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_header_painter_ash.h" | 5 #include "chrome/browser/ui/views/frame/browser_header_painter_ash.h" |
| 6 | 6 |
| 7 #include "ash/common/ash_layout_constants.h" | 7 #include "ash/common/ash_layout_constants.h" |
| 8 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" | 8 #include "ash/common/frame/caption_buttons/frame_caption_button_container_view.h
" |
| 9 #include "ash/frame/header_painter_util.h" | 9 #include "ash/common/frame/header_painter_util.h" |
| 10 #include "base/logging.h" // DCHECK | 10 #include "base/logging.h" // DCHECK |
| 11 #include "chrome/browser/themes/theme_properties.h" | 11 #include "chrome/browser/themes/theme_properties.h" |
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/views/frame/browser_frame.h" | 13 #include "chrome/browser/ui/views/frame/browser_frame.h" |
| 14 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" | 14 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" |
| 15 #include "chrome/browser/ui/views/frame/browser_view.h" | 15 #include "chrome/browser/ui/views/frame/browser_view.h" |
| 16 #include "grit/ash_resources.h" | 16 #include "grit/ash_resources.h" |
| 17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
| 18 #include "third_party/skia/include/core/SkCanvas.h" | 18 #include "third_party/skia/include/core/SkCanvas.h" |
| 19 #include "third_party/skia/include/core/SkPaint.h" | 19 #include "third_party/skia/include/core/SkPaint.h" |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 366 } |
| 367 | 367 |
| 368 gfx::Rect BrowserHeaderPainterAsh::GetPaintedBounds() const { | 368 gfx::Rect BrowserHeaderPainterAsh::GetPaintedBounds() const { |
| 369 return gfx::Rect(view_->width(), painted_height_); | 369 return gfx::Rect(view_->width(), painted_height_); |
| 370 } | 370 } |
| 371 | 371 |
| 372 gfx::Rect BrowserHeaderPainterAsh::GetTitleBounds() const { | 372 gfx::Rect BrowserHeaderPainterAsh::GetTitleBounds() const { |
| 373 return ash::HeaderPainterUtil::GetTitleBounds(window_icon_, | 373 return ash::HeaderPainterUtil::GetTitleBounds(window_icon_, |
| 374 caption_button_container_, BrowserFrame::GetTitleFontList()); | 374 caption_button_container_, BrowserFrame::GetTitleFontList()); |
| 375 } | 375 } |
| OLD | NEW |