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

Side by Side Diff: chrome/browser/ui/views/harmony/harmony_layout_delegate.h

Issue 2505973003: harmony: use Harmony sizing for ViewsDelegate sizing functions (Closed)
Patch Set: Created 4 years, 1 month 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
7 7
8 #include "chrome/browser/ui/views/harmony/layout_delegate.h" 8 #include "chrome/browser/ui/views/harmony/layout_delegate.h"
9 9
10 class HarmonyLayoutDelegate : public LayoutDelegate { 10 class HarmonyLayoutDelegate : public LayoutDelegate {
11 public: 11 public:
12 HarmonyLayoutDelegate() {} 12 HarmonyLayoutDelegate() {}
13 ~HarmonyLayoutDelegate() override {} 13 ~HarmonyLayoutDelegate() override {}
14 14
15 // Returns the singleton HarmonyLayoutDelegate instance. 15 // Returns the singleton HarmonyLayoutDelegate instance.
16 static HarmonyLayoutDelegate* Get(); 16 static HarmonyLayoutDelegate* Get();
17 17
18 // The Harmony layout unit. All distances are in terms of this unit.
19 static const int kHarmonyLayoutUnit = 16;
sky 2016/11/17 18:18:34 style guide says constants should be before constr
20
18 // views::LayoutDelegate: 21 // views::LayoutDelegate:
19 int GetLayoutDistance(LayoutDistanceType type) const override; 22 int GetLayoutDistance(LayoutDistanceType type) const override;
20 bool UseExtraDialogPadding() const override; 23 bool UseExtraDialogPadding() const override;
21 24
22 private: 25 private:
23 DISALLOW_COPY_AND_ASSIGN(HarmonyLayoutDelegate); 26 DISALLOW_COPY_AND_ASSIGN(HarmonyLayoutDelegate);
24 }; 27 };
25 28
26 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_ 29 #endif // CHROME_BROWSER_UI_VIEWS_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/views/harmony/harmony_layout_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698