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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_popup.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_EXTENSIONS_EXTENSION_POPUP_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h" 10 #include "chrome/browser/ui/tabs/tab_strip_model_observer.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 Browser* browser, 55 Browser* browser,
56 views::View* anchor_view, 56 views::View* anchor_view,
57 views::BubbleBorder::Arrow arrow, 57 views::BubbleBorder::Arrow arrow,
58 ShowAction show_action); 58 ShowAction show_action);
59 59
60 extensions::ExtensionViewHost* host() const { return host_.get(); } 60 extensions::ExtensionViewHost* host() const { return host_.get(); }
61 61
62 // content::NotificationObserver overrides. 62 // content::NotificationObserver overrides.
63 virtual void Observe(int type, 63 virtual void Observe(int type,
64 const content::NotificationSource& source, 64 const content::NotificationSource& source,
65 const content::NotificationDetails& details) OVERRIDE; 65 const content::NotificationDetails& details) override;
66 66
67 // ExtensionViewViews::Container overrides. 67 // ExtensionViewViews::Container overrides.
68 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) OVERRIDE; 68 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) override;
69 69
70 // views::View overrides. 70 // views::View overrides.
71 virtual gfx::Size GetPreferredSize() const OVERRIDE; 71 virtual gfx::Size GetPreferredSize() const override;
72 virtual void ViewHierarchyChanged( 72 virtual void ViewHierarchyChanged(
73 const ViewHierarchyChangedDetails& details) OVERRIDE; 73 const ViewHierarchyChangedDetails& details) override;
74 74
75 // views::WidgetObserver overrides. 75 // views::WidgetObserver overrides.
76 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 76 virtual void OnWidgetDestroying(views::Widget* widget) override;
77 virtual void OnWidgetActivationChanged(views::Widget* widget, 77 virtual void OnWidgetActivationChanged(views::Widget* widget,
78 bool active) OVERRIDE; 78 bool active) override;
79 79
80 // aura::client::ActivationChangeObserver overrides. 80 // aura::client::ActivationChangeObserver overrides.
81 virtual void OnWindowActivated(aura::Window* gained_active, 81 virtual void OnWindowActivated(aura::Window* gained_active,
82 aura::Window* lost_active) OVERRIDE; 82 aura::Window* lost_active) override;
83 83
84 // TabStripModelObserver overrides. 84 // TabStripModelObserver overrides.
85 virtual void ActiveTabChanged(content::WebContents* old_contents, 85 virtual void ActiveTabChanged(content::WebContents* old_contents,
86 content::WebContents* new_contents, 86 content::WebContents* new_contents,
87 int index, 87 int index,
88 int reason) OVERRIDE; 88 int reason) override;
89 89
90 // The min/max height of popups. 90 // The min/max height of popups.
91 static const int kMinWidth; 91 static const int kMinWidth;
92 static const int kMinHeight; 92 static const int kMinHeight;
93 static const int kMaxWidth; 93 static const int kMaxWidth;
94 static const int kMaxHeight; 94 static const int kMaxHeight;
95 95
96 private: 96 private:
97 ExtensionPopup(extensions::ExtensionViewHost* host, 97 ExtensionPopup(extensions::ExtensionViewHost* host,
98 views::View* anchor_view, 98 views::View* anchor_view,
(...skipping 15 matching lines...) Expand all
114 content::NotificationRegistrar registrar_; 114 content::NotificationRegistrar registrar_;
115 115
116 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; 116 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_;
117 117
118 bool widget_initialized_; 118 bool widget_initialized_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); 120 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup);
121 }; 121 };
122 122
123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ 123 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698