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

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

Issue 2914793005: [mus+ash] Fixes minimum browser window size (store / retrieve kPreferredSize property) (Closed)
Patch Set: [mus+ash] Fixes minimum browser window size (tests) Created 3 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/top_container_view.h" 5 #include "chrome/browser/ui/views/frame/top_container_view.h"
6 6
7 #include "chrome/browser/ui/views/frame/browser_frame.h" 7 #include "chrome/browser/ui/views/frame/browser_frame.h"
8 #include "chrome/browser/ui/views/frame/browser_view.h" 8 #include "chrome/browser/ui/views/frame/browser_view.h"
9 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" 9 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
10 #include "ui/compositor/paint_context.h" 10 #include "ui/compositor/paint_context.h"
(...skipping 15 matching lines...) Expand all
26 // controls) being painted underneath them. Clip rect has already been set 26 // controls) being painted underneath them. Clip rect has already been set
27 // to the bounds of this view, so just paint the frame. Use a clone without 27 // to the bounds of this view, so just paint the frame. Use a clone without
28 // invalidation info, as we're painting something outside of the normal 28 // invalidation info, as we're painting something outside of the normal
29 // parent-child relationship, so invalidations are no longer in the correct 29 // parent-child relationship, so invalidations are no longer in the correct
30 // space to compare. 30 // space to compare.
31 browser_view_->frame()->GetFrameView()->Paint(ui::PaintContext( 31 browser_view_->frame()->GetFrameView()->Paint(ui::PaintContext(
32 context, ui::PaintContext::CLONE_WITHOUT_INVALIDATION)); 32 context, ui::PaintContext::CLONE_WITHOUT_INVALIDATION));
33 } 33 }
34 View::PaintChildren(context); 34 View::PaintChildren(context);
35 } 35 }
36
37 void TopContainerView::ChildPreferredSizeChanged(views::View* child) {
38 PreferredSizeChanged();
39 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/top_container_view.h ('k') | services/ui/public/interfaces/window_manager.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698