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

Side by Side Diff: ui/harmony/harmony_layout_delegate.h

Issue 2485083003: views: add layout delegates (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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef UI_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
6 #define UI_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
7
8 #include "ui/harmony/harmony_export.h"
9 #include "ui/views/layout/layout_delegate.h"
10
11 namespace views {
12 class View;
13 } // namespace views
14
15 namespace ui {
16
17 class HARMONY_EXPORT HarmonyLayoutDelegate : public views::LayoutDelegate {
sky 2016/11/08 23:34:00 We are in the process of trying to cleanup the ui
18 public:
19 // Returns the singleton HarmonyLayoutDelegate instance.
20 static HarmonyLayoutDelegate* Get();
21
22 // Convenience function: if Harmony mode is enabled, sets the
23 // HarmonyLayoutDelegate singleton instance to be |view|'s LayoutDelegate.
24 static void ApplyToViewIfNeeded(views::View* view);
25
26 // views::LayoutDelegate:
27 int GetLayoutDistance(LayoutDistanceType type) const override;
28 bool UseExtraDialogPadding() const override;
29 };
30
31 } // namespace ui
32
33 #endif // UI_HARMONY_HARMONY_LAYOUT_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698