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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/views/infobars/infobar_view.h" 9 #include "chrome/browser/ui/views/infobars/infobar_view.h"
10 #include "ui/views/controls/button/menu_button_listener.h" 10 #include "ui/views/controls/button/menu_button_listener.h"
(...skipping 10 matching lines...) Expand all
21 class ExtensionInfoBar : public InfoBarView, 21 class ExtensionInfoBar : public InfoBarView,
22 public views::MenuButtonListener { 22 public views::MenuButtonListener {
23 public: 23 public:
24 ExtensionInfoBar(scoped_ptr<ExtensionInfoBarDelegate> delegate, 24 ExtensionInfoBar(scoped_ptr<ExtensionInfoBarDelegate> delegate,
25 Browser* browser); 25 Browser* browser);
26 26
27 private: 27 private:
28 virtual ~ExtensionInfoBar(); 28 virtual ~ExtensionInfoBar();
29 29
30 // InfoBarView: 30 // InfoBarView:
31 virtual void Layout() OVERRIDE; 31 virtual void Layout() override;
32 virtual void ViewHierarchyChanged( 32 virtual void ViewHierarchyChanged(
33 const ViewHierarchyChangedDetails& details) OVERRIDE; 33 const ViewHierarchyChangedDetails& details) override;
34 virtual int ContentMinimumWidth() const OVERRIDE; 34 virtual int ContentMinimumWidth() const override;
35 35
36 // views::MenuButtonListener: 36 // views::MenuButtonListener:
37 virtual void OnMenuButtonClicked(views::View* source, 37 virtual void OnMenuButtonClicked(views::View* source,
38 const gfx::Point& point) OVERRIDE; 38 const gfx::Point& point) override;
39 39
40 void OnImageLoaded(const gfx::Image& image); 40 void OnImageLoaded(const gfx::Image& image);
41 ExtensionInfoBarDelegate* GetDelegate(); 41 ExtensionInfoBarDelegate* GetDelegate();
42 const ExtensionInfoBarDelegate* GetDelegate() const; 42 const ExtensionInfoBarDelegate* GetDelegate() const;
43 ExtensionViewViews* GetExtensionView(); 43 ExtensionViewViews* GetExtensionView();
44 44
45 // Returns the width of all content other than the extension view. Layout() 45 // Returns the width of all content other than the extension view. Layout()
46 // uses this to determine how much space the extension view can take. 46 // uses this to determine how much space the extension view can take.
47 int NonExtensionViewWidth() const; 47 int NonExtensionViewWidth() const;
48 48
(...skipping 15 matching lines...) Expand all
64 // It is non-NULL if |infobar_icon_| is an image and in that case 64 // It is non-NULL if |infobar_icon_| is an image and in that case
65 // |icon_as_image_ == infobar_icon_|. 65 // |icon_as_image_ == infobar_icon_|.
66 views::ImageView* icon_as_image_; 66 views::ImageView* icon_as_image_;
67 67
68 base::WeakPtrFactory<ExtensionInfoBar> weak_ptr_factory_; 68 base::WeakPtrFactory<ExtensionInfoBar> weak_ptr_factory_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar); 70 DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar);
71 }; 71 };
72 72
73 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_ 73 #endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.h ('k') | chrome/browser/ui/views/infobars/extension_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698