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

Side by Side Diff: components/infobars/core/infobar_container.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « components/infobars/core/infobar.h ('k') | components/infobars/core/infobar_container.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 // Changes the InfoBarManager for which this container is showing infobars. 48 // Changes the InfoBarManager for which this container is showing infobars.
49 // This will hide all current infobars, remove them from the container, add 49 // This will hide all current infobars, remove them from the container, add
50 // the infobars from |infobar_manager|, and show them all. |infobar_manager| 50 // the infobars from |infobar_manager|, and show them all. |infobar_manager|
51 // may be NULL. 51 // may be NULL.
52 void ChangeInfoBarManager(InfoBarManager* infobar_manager); 52 void ChangeInfoBarManager(InfoBarManager* infobar_manager);
53 53
54 // Returns the amount by which to overlap the toolbar above, and, when 54 // Returns the amount by which to overlap the toolbar above, and, when
55 // |total_height| is non-NULL, set it to the height of the InfoBarContainer 55 // |total_height| is non-NULL, set it to the height of the InfoBarContainer
56 // (including overlap). 56 // (including overlap).
57 int GetVerticalOverlap(int* total_height); 57 int GetVerticalOverlap(int* total_height) const;
58 58
59 // Called by the delegate when the distance between what the top infobar's 59 // Called by the delegate when the distance between what the top infobar's
60 // "unspoofable" arrow would point to and the top infobar itself changes. 60 // "unspoofable" arrow would point to and the top infobar itself changes.
61 // This enables the top infobar to show a longer arrow (e.g. because of a 61 // This enables the top infobar to show a longer arrow (e.g. because of a
62 // visible bookmark bar) or shorter (e.g. due to being in a popup window) if 62 // visible bookmark bar) or shorter (e.g. due to being in a popup window) if
63 // desired. 63 // desired.
64 // 64 //
65 // IMPORTANT: This MUST NOT result in a call back to 65 // IMPORTANT: This MUST NOT result in a call back to
66 // Delegate::InfoBarContainerStateChanged() unless it causes an actual 66 // Delegate::InfoBarContainerStateChanged() unless it causes an actual
67 // change, lest we infinitely recurse. 67 // change, lest we infinitely recurse.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 // Calculated in SetMaxTopArrowHeight(). 129 // Calculated in SetMaxTopArrowHeight().
130 int top_arrow_target_height_; 130 int top_arrow_target_height_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); 132 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer);
133 }; 133 };
134 134
135 } // namespace infobars 135 } // namespace infobars
136 136
137 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ 137 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_
OLDNEW
« no previous file with comments | « components/infobars/core/infobar.h ('k') | components/infobars/core/infobar_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698