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

Side by Side Diff: chrome/browser/ui/views/chrome_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 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
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 static int GetDefaultDistanceMetric(views::DistanceMetric metric); 67 static int GetDefaultDistanceMetric(views::DistanceMetric metric);
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // GetAutohideEdges().start a new query. 108 // GetAutohideEdges().start a new query.
108 bool in_autohide_edges_callback_; 109 bool in_autohide_edges_callback_;
109 110
110 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_; 111 base::WeakPtrFactory<ChromeViewsDelegate> weak_factory_;
111 #endif 112 #endif
112 113
113 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 114 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
114 }; 115 };
115 116
116 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 117 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698