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 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/location.h" | 10 #include "base/location.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 void OnBeforeWidgetInit( | 55 void OnBeforeWidgetInit( |
56 views::Widget::InitParams* params, | 56 views::Widget::InitParams* params, |
57 views::internal::NativeWidgetDelegate* delegate) override; | 57 views::internal::NativeWidgetDelegate* delegate) override; |
58 ui::ContextFactory* GetContextFactory() override; | 58 ui::ContextFactory* GetContextFactory() override; |
59 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override; | 59 ui::ContextFactoryPrivate* GetContextFactoryPrivate() override; |
60 std::string GetApplicationName() override; | 60 std::string GetApplicationName() override; |
61 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; | 61 scoped_refptr<base::TaskRunner> GetBlockingPoolTaskRunner() override; |
62 | 62 |
63 gfx::Insets GetInsetsMetric(views::InsetsMetric metric) const override; | 63 gfx::Insets GetInsetsMetric(views::InsetsMetric metric) const override; |
64 int GetDistanceMetric(views::DistanceMetric metric) const override; | 64 int GetDistanceMetric(views::DistanceMetric metric) const override; |
| 65 const views::TypographyProvider& GetTypographyProvider() const override; |
65 | 66 |
66 int GetDefaultDistanceMetric(views::DistanceMetric metric) const; | 67 int GetDefaultDistanceMetric(views::DistanceMetric metric) const; |
67 | 68 |
68 private: | 69 private: |
69 #if defined(OS_WIN) | 70 #if defined(OS_WIN) |
70 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; | 71 typedef std::map<HMONITOR, int> AppbarAutohideEdgeMap; |
71 | 72 |
72 // Callback on main thread with the edges. |returned_edges| is the value that | 73 // Callback on main thread with the edges. |returned_edges| is the value that |
73 // was returned from the call to GetAutohideEdges() that initiated the lookup. | 74 // was returned from the call to GetAutohideEdges() that initiated the lookup. |
74 void OnGotAppbarAutohideEdges(const base::Closure& callback, | 75 void OnGotAppbarAutohideEdges(const base::Closure& callback, |
(...skipping 30 matching lines...) Expand all Loading... |
105 // GetAutohideEdges().start a new query. | 106 // GetAutohideEdges().start a new query. |
106 bool in_autohide_edges_callback_; | 107 bool in_autohide_edges_callback_; |
107 | 108 |
108 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; | 109 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; |
109 #endif | 110 #endif |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); | 112 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); |
112 }; | 113 }; |
113 | 114 |
114 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ | 115 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ |
OLD | NEW |