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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_popup.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 6 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) 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 // content::NotificationObserver overrides. 67 // content::NotificationObserver overrides.
68 virtual void Observe(int type, 68 virtual void Observe(int type,
69 const content::NotificationSource& source, 69 const content::NotificationSource& source,
70 const content::NotificationDetails& details) OVERRIDE; 70 const content::NotificationDetails& details) OVERRIDE;
71 71
72 // ExtensionViewViews::Container overrides. 72 // ExtensionViewViews::Container overrides.
73 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) OVERRIDE; 73 virtual void OnExtensionSizeChanged(ExtensionViewViews* view) OVERRIDE;
74 74
75 // views::View overrides. 75 // views::View overrides.
76 virtual gfx::Size GetPreferredSize() OVERRIDE; 76 virtual gfx::Size GetPreferredSize() const OVERRIDE;
77 77
78 // views::BubbleDelegateView overrides. 78 // views::BubbleDelegateView overrides.
79 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 79 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
80 virtual void OnWidgetActivationChanged(views::Widget* widget, 80 virtual void OnWidgetActivationChanged(views::Widget* widget,
81 bool active) OVERRIDE; 81 bool active) OVERRIDE;
82 82
83 #if defined(USE_AURA) 83 #if defined(USE_AURA)
84 // aura::client::ActivationChangeObserver overrides. 84 // aura::client::ActivationChangeObserver overrides.
85 virtual void OnWindowActivated(aura::Window* gained_active, 85 virtual void OnWindowActivated(aura::Window* gained_active,
86 aura::Window* lost_active) OVERRIDE; 86 aura::Window* lost_active) OVERRIDE;
(...skipping 30 matching lines...) Expand all
117 bool inspect_with_devtools_; 117 bool inspect_with_devtools_;
118 118
119 content::NotificationRegistrar registrar_; 119 content::NotificationRegistrar registrar_;
120 120
121 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_; 121 base::Callback<void(content::DevToolsAgentHost*, bool)> devtools_callback_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); 123 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup);
124 }; 124 };
125 125
126 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ 126 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698