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

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

Issue 9586018: Add support for multiple icon sizes for Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 years, 9 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 "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/extensions/extension_infobar_delegate.h" 10 #include "chrome/browser/extensions/extension_infobar_delegate.h"
(...skipping 19 matching lines...) Expand all
30 virtual ~ExtensionInfoBar(); 30 virtual ~ExtensionInfoBar();
31 31
32 // InfoBarView: 32 // InfoBarView:
33 virtual void Layout() OVERRIDE; 33 virtual void Layout() OVERRIDE;
34 virtual void ViewHierarchyChanged(bool is_add, 34 virtual void ViewHierarchyChanged(bool is_add,
35 View* parent, 35 View* parent,
36 View* child) OVERRIDE; 36 View* child) OVERRIDE;
37 virtual int ContentMinimumWidth() const OVERRIDE; 37 virtual int ContentMinimumWidth() const OVERRIDE;
38 38
39 // ImageLoadingTracker::Observer: 39 // ImageLoadingTracker::Observer:
40 virtual void OnImageLoaded(SkBitmap* image, 40 virtual void OnImageLoaded(const gfx::Image& image,
41 const ExtensionResource& resource, 41 const std::string& extension_id,
42 int index) OVERRIDE; 42 int index) OVERRIDE;
43 43
44 // ExtensionInfoBarDelegate::DelegateObserver: 44 // ExtensionInfoBarDelegate::DelegateObserver:
45 virtual void OnDelegateDeleted() OVERRIDE; 45 virtual void OnDelegateDeleted() OVERRIDE;
46 46
47 // views::ViewMenuDelegate: 47 // views::ViewMenuDelegate:
48 virtual void RunMenu(View* source, const gfx::Point& pt) OVERRIDE; 48 virtual void RunMenu(View* source, const gfx::Point& pt) OVERRIDE;
49 49
50 ExtensionInfoBarDelegate* GetDelegate(); 50 ExtensionInfoBarDelegate* GetDelegate();
51 51
52 // TODO(pkasting): This shadows InfoBarView::delegate_. Get rid of this once 52 // TODO(pkasting): This shadows InfoBarView::delegate_. Get rid of this once
53 // InfoBars own their delegates (and thus we don't need the DelegateObserver 53 // InfoBars own their delegates (and thus we don't need the DelegateObserver
54 // functionality). For now, almost everyone should use GetDelegate() instead. 54 // functionality). For now, almost everyone should use GetDelegate() instead.
55 InfoBarDelegate* delegate_; 55 InfoBarDelegate* delegate_;
56 56
57 Browser* browser_; 57 Browser* browser_;
58 58
59 // The dropdown menu for accessing the contextual extension actions. 59 // The dropdown menu for accessing the contextual extension actions.
60 views::MenuButton* menu_; 60 views::MenuButton* menu_;
61 61
62 // Keeps track of images being loaded on the File thread. 62 // Keeps track of images being loaded on the File thread.
63 ImageLoadingTracker tracker_; 63 ImageLoadingTracker tracker_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); 65 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar);
66 }; 66 };
67 67
68 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 68 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/create_application_shortcut_view.cc ('k') | chrome/browser/ui/views/infobars/extension_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698