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

Side by Side Diff: chrome/browser/ui/infobar_container_delegate.h

Issue 2444923003: Some more pre-material cleanups (Closed)
Patch Set: pkasting review 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_INFOBAR_CONTAINER_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_INFOBAR_CONTAINER_DELEGATE_H_
6 #define CHROME_BROWSER_UI_INFOBAR_CONTAINER_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_INFOBAR_CONTAINER_DELEGATE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/infobars/core/infobar_container.h" 11 #include "components/infobars/core/infobar_container.h"
12 12
13 class InfoBarContainerDelegate : public infobars::InfoBarContainer::Delegate { 13 class InfoBarContainerDelegate : public infobars::InfoBarContainer::Delegate {
14 public: 14 public:
15 // TODO(estade): make some or all of these private.
16 static const int kDefaultBarTargetHeight; 15 static const int kDefaultBarTargetHeight;
17 static const int kDefaultBarTargetHeightMd;
18 static const int kSeparatorLineHeight; 16 static const int kSeparatorLineHeight;
19 static const int kDefaultArrowTargetHeight; 17 static const int kDefaultArrowTargetHeight;
20 static const int kDefaultArrowTargetHeightMd;
21 static const int kMaximumArrowTargetHeight; 18 static const int kMaximumArrowTargetHeight;
22 static const int kDefaultArrowTargetHalfWidth; 19 static const int kDefaultArrowTargetHalfWidth;
23 static const int kDefaultArrowTargetHalfWidthMd;
24 static const int kMaximumArrowTargetHalfWidth; 20 static const int kMaximumArrowTargetHalfWidth;
25 21
26 InfoBarContainerDelegate(); 22 InfoBarContainerDelegate();
27 ~InfoBarContainerDelegate() override; 23 ~InfoBarContainerDelegate() override;
28 24
29 // Called when the distance between what the top infobar's "unspoofable" arrow 25 // Called when the distance between what the top infobar's "unspoofable" arrow
30 // would point to and the top infobar itself changes. Sets the maximum height 26 // would point to and the top infobar itself changes. Sets the maximum height
31 // of the top arrow to the new |height| and asks |container| to update its 27 // of the top arrow to the new |height| and asks |container| to update its
32 // infobars accordingly. This enables the top infobar to show a longer arrow 28 // infobars accordingly. This enables the top infobar to show a longer arrow
33 // (e.g. because of a visible bookmark bar) or shorter (e.g. due to being in a 29 // (e.g. because of a visible bookmark bar) or shorter (e.g. due to being in a
(...skipping 11 matching lines...) Expand all
45 int* arrow_half_width, 41 int* arrow_half_width,
46 int* bar_height) const override; 42 int* bar_height) const override;
47 43
48 private: 44 private:
49 int top_arrow_target_height_; 45 int top_arrow_target_height_;
50 46
51 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerDelegate); 47 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerDelegate);
52 }; 48 };
53 49
54 #endif // CHROME_BROWSER_UI_INFOBAR_CONTAINER_DELEGATE_H_ 50 #endif // CHROME_BROWSER_UI_INFOBAR_CONTAINER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm ('k') | chrome/browser/ui/infobar_container_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698