Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc

Issue 554183002: Update the maximize button when size constraints change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update NativeWidgetMac. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698