| Index: ui/views/test/test_views_delegate.h
|
| diff --git a/ui/views/test/test_views_delegate.h b/ui/views/test/test_views_delegate.h
|
| index 222548f44ab182f2208c5af56c16da78ca5437dc..863dc9de87142371414a53278e8d437f923d2790 100644
|
| --- a/ui/views/test/test_views_delegate.h
|
| +++ b/ui/views/test/test_views_delegate.h
|
| @@ -9,7 +9,7 @@
|
|
|
| #include "base/macros.h"
|
| #include "build/build_config.h"
|
| -#include "ui/views/style/typography_provider.h"
|
| +#include "ui/views/layout/layout_delegate.h"
|
| #include "ui/views/views_delegate.h"
|
|
|
| namespace views {
|
| @@ -40,6 +40,10 @@ class TestViewsDelegate : public ViewsDelegate {
|
| context_factory_private_ = context_factory_private;
|
| }
|
|
|
| + void set_layout_delegate(std::unique_ptr<LayoutDelegate> layout_delegate) {
|
| + layout_delegate_.swap(layout_delegate);
|
| + }
|
| +
|
| // ViewsDelegate:
|
| #if defined(OS_WIN)
|
| HICON GetSmallWindowIcon() const override;
|
| @@ -48,14 +52,13 @@ class TestViewsDelegate : public ViewsDelegate {
|
| internal::NativeWidgetDelegate* delegate) override;
|
| ui::ContextFactory* GetContextFactory() override;
|
| ui::ContextFactoryPrivate* GetContextFactoryPrivate() override;
|
| - const TypographyProvider& GetTypographyProvider() const override;
|
|
|
| private:
|
| ui::ContextFactory* context_factory_;
|
| ui::ContextFactoryPrivate* context_factory_private_;
|
| bool use_desktop_native_widgets_;
|
| bool use_transparent_windows_;
|
| - DefaultTypographyProvider typography_provider_;
|
| + std::unique_ptr<LayoutDelegate> layout_delegate_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
|
| };
|
|
|