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 <map> | 5 #include <map> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/rand_util.h" | 8 #include "base/rand_util.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "ui/gfx/path.h" | 24 #include "ui/gfx/path.h" |
25 #include "ui/gfx/transform.h" | 25 #include "ui/gfx/transform.h" |
26 #include "ui/strings/grit/ui_strings.h" | 26 #include "ui/strings/grit/ui_strings.h" |
27 #include "ui/views/background.h" | 27 #include "ui/views/background.h" |
28 #include "ui/views/controls/native/native_view_host.h" | 28 #include "ui/views/controls/native/native_view_host.h" |
29 #include "ui/views/controls/scroll_view.h" | 29 #include "ui/views/controls/scroll_view.h" |
30 #include "ui/views/controls/textfield/textfield.h" | 30 #include "ui/views/controls/textfield/textfield.h" |
31 #include "ui/views/focus/view_storage.h" | 31 #include "ui/views/focus/view_storage.h" |
32 #include "ui/views/test/views_test_base.h" | 32 #include "ui/views/test/views_test_base.h" |
33 #include "ui/views/view.h" | 33 #include "ui/views/view.h" |
34 #include "ui/views/views_delegate.h" | |
35 #include "ui/views/widget/native_widget.h" | 34 #include "ui/views/widget/native_widget.h" |
36 #include "ui/views/widget/root_view.h" | 35 #include "ui/views/widget/root_view.h" |
37 #include "ui/views/window/dialog_client_view.h" | 36 #include "ui/views/window/dialog_client_view.h" |
38 #include "ui/views/window/dialog_delegate.h" | 37 #include "ui/views/window/dialog_delegate.h" |
39 | 38 |
40 using base::ASCIIToUTF16; | 39 using base::ASCIIToUTF16; |
41 | 40 |
42 namespace { | 41 namespace { |
43 | 42 |
44 // Returns true if |ancestor| is an ancestor of |layer|. | 43 // Returns true if |ancestor| is an ancestor of |layer|. |
(...skipping 3853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3898 // notification. | 3897 // notification. |
3899 TestView* test_view_child_2 = new TestView(); | 3898 TestView* test_view_child_2 = new TestView(); |
3900 test_view->AddChildView(test_view_child_2); | 3899 test_view->AddChildView(test_view_child_2); |
3901 EXPECT_TRUE(test_view_child_2->native_theme_); | 3900 EXPECT_TRUE(test_view_child_2->native_theme_); |
3902 EXPECT_EQ(widget->GetNativeTheme(), test_view_child_2->native_theme_); | 3901 EXPECT_EQ(widget->GetNativeTheme(), test_view_child_2->native_theme_); |
3903 | 3902 |
3904 widget->CloseNow(); | 3903 widget->CloseNow(); |
3905 } | 3904 } |
3906 | 3905 |
3907 } // namespace views | 3906 } // namespace views |
OLD | NEW |