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

Side by Side Diff: chrome/browser/views/browser_actions_container.h

Issue 459005: Make sure we don't dismiss extension popups when the focus... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 // Overridden from NotificationObserver: 172 // Overridden from NotificationObserver:
173 virtual void Observe(NotificationType type, 173 virtual void Observe(NotificationType type,
174 const NotificationSource& source, 174 const NotificationSource& source,
175 const NotificationDetails& details); 175 const NotificationDetails& details);
176 176
177 // BrowserBubble::Delegate methods. 177 // BrowserBubble::Delegate methods.
178 virtual void BubbleBrowserWindowMoved(BrowserBubble* bubble); 178 virtual void BubbleBrowserWindowMoved(BrowserBubble* bubble);
179 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble); 179 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble);
180 virtual void BubbleGotFocus(BrowserBubble* bubble); 180 virtual void BubbleGotFocus(BrowserBubble* bubble);
181 virtual void BubbleLostFocus(BrowserBubble* bubble); 181 virtual void BubbleLostFocus(BrowserBubble* bubble,
182 gfx::NativeView focused_view);
182 183
183 // Get clipped width required to precisely fit the browser action icons 184 // Get clipped width required to precisely fit the browser action icons
184 // given a tentative available width. The minimum size it returns is not 185 // given a tentative available width. The minimum size it returns is not
185 // zero, but depends on the minimum number of icons that have to be there 186 // zero, but depends on the minimum number of icons that have to be there
186 // by default irrespective of the available space to draw them. 187 // by default irrespective of the available space to draw them.
187 int GetClippedPreferredWidth(int available_width); 188 int GetClippedPreferredWidth(int available_width);
188 189
189 // Hide the current popup. 190 // Hide the current popup.
190 void HidePopup(); 191 void HidePopup();
191 192
(...skipping 29 matching lines...) Expand all
221 // The button that triggered the current popup (just a reference to a button 222 // The button that triggered the current popup (just a reference to a button
222 // from browser_action_views_). 223 // from browser_action_views_).
223 BrowserActionButton* popup_button_; 224 BrowserActionButton* popup_button_;
224 225
225 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; 226 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_;
226 227
227 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 228 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
228 }; 229 };
229 230
230 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 231 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698