| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Blocks/unblocks interaction with renderer process. | 94 // Blocks/unblocks interaction with renderer process. |
| 95 void BlockWebContentsInteraction(bool blocked); | 95 void BlockWebContentsInteraction(bool blocked); |
| 96 | 96 |
| 97 bool IsWebContentsVisible() const; | 97 bool IsWebContentsVisible() const; |
| 98 | 98 |
| 99 // Closes all WebContentsModalDialogs. | 99 // Closes all WebContentsModalDialogs. |
| 100 void CloseAllDialogs(); | 100 void CloseAllDialogs(); |
| 101 | 101 |
| 102 // Overridden from content::WebContentsObserver: | 102 // Overridden from content::WebContentsObserver: |
| 103 void DidNavigateMainFrame( | 103 void DidFinishNavigation( |
| 104 const content::LoadCommittedDetails& details, | 104 content::NavigationHandle* navigation_handle) override; |
| 105 const content::FrameNavigateParams& params) override; | |
| 106 void DidGetIgnoredUIEvent() override; | 105 void DidGetIgnoredUIEvent() override; |
| 107 void WasShown() override; | 106 void WasShown() override; |
| 108 void WasHidden() override; | 107 void WasHidden() override; |
| 109 void WebContentsDestroyed() override; | 108 void WebContentsDestroyed() override; |
| 110 void DidAttachInterstitialPage() override; | 109 void DidAttachInterstitialPage() override; |
| 111 | 110 |
| 112 // Delegate for notifying our owner about stuff. Not owned by us. | 111 // Delegate for notifying our owner about stuff. Not owned by us. |
| 113 WebContentsModalDialogManagerDelegate* delegate_; | 112 WebContentsModalDialogManagerDelegate* delegate_; |
| 114 | 113 |
| 115 // All active dialogs. | 114 // All active dialogs. |
| 116 WebContentsModalDialogList child_dialogs_; | 115 WebContentsModalDialogList child_dialogs_; |
| 117 | 116 |
| 118 // True while closing the dialogs on WebContents close. | 117 // True while closing the dialogs on WebContents close. |
| 119 bool closing_all_dialogs_; | 118 bool closing_all_dialogs_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); | 120 DISALLOW_COPY_AND_ASSIGN(WebContentsModalDialogManager); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace web_modal | 123 } // namespace web_modal |
| 125 | 124 |
| 126 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ | 125 #endif // COMPONENTS_WEB_MODAL_WEB_CONTENTS_MODAL_DIALOG_MANAGER_H_ |
| OLD | NEW |