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

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

Issue 824513003: Standardize usage of virtual/override/final specifiers in components/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 11 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 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 int bar_target_height, 58 int bar_target_height,
59 int* arrow_height, 59 int* arrow_height,
60 int* arrow_half_width, 60 int* arrow_half_width,
61 int* bar_height) const = 0; 61 int* bar_height) const = 0;
62 62
63 protected: 63 protected:
64 virtual ~Delegate(); 64 virtual ~Delegate();
65 }; 65 };
66 66
67 explicit InfoBarContainer(Delegate* delegate); 67 explicit InfoBarContainer(Delegate* delegate);
68 virtual ~InfoBarContainer(); 68 ~InfoBarContainer() override;
69 69
70 // Changes the InfoBarManager for which this container is showing infobars. 70 // Changes the InfoBarManager for which this container is showing infobars.
71 // This will hide all current infobars, remove them from the container, add 71 // This will hide all current infobars, remove them from the container, add
72 // the infobars from |infobar_manager|, and show them all. |infobar_manager| 72 // the infobars from |infobar_manager|, and show them all. |infobar_manager|
73 // may be NULL. 73 // may be NULL.
74 void ChangeInfoBarManager(InfoBarManager* infobar_manager); 74 void ChangeInfoBarManager(InfoBarManager* infobar_manager);
75 75
76 // Returns the amount by which to overlap the toolbar above, and, when 76 // Returns the amount by which to overlap the toolbar above, and, when
77 // |total_height| is non-NULL, set it to the height of the InfoBarContainer 77 // |total_height| is non-NULL, set it to the height of the InfoBarContainer
78 // (including overlap). 78 // (including overlap).
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // functionality in OnInfoBarStateChanged() once, to minimize unnecessary 139 // functionality in OnInfoBarStateChanged() once, to minimize unnecessary
140 // layout and painting. 140 // layout and painting.
141 bool ignore_infobar_state_changed_; 141 bool ignore_infobar_state_changed_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); 143 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer);
144 }; 144 };
145 145
146 } // namespace infobars 146 } // namespace infobars
147 147
148 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ 148 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_
OLDNEW
« no previous file with comments | « components/google/core/browser/google_url_tracker_map_entry.h ('k') | components/metrics/histogram_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698