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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 8 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 "base/macros.h" 10 #include "base/macros.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 int GetDialogButtons() const override; 62 int GetDialogButtons() const override;
63 63
64 // content::NotificationObserver overrides. 64 // content::NotificationObserver overrides.
65 void Observe(int type, 65 void Observe(int type,
66 const content::NotificationSource& source, 66 const content::NotificationSource& source,
67 const content::NotificationDetails& details) override; 67 const content::NotificationDetails& details) override;
68 68
69 // ExtensionViewViews::Container overrides. 69 // ExtensionViewViews::Container overrides.
70 void OnExtensionSizeChanged(ExtensionViewViews* view) override; 70 void OnExtensionSizeChanged(ExtensionViewViews* view) override;
71 71
72 // views::View overrides. 72 // views::View overrides.
Peter Kasting 2017/03/30 00:35:35 This class doesn't directly subclass View or Dialo
73 gfx::Size GetPreferredSize() const override;
74 void ViewHierarchyChanged( 73 void ViewHierarchyChanged(
75 const ViewHierarchyChangedDetails& details) override; 74 const ViewHierarchyChangedDetails& details) override;
76 75
76 // views::DialogDelegateView overrides.
77 gfx::Size GetUnsnappedPreferredSize() const override;
78
77 // views::WidgetObserver overrides. 79 // views::WidgetObserver overrides.
78 void OnWidgetActivationChanged(views::Widget* widget, bool active) override; 80 void OnWidgetActivationChanged(views::Widget* widget, bool active) override;
79 81
80 // TabStripModelObserver overrides. 82 // TabStripModelObserver overrides.
81 void ActiveTabChanged(content::WebContents* old_contents, 83 void ActiveTabChanged(content::WebContents* old_contents,
82 content::WebContents* new_contents, 84 content::WebContents* new_contents,
83 int index, 85 int index,
84 int reason) override; 86 int reason) override;
85 87
86 // The min/max height of popups. 88 // The min/max height of popups.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 bool inspect_with_devtools_; 123 bool inspect_with_devtools_;
122 124
123 content::NotificationRegistrar registrar_; 125 content::NotificationRegistrar registrar_;
124 126
125 bool widget_initialized_; 127 bool widget_initialized_;
126 128
127 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup); 129 DISALLOW_COPY_AND_ASSIGN(ExtensionPopup);
128 }; 130 };
129 131
130 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_ 132 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_POPUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698