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

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

Issue 2523673004: [NOT FOR COMMIT] Fully replace SkCanvas uses.
Patch Set: Support Android build. Created 4 years 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
« no previous file with comments | « 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 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after
4571 4571
4572 // ui::NativeTheme: 4572 // ui::NativeTheme:
4573 SkColor GetSystemColor(ColorId color_id) const override { 4573 SkColor GetSystemColor(ColorId color_id) const override {
4574 return SK_ColorRED; 4574 return SK_ColorRED;
4575 } 4575 }
4576 gfx::Size GetPartSize(Part part, 4576 gfx::Size GetPartSize(Part part,
4577 State state, 4577 State state,
4578 const ExtraParams& extra) const override { 4578 const ExtraParams& extra) const override {
4579 return gfx::Size(); 4579 return gfx::Size();
4580 } 4580 }
4581 void Paint(SkCanvas* canvas, 4581 void Paint(CdlCanvas* canvas,
4582 Part part, 4582 Part part,
4583 State state, 4583 State state,
4584 const gfx::Rect& rect, 4584 const gfx::Rect& rect,
4585 const ExtraParams& extra) const override {} 4585 const ExtraParams& extra) const override {}
4586 4586
4587 private: 4587 private:
4588 DISALLOW_COPY_AND_ASSIGN(TestNativeTheme); 4588 DISALLOW_COPY_AND_ASSIGN(TestNativeTheme);
4589 }; 4589 };
4590 4590
4591 // Creates and adds a new child view to |parent| that has a layer. 4591 // Creates and adds a new child view to |parent| that has a layer.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
4770 std::unique_ptr<View> view = NewView(); 4770 std::unique_ptr<View> view = NewView();
4771 std::unique_ptr<View> child_view = NewView(); 4771 std::unique_ptr<View> child_view = NewView();
4772 std::unique_ptr<View> child_view2 = NewView(); 4772 std::unique_ptr<View> child_view2 = NewView();
4773 view->AddChildView(child_view.get()); 4773 view->AddChildView(child_view.get());
4774 view->AddChildView(child_view2.get()); 4774 view->AddChildView(child_view2.get());
4775 view->ReorderChildView(child_view2.get(), 0); 4775 view->ReorderChildView(child_view2.get(), 0);
4776 EXPECT_EQ(child_view2.get(), view_reordered()); 4776 EXPECT_EQ(child_view2.get(), view_reordered());
4777 } 4777 }
4778 4778
4779 } // namespace views 4779 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/shadow_border.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698