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

Side by Side Diff: chrome/browser/tab_contents/constrained_window.h

Issue 459008: Mac: the return of the tab-modal-sheets patch. (Closed)
Patch Set: Merged ToT. Must ... commit ... soon. 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
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/tab_contents/constrained_window.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 // The different platform specific subclasses use different delegates for their 10 // The different platform specific subclasses use different delegates for their
(...skipping 23 matching lines...) Expand all
34 public: 34 public:
35 // Create a Constrained Window that contains a platform specific client 35 // Create a Constrained Window that contains a platform specific client
36 // area. Typical uses include the HTTP Basic Auth prompt. The caller must 36 // area. Typical uses include the HTTP Basic Auth prompt. The caller must
37 // provide a delegate to describe the content area and to respond to events. 37 // provide a delegate to describe the content area and to respond to events.
38 static ConstrainedWindow* CreateConstrainedDialog( 38 static ConstrainedWindow* CreateConstrainedDialog(
39 TabContents* owner, 39 TabContents* owner,
40 ConstrainedWindowDelegate* delegate); 40 ConstrainedWindowDelegate* delegate);
41 41
42 // Closes the Constrained Window. 42 // Closes the Constrained Window.
43 virtual void CloseConstrainedWindow() = 0; 43 virtual void CloseConstrainedWindow() = 0;
44
45 // Events which constrained windows may recognize.
46 enum Event {
47 kEventNavigate,
48 };
49
50 // Inform the constrained the window that its parent tab will do something.
51 // Returns |true| if it did something in response, |false| if not. The default
52 // implementation, appropriate for "content-area" constrained windows, does
53 // the following:
54 // - |kEventNavigate|: calls |CloseConstrainedWindow()|;
55 // - anything/everything else: nothing.
56 // Platforms which implement non-"content-area" constrained windows (e.g.,
57 // tab-modal open/close dialogs) should override this.
58 virtual bool ParentWillDo(Event event);
44 }; 59 };
45 60
46 #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_ 61 #endif // CHROME_BROWSER_TAB_CONTENTS_CONSTRAINED_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/shell_dialogs.h ('k') | chrome/browser/tab_contents/constrained_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698