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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_INFOBARS_INFOBAR_H_ 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_H_
6 #define CHROME_BROWSER_INFOBARS_INFOBAR_H_ 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/infobars/infobar_delegate.h" 11 #include "components/infobars/core/infobar_delegate.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 #include "ui/gfx/animation/animation_delegate.h" 13 #include "ui/gfx/animation/animation_delegate.h"
14 #include "ui/gfx/animation/slide_animation.h" 14 #include "ui/gfx/animation/slide_animation.h"
15 #include "ui/gfx/size.h" 15 #include "ui/gfx/size.h"
16 16
17 class InfoBarContainer; 17 class InfoBarContainer;
jochen (gone - plz use gerrit) 2014/04/17 08:22:28 can you move the symbols into a namespace?
droger 2014/04/17 12:30:08 I was originally planning to do this in a follow u
18 class InfoBarManager; 18 class InfoBarManager;
19 19
20 // InfoBar is a cross-platform base class for an infobar "view" (in the MVC 20 // InfoBar is a cross-platform base class for an infobar "view" (in the MVC
21 // sense), which owns a corresponding InfoBarDelegate "model". Typically, 21 // sense), which owns a corresponding InfoBarDelegate "model". Typically,
22 // a caller will call XYZInfoBarDelegate::Create() and pass in the 22 // a caller will call XYZInfoBarDelegate::Create() and pass in the
23 // InfoBarManager for the relevant tab. This will create an XYZInfoBarDelegate, 23 // InfoBarManager for the relevant tab. This will create an XYZInfoBarDelegate,
24 // create a platform-specific subclass of InfoBar to own it, and then call 24 // create a platform-specific subclass of InfoBar to own it, and then call
25 // InfoBarManager::AddInfoBar() to give it ownership of the infobar. 25 // InfoBarManager::AddInfoBar() to give it ownership of the infobar.
26 // During its life, the InfoBar may be shown and hidden as the owning tab is 26 // During its life, the InfoBar may be shown and hidden as the owning tab is
27 // switched between the foreground and background. Eventually, InfoBarManager 27 // switched between the foreground and background. Eventually, InfoBarManager
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 // arrow as two halves on either side of a center point.) 139 // arrow as two halves on either side of a center point.)
140 int arrow_height_; // Includes both fill and top stroke. 140 int arrow_height_; // Includes both fill and top stroke.
141 int arrow_target_height_; 141 int arrow_target_height_;
142 int arrow_half_width_; // Includes only fill. 142 int arrow_half_width_; // Includes only fill.
143 int bar_height_; // Includes both fill and bottom separator. 143 int bar_height_; // Includes both fill and bottom separator.
144 int bar_target_height_; 144 int bar_target_height_;
145 145
146 DISALLOW_COPY_AND_ASSIGN(InfoBar); 146 DISALLOW_COPY_AND_ASSIGN(InfoBar);
147 }; 147 };
148 148
149 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_H_ 149 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698