| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_INFOBARS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBARS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBARS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBARS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/animation.h" | 9 #include "app/animation.h" |
| 10 #include "base/task.h" | 10 #include "base/task.h" |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 231 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
| 232 | 232 |
| 233 // Overridden from InfoBar: | 233 // Overridden from InfoBar: |
| 234 virtual int GetAvailableWidth() const; | 234 virtual int GetAvailableWidth() const; |
| 235 | 235 |
| 236 private: | 236 private: |
| 237 void Init(); | 237 void Init(); |
| 238 | 238 |
| 239 ConfirmInfoBarDelegate* GetDelegate(); | 239 ConfirmInfoBarDelegate* GetDelegate(); |
| 240 | 240 |
| 241 int cached_buttons_; |
| 241 views::NativeButton* ok_button_; | 242 views::NativeButton* ok_button_; |
| 242 views::NativeButton* cancel_button_; | 243 views::NativeButton* cancel_button_; |
| 243 views::Link* link_; | 244 views::Link* link_; |
| 244 | 245 |
| 245 bool initialized_; | 246 bool initialized_; |
| 246 | 247 |
| 247 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); | 248 DISALLOW_COPY_AND_ASSIGN(ConfirmInfoBar); |
| 248 }; | 249 }; |
| 249 | 250 |
| 250 | 251 |
| 251 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBARS_H_ | 252 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_INFOBARS_H_ |
| OLD | NEW |