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

Side by Side Diff: ui/views/test/test_views_delegate.h

Issue 2734113006: "Bootstrap" a toolkit-views Typography spec. (Closed)
Patch Set: Rebase (conflict in layout_delegate.h due to r457774) Created 3 years, 9 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
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 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "ui/views/style/typography_provider.h"
12 #include "ui/views/views_delegate.h" 13 #include "ui/views/views_delegate.h"
13 14
14 namespace views { 15 namespace views {
15 16
16 class TestViewsDelegate : public ViewsDelegate { 17 class TestViewsDelegate : public ViewsDelegate {
17 public: 18 public:
18 TestViewsDelegate(); 19 TestViewsDelegate();
19 ~TestViewsDelegate() override; 20 ~TestViewsDelegate() override;
20 21
21 // If set to |true|, forces widgets that do not provide a native widget to use 22 // If set to |true|, forces widgets that do not provide a native widget to use
(...skipping 18 matching lines...) Expand all
40 } 41 }
41 42
42 // ViewsDelegate: 43 // ViewsDelegate:
43 #if defined(OS_WIN) 44 #if defined(OS_WIN)
44 HICON GetSmallWindowIcon() const override; 45 HICON GetSmallWindowIcon() const override;
45 #endif 46 #endif
46 void OnBeforeWidgetInit(Widget::InitParams* params, 47 void OnBeforeWidgetInit(Widget::InitParams* params,
47 internal::NativeWidgetDelegate* delegate) override; 48 internal::NativeWidgetDelegate* delegate) override;
48 ui::ContextFactory* GetContextFactory() override; 49 ui::ContextFactory* GetContextFactory() override;
49 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override; 50 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override;
51 const TypographyProvider& GetTypographyProvider() const override;
50 52
51 private: 53 private:
52 ui::ContextFactory* context_factory_; 54 ui::ContextFactory* context_factory_;
53 ui::ContextFactoryPrivate* context_factory_private_; 55 ui::ContextFactoryPrivate* context_factory_private_;
54 bool use_desktop_native_widgets_; 56 bool use_desktop_native_widgets_;
55 bool use_transparent_windows_; 57 bool use_transparent_windows_;
58 DefaultTypographyProvider typography_provider_;
56 59
57 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 60 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
58 }; 61 };
59 62
60 } // namespace views 63 } // namespace views
61 64
62 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 65 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698