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

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

Issue 6574011: Cleanup:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONFIRM_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/views/infobars/infobar_view.h" 9 #include "chrome/browser/ui/views/infobars/infobar_view.h"
10 #include "views/controls/link.h" 10 #include "views/controls/link.h"
11 11
12 class ConfirmInfoBarDelegate; 12 class ConfirmInfoBarDelegate;
13 class InfoBarTextButton;
14 namespace views { 13 namespace views {
15 class Label; 14 class Label;
15 class TextButton;
16 } 16 }
17 17
18 // TODO(pkasting): This class will die soon. 18 // TODO(pkasting): This class will die soon.
19 class AlertInfoBar : public InfoBarView { 19 class AlertInfoBar : public InfoBarView {
20 public: 20 public:
21 explicit AlertInfoBar(ConfirmInfoBarDelegate* delegate); 21 explicit AlertInfoBar(ConfirmInfoBarDelegate* delegate);
22 virtual ~AlertInfoBar(); 22 virtual ~AlertInfoBar();
23 23
24 // Overridden from views::View: 24 // Overridden from views::View:
25 virtual void Layout(); 25 virtual void Layout();
(...skipping 26 matching lines...) Expand all
52 virtual void Layout(); 52 virtual void Layout();
53 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 53 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
54 virtual int GetAvailableWidth() const; 54 virtual int GetAvailableWidth() const;
55 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 55 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
56 56
57 // views::LinkController: 57 // views::LinkController:
58 virtual void LinkActivated(views::Link* source, int event_flags); 58 virtual void LinkActivated(views::Link* source, int event_flags);
59 59
60 ConfirmInfoBarDelegate* GetDelegate(); 60 ConfirmInfoBarDelegate* GetDelegate();
61 61
62 InfoBarTextButton* ok_button_; 62 views::TextButton* ok_button_;
63 InfoBarTextButton* cancel_button_; 63 views::TextButton* cancel_button_;
64 views::Link* link_; 64 views::Link* link_;
65 65
66 bool initialized_; 66 bool initialized_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); 68 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar);
69 }; 69 };
70 70
71 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_ 71 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_CONFIRM_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/before_translate_infobar.cc ('k') | chrome/browser/ui/views/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698