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 <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 Loading... |
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 Loading... |
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 |
OLD | NEW |