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

Side by Side Diff: ui/views/view_unittest.cc

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase Created 3 years, 10 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
« ui/gfx/canvas_paint_mac.mm ('K') | « ui/views/shadow_border.cc ('k') | no next file » | 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 "ui/views/view.h" 5 #include "ui/views/view.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
(...skipping 4561 matching lines...) Expand 10 before | Expand all | Expand 10 after
4572 4572
4573 // ui::NativeTheme: 4573 // ui::NativeTheme:
4574 SkColor GetSystemColor(ColorId color_id) const override { 4574 SkColor GetSystemColor(ColorId color_id) const override {
4575 return SK_ColorRED; 4575 return SK_ColorRED;
4576 } 4576 }
4577 gfx::Size GetPartSize(Part part, 4577 gfx::Size GetPartSize(Part part,
4578 State state, 4578 State state,
4579 const ExtraParams& extra) const override { 4579 const ExtraParams& extra) const override {
4580 return gfx::Size(); 4580 return gfx::Size();
4581 } 4581 }
4582 void Paint(SkCanvas* canvas, 4582 void Paint(cc::PaintCanvas* canvas,
4583 Part part, 4583 Part part,
4584 State state, 4584 State state,
4585 const gfx::Rect& rect, 4585 const gfx::Rect& rect,
4586 const ExtraParams& extra) const override {} 4586 const ExtraParams& extra) const override {}
4587 4587
4588 private: 4588 private:
4589 DISALLOW_COPY_AND_ASSIGN(TestNativeTheme); 4589 DISALLOW_COPY_AND_ASSIGN(TestNativeTheme);
4590 }; 4590 };
4591 4591
4592 // Creates and adds a new child view to |parent| that has a layer. 4592 // Creates and adds a new child view to |parent| that has a layer.
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
4882 std::unique_ptr<View> view = NewView(); 4882 std::unique_ptr<View> view = NewView();
4883 std::unique_ptr<View> child_view = NewView(); 4883 std::unique_ptr<View> child_view = NewView();
4884 std::unique_ptr<View> child_view2 = NewView(); 4884 std::unique_ptr<View> child_view2 = NewView();
4885 view->AddChildView(child_view.get()); 4885 view->AddChildView(child_view.get());
4886 view->AddChildView(child_view2.get()); 4886 view->AddChildView(child_view2.get());
4887 view->ReorderChildView(child_view2.get(), 0); 4887 view->ReorderChildView(child_view2.get(), 0);
4888 EXPECT_EQ(child_view2.get(), view_reordered()); 4888 EXPECT_EQ(child_view2.get(), view_reordered());
4889 } 4889 }
4890 4890
4891 } // namespace views 4891 } // namespace views
OLDNEW
« ui/gfx/canvas_paint_mac.mm ('K') | « ui/views/shadow_border.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698