OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
(...skipping 2340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2351 TestCompositor() {} | 2351 TestCompositor() {} |
2352 | 2352 |
2353 // ui::Compositor: | 2353 // ui::Compositor: |
2354 virtual ui::Texture* CreateTexture() OVERRIDE { | 2354 virtual ui::Texture* CreateTexture() OVERRIDE { |
2355 return new TestTexture(); | 2355 return new TestTexture(); |
2356 } | 2356 } |
2357 virtual void NotifyStart() OVERRIDE {} | 2357 virtual void NotifyStart() OVERRIDE {} |
2358 virtual void NotifyEnd() OVERRIDE {} | 2358 virtual void NotifyEnd() OVERRIDE {} |
2359 virtual void Blur(const gfx::Rect& bounds) OVERRIDE {} | 2359 virtual void Blur(const gfx::Rect& bounds) OVERRIDE {} |
2360 virtual void SchedulePaint() OVERRIDE {} | 2360 virtual void SchedulePaint() OVERRIDE {} |
2361 virtual void OnWidgetSizeChanged(const gfx::Size& size) OVERRIDE {} | 2361 |
| 2362 protected: |
| 2363 virtual void OnWidgetSizeChanged() OVERRIDE {} |
2362 | 2364 |
2363 private: | 2365 private: |
2364 DISALLOW_COPY_AND_ASSIGN(TestCompositor); | 2366 DISALLOW_COPY_AND_ASSIGN(TestCompositor); |
2365 }; | 2367 }; |
2366 | 2368 |
2367 static ui::Compositor* TestCreateCompositor() { | 2369 static ui::Compositor* TestCreateCompositor() { |
2368 return new TestCompositor(); | 2370 return new TestCompositor(); |
2369 } | 2371 } |
2370 | 2372 |
2371 // Test implementation of LayerPropertySetter; | 2373 // Test implementation of LayerPropertySetter; |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2800 EXPECT_EQ(gfx::Rect(11, 22, 100, 200), widget_view_host->layer()->bounds()); | 2802 EXPECT_EQ(gfx::Rect(11, 22, 100, 200), widget_view_host->layer()->bounds()); |
2801 ASSERT_TRUE(child_view->layer() != NULL); | 2803 ASSERT_TRUE(child_view->layer() != NULL); |
2802 EXPECT_EQ(gfx::Rect(5, 6, 10, 11), child_view->layer()->bounds()); | 2804 EXPECT_EQ(gfx::Rect(5, 6, 10, 11), child_view->layer()->bounds()); |
2803 | 2805 |
2804 child_widget->CloseNow(); | 2806 child_widget->CloseNow(); |
2805 } | 2807 } |
2806 | 2808 |
2807 #endif // VIEWS_COMPOSITOR | 2809 #endif // VIEWS_COMPOSITOR |
2808 | 2810 |
2809 } // namespace views | 2811 } // namespace views |
OLD | NEW |