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

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

Issue 6989001: Misc. infobar stuff: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 7 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_EXTENSION_INFOBAR_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 6 #define CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_infobar_delegate.h" 9 #include "chrome/browser/extensions/extension_infobar_delegate.h"
10 #include "chrome/browser/extensions/image_loading_tracker.h" 10 #include "chrome/browser/extensions/image_loading_tracker.h"
11 #include "chrome/browser/ui/views/extensions/extension_view.h" 11 #include "chrome/browser/ui/views/extensions/extension_view.h"
12 #include "chrome/browser/ui/views/infobars/infobar_view.h" 12 #include "chrome/browser/ui/views/infobars/infobar_view.h"
13 #include "views/controls/menu/view_menu_delegate.h" 13 #include "views/controls/menu/view_menu_delegate.h"
14 14
15 class ExtensionContextMenuModel; 15 class ExtensionContextMenuModel;
16 class TabContents;
16 namespace views { 17 namespace views {
17 class MenuButton; 18 class MenuButton;
18 class Menu2; 19 class Menu2;
19 } 20 }
20 21
21 class ExtensionInfoBar : public InfoBarView, 22 class ExtensionInfoBar : public InfoBarView,
22 public ExtensionView::Container, 23 public ExtensionView::Container,
23 public ImageLoadingTracker::Observer, 24 public ImageLoadingTracker::Observer,
24 public ExtensionInfoBarDelegate::DelegateObserver, 25 public ExtensionInfoBarDelegate::DelegateObserver,
25 public views::ViewMenuDelegate { 26 public views::ViewMenuDelegate {
26 public: 27 public:
27 explicit ExtensionInfoBar(ExtensionInfoBarDelegate* delegate); 28 ExtensionInfoBar(TabContents* owner, ExtensionInfoBarDelegate* delegate);
28 29
29 private: 30 private:
30 virtual ~ExtensionInfoBar(); 31 virtual ~ExtensionInfoBar();
31 32
32 // InfoBarView: 33 // InfoBarView:
33 virtual void Layout(); 34 virtual void Layout();
34 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); 35 virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
35 virtual int ContentMinimumWidth() const; 36 virtual int ContentMinimumWidth() const;
36 37
37 // ExtensionView::Container: 38 // ExtensionView::Container:
(...skipping 24 matching lines...) Expand all
62 scoped_ptr<views::Menu2> options_menu_menu_; 63 scoped_ptr<views::Menu2> options_menu_menu_;
63 views::MenuButton* menu_; 64 views::MenuButton* menu_;
64 65
65 // Keeps track of images being loaded on the File thread. 66 // Keeps track of images being loaded on the File thread.
66 ImageLoadingTracker tracker_; 67 ImageLoadingTracker tracker_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); 69 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar);
69 }; 70 };
70 71
71 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 72 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698