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

Side by Side Diff: ui/views/widget/widget_unittest.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
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/window/custom_frame_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 5 #include <algorithm>
6 #include <set> 6 #include <set>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 3029 matching lines...) Expand 10 before | Expand all | Expand 10 after
3040 return gfx::Rect(); 3040 return gfx::Rect();
3041 } 3041 }
3042 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE { 3042 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE {
3043 return HTNOWHERE; 3043 return HTNOWHERE;
3044 } 3044 }
3045 virtual void GetWindowMask(const gfx::Size& size, 3045 virtual void GetWindowMask(const gfx::Size& size,
3046 gfx::Path* window_mask) OVERRIDE {} 3046 gfx::Path* window_mask) OVERRIDE {}
3047 virtual void ResetWindowControls() OVERRIDE {} 3047 virtual void ResetWindowControls() OVERRIDE {}
3048 virtual void UpdateWindowIcon() OVERRIDE {} 3048 virtual void UpdateWindowIcon() OVERRIDE {}
3049 virtual void UpdateWindowTitle() OVERRIDE {} 3049 virtual void UpdateWindowTitle() OVERRIDE {}
3050 virtual void SizeConstraintsChanged() OVERRIDE {}
3050 3051
3051 // views::View overrides: 3052 // views::View overrides:
3052 virtual void Layout() OVERRIDE { 3053 virtual void Layout() OVERRIDE {
3053 if (widget_->IsFullscreen()) 3054 if (widget_->IsFullscreen())
3054 fullscreen_layout_called_ = true; 3055 fullscreen_layout_called_ = true;
3055 } 3056 }
3056 3057
3057 bool fullscreen_layout_called() const { return fullscreen_layout_called_; } 3058 bool fullscreen_layout_called() const { return fullscreen_layout_called_; }
3058 3059
3059 private: 3060 private:
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
3214 3215
3215 EXPECT_EQ(test_rect, root_view->bounds()); 3216 EXPECT_EQ(test_rect, root_view->bounds());
3216 widget->ReorderNativeViews(); 3217 widget->ReorderNativeViews();
3217 EXPECT_EQ(test_rect, root_view->bounds()); 3218 EXPECT_EQ(test_rect, root_view->bounds());
3218 3219
3219 widget->CloseNow(); 3220 widget->CloseNow();
3220 } 3221 }
3221 3222
3222 } // namespace test 3223 } // namespace test
3223 } // namespace views 3224 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/window/custom_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698