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/browser_non_client_frame_view_ash.h" | 5 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/frame/caption_buttons/frame_caption_button.h" | 9 #include "ash/frame/caption_buttons/frame_caption_button.h" |
10 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" | 10 #include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 void BrowserNonClientFrameViewAsh::UpdateWindowIcon() { | 281 void BrowserNonClientFrameViewAsh::UpdateWindowIcon() { |
282 if (window_icon_) | 282 if (window_icon_) |
283 window_icon_->SchedulePaint(); | 283 window_icon_->SchedulePaint(); |
284 } | 284 } |
285 | 285 |
286 void BrowserNonClientFrameViewAsh::UpdateWindowTitle() { | 286 void BrowserNonClientFrameViewAsh::UpdateWindowTitle() { |
287 if (!frame()->IsFullscreen()) | 287 if (!frame()->IsFullscreen()) |
288 header_painter_->SchedulePaintForTitle(); | 288 header_painter_->SchedulePaintForTitle(); |
289 } | 289 } |
290 | 290 |
| 291 void BrowserNonClientFrameViewAsh::SizeConstraintsChanged() { |
| 292 } |
| 293 |
291 /////////////////////////////////////////////////////////////////////////////// | 294 /////////////////////////////////////////////////////////////////////////////// |
292 // views::View: | 295 // views::View: |
293 | 296 |
294 void BrowserNonClientFrameViewAsh::OnPaint(gfx::Canvas* canvas) { | 297 void BrowserNonClientFrameViewAsh::OnPaint(gfx::Canvas* canvas) { |
295 if (!ShouldPaint()) | 298 if (!ShouldPaint()) |
296 return; | 299 return; |
297 | 300 |
298 if (UseImmersiveLightbarHeaderStyle()) { | 301 if (UseImmersiveLightbarHeaderStyle()) { |
299 PaintImmersiveLightbarStyleHeader(canvas); | 302 PaintImmersiveLightbarStyleHeader(canvas); |
300 return; | 303 return; |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 canvas->FillRect(gfx::Rect(0, caption_button_container_->bounds().bottom(), | 633 canvas->FillRect(gfx::Rect(0, caption_button_container_->bounds().bottom(), |
631 width(), kClientEdgeThickness), | 634 width(), kClientEdgeThickness), |
632 ThemeProperties::GetDefaultColor( | 635 ThemeProperties::GetDefaultColor( |
633 ThemeProperties::COLOR_TOOLBAR_SEPARATOR)); | 636 ThemeProperties::COLOR_TOOLBAR_SEPARATOR)); |
634 } | 637 } |
635 | 638 |
636 void BrowserNonClientFrameViewAsh::UpdateBackButtonState(bool enabled) { | 639 void BrowserNonClientFrameViewAsh::UpdateBackButtonState(bool enabled) { |
637 web_app_back_button_->SetState(enabled ? views::Button::STATE_NORMAL | 640 web_app_back_button_->SetState(enabled ? views::Button::STATE_NORMAL |
638 : views::Button::STATE_DISABLED); | 641 : views::Button::STATE_DISABLED); |
639 } | 642 } |
OLD | NEW |