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

Side by Side Diff: chrome/browser/blocked_popup_container.h

Issue 164547: Mac: make save/open dialogs operate as tab-modal sheets.... Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Painfully (but hopefully correctly) merged ToT. Created 11 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/browser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 // Defines the public interface for the blocked popup notifications. This 5 // Defines the public interface for the blocked popup notifications. This
6 // interface should only be used by TabContents. Users and subclasses of 6 // interface should only be used by TabContents. Users and subclasses of
7 // TabContents should use the appropriate methods on TabContents to access 7 // TabContents should use the appropriate methods on TabContents to access
8 // information about blocked popups. 8 // information about blocked popups.
9 9
10 // TODO(idanan): Rename class to BlockedContentContainer. 10 // TODO(idanan): Rename class to BlockedContentContainer.
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Ignored; BlockedPopupContainer doesn't display a toolbar. 190 // Ignored; BlockedPopupContainer doesn't display a toolbar.
191 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } 191 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { }
192 192
193 // Ignored; BlockedPopupContainer doesn't display a bookmarking star. 193 // Ignored; BlockedPopupContainer doesn't display a bookmarking star.
194 virtual void URLStarredChanged(TabContents* source, bool starred) { } 194 virtual void URLStarredChanged(TabContents* source, bool starred) { }
195 195
196 // Ignored; BlockedPopupContainer doesn't display a URL bar. 196 // Ignored; BlockedPopupContainer doesn't display a URL bar.
197 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } 197 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { }
198 198
199 // Ignored; BlockedPopupContainer doesn't display child windows.
200 virtual void ChildWindowsChanged(TabContents* source) { }
201
199 // A number larger than the internal popup count on the Renderer; meant for 202 // A number larger than the internal popup count on the Renderer; meant for
200 // preventing a compromised renderer from exhausting GDI memory by spawning 203 // preventing a compromised renderer from exhausting GDI memory by spawning
201 // infinite windows. 204 // infinite windows.
202 static const size_t kImpossibleNumberOfPopups; 205 static const size_t kImpossibleNumberOfPopups;
203 206
204 protected: 207 protected:
205 struct BlockedPopup { 208 struct BlockedPopup {
206 BlockedPopup(TabContents* tab_contents, 209 BlockedPopup(TabContents* tab_contents,
207 const gfx::Rect& bounds, 210 const gfx::Rect& bounds,
208 const std::string& host) 211 const std::string& host)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // Our platform specific view. 311 // Our platform specific view.
309 BlockedPopupContainerView* view_; 312 BlockedPopupContainerView* view_;
310 313
311 // The profile for the browser associated with the container. 314 // The profile for the browser associated with the container.
312 Profile* profile_; 315 Profile* profile_;
313 316
314 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); 317 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer);
315 }; 318 };
316 319
317 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ 320 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac.mm ('k') | chrome/browser/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698