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

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

Issue 4767001: Make TabContents own its infobar delegates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698