OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ | 5 #ifndef COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ |
6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ | 6 #define COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Closes all WebContentsModalDialogs. | 103 // Closes all WebContentsModalDialogs. |
104 void CloseAllDialogs(); | 104 void CloseAllDialogs(); |
105 | 105 |
106 // Overridden from content::WebContentsObserver: | 106 // Overridden from content::WebContentsObserver: |
107 virtual void DidNavigateMainFrame( | 107 virtual void DidNavigateMainFrame( |
108 const content::LoadCommittedDetails& details, | 108 const content::LoadCommittedDetails& details, |
109 const content::FrameNavigateParams& params) OVERRIDE; | 109 const content::FrameNavigateParams& params) OVERRIDE; |
110 virtual void DidGetIgnoredUIEvent() OVERRIDE; | 110 virtual void DidGetIgnoredUIEvent() OVERRIDE; |
111 virtual void WasShown() OVERRIDE; | 111 virtual void WasShown() OVERRIDE; |
112 virtual void WasHidden() OVERRIDE; | 112 virtual void WasHidden() OVERRIDE; |
113 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 113 virtual void WebContentsDestroyed() OVERRIDE; |
114 virtual void DidAttachInterstitialPage() OVERRIDE; | 114 virtual void DidAttachInterstitialPage() OVERRIDE; |
115 | 115 |
116 // Delegate for notifying our owner about stuff. Not owned by us. | 116 // Delegate for notifying our owner about stuff. Not owned by us. |
117 WebContentsModalDialogManagerDelegate* delegate_; | 117 WebContentsModalDialogManagerDelegate* delegate_; |
118 | 118 |
119 // All active dialogs. | 119 // All active dialogs. |
120 WebContentsModalDialogList child_dialogs_; | 120 WebContentsModalDialogList child_dialogs_; |
121 | 121 |
122 // True while closing the dialogs on WebContents close. | 122 // True while closing the dialogs on WebContents close. |
123 bool closing_all_dialogs_; | 123 bool closing_all_dialogs_; |
124 | 124 |
125 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); | 125 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); |
126 }; | 126 }; |
127 | 127 |
128 } // namespace web_modal | 128 } // namespace web_modal |
129 | 129 |
130 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ | 130 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ |
OLD | NEW |