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

Side by Side Diff: views/view_unittest.cc

Issue 7552039: Vend common GL context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/compositor/layer.cc ('k') | views/widget/native_widget_gtk.cc » ('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) 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
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
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
OLDNEW
« no previous file with comments | « ui/gfx/compositor/layer.cc ('k') | views/widget/native_widget_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698