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

Side by Side Diff: chrome/browser/ui/views/infobars/infobar_view.h

Issue 22694006: Infobar system refactor. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 2 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_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/infobars/infobar.h" 10 #include "chrome/browser/infobars/infobar.h"
11 #include "chrome/browser/infobars/infobar_container.h" 11 #include "chrome/browser/infobars/infobar_container.h"
12 #include "third_party/skia/include/core/SkPath.h" 12 #include "third_party/skia/include/core/SkPath.h"
13 #include "ui/views/controls/button/button.h" 13 #include "ui/views/controls/button/button.h"
14 #include "ui/views/controls/menu/menu_item_view.h" 14 #include "ui/views/controls/menu/menu_item_view.h"
15 #include "ui/views/focus/external_focus_tracker.h" 15 #include "ui/views/focus/external_focus_tracker.h"
16 16
17 namespace ui { 17 namespace ui {
18 class MenuModel; 18 class MenuModel;
19 } 19 }
20 namespace views { 20 namespace views {
21 class ImageButton; 21 class ImageButton;
22 class ImageView; 22 class ImageView;
23 class Label; 23 class Label;
24 class LabelButton; 24 class LabelButton;
25 class Link; 25 class Link;
26 class LinkListener; 26 class LinkListener;
27 class MenuButton; 27 class MenuButton;
28 class MenuButtonListener; 28 class MenuButtonListener;
29 class MenuRunner; 29 class MenuRunner;
30 } 30 } // namespace views
31 31
32 class InfoBarView : public InfoBar, 32 class InfoBarView : public InfoBar,
33 public views::View, 33 public views::View,
34 public views::ButtonListener, 34 public views::ButtonListener,
35 public views::ExternalFocusTracker { 35 public views::ExternalFocusTracker {
36 public: 36 public:
37 InfoBarView(InfoBarService* owner, InfoBarDelegate* delegate); 37 explicit InfoBarView(scoped_ptr<InfoBarDelegate> delegate);
38 38
39 const SkPath& fill_path() const { return fill_path_; } 39 const SkPath& fill_path() const { return fill_path_; }
40 const SkPath& stroke_path() const { return stroke_path_; } 40 const SkPath& stroke_path() const { return stroke_path_; }
41 41
42 protected: 42 protected:
43 static const int kButtonButtonSpacing; 43 static const int kButtonButtonSpacing;
44 static const int kEndOfLabelSpacing; 44 static const int kEndOfLabelSpacing;
45 45
46 virtual ~InfoBarView(); 46 virtual ~InfoBarView();
47 47
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 SkPath fill_path_; 124 SkPath fill_path_;
125 SkPath stroke_path_; 125 SkPath stroke_path_;
126 126
127 // Used to run the menu. 127 // Used to run the menu.
128 scoped_ptr<views::MenuRunner> menu_runner_; 128 scoped_ptr<views::MenuRunner> menu_runner_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(InfoBarView); 130 DISALLOW_COPY_AND_ASSIGN(InfoBarView);
131 }; 131 };
132 132
133 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_ 133 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698