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

Side by Side Diff: components/web_modal/web_contents_modal_dialog_manager.h

Issue 2669023002: Convert WebContentsModalDialogManager to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | components/web_modal/web_contents_modal_dialog_manager.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 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
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_
OLDNEW
« no previous file with comments | « no previous file | components/web_modal/web_contents_modal_dialog_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698