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

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: Missed GlassBrowserFrameView. 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 <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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
3193 EXPECT_EQ(3, view->GetEventCount(ui::ET_MOUSE_PRESSED)); 3194 EXPECT_EQ(3, view->GetEventCount(ui::ET_MOUSE_PRESSED));
3194 EXPECT_EQ(3, view->GetEventCount(ui::ET_MOUSE_RELEASED)); 3195 EXPECT_EQ(3, view->GetEventCount(ui::ET_MOUSE_RELEASED));
3195 EXPECT_EQ(1, view->GetEventCount(ui::ET_MOUSE_DRAGGED)); 3196 EXPECT_EQ(1, view->GetEventCount(ui::ET_MOUSE_DRAGGED));
3196 EXPECT_EQ(ui::EF_LEFT_MOUSE_BUTTON, view->last_flags()); 3197 EXPECT_EQ(ui::EF_LEFT_MOUSE_BUTTON, view->last_flags());
3197 3198
3198 widget->CloseNow(); 3199 widget->CloseNow();
3199 } 3200 }
3200 3201
3201 } // namespace test 3202 } // namespace test
3202 } // namespace views 3203 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698